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
747 B
747 B
Debug
Generated from
core/bycontract/lua-reference/generate.py; never edited by hand. Every function the core registers onDebugis 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)isCard.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 |