Files
donnyandClaude Fable 5.1 ffbfbf8522 contract: the Lua API reference, generated from core/
TICKET-388. contract/lua-reference/generate.py is a Python port of yugioh-legacy-server's duel-engine/ocgcore/lua-reference.sh (bash + awk): one api-<class>.md per luaL_Reg table in core/lib*.cpp (Card, Duel, Effect, Group, Debug; 670 functions) and api-globals.md for the 37 globals interpreter.cpp sets. Row counts match the server repo's committed reference exactly. Regenerate and commit after any core change to those files.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DJUFwdiGCHipsxLkgxssSR
2026-10-14 22:43:59 -07:00

747 B

Debug

Generated from core/ by contract/lua-reference/generate.py; never edited by hand. Every function the core registers on Debug is listed, and nothing else: a name that isn't here isn't in the core (the card scripts' library/ defines the rest). A method is called on an object too (c:IsCode(id) is Card.IsCode(c, id)). Arguments is the fewest the core accepts, counting the object.

Function Arguments
Debug.AddCard 6
Debug.Message 1
Debug.PreAddCounter 2
Debug.PreEquip 2
Debug.PreSetTarget 2
Debug.PreSummon 2
Debug.ReloadFieldBegin 1
Debug.ReloadFieldEnd any
Debug.SetAIName 1
Debug.SetPlayerInfo 4
Debug.ShowHint 1