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
1.6 KiB
1.6 KiB
Group
Generated from
core/bycontract/lua-reference/generate.py; never edited by hand. Every function the core registers onGroupis 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 |
|---|---|
Group.AddCard |
1 |
Group.CancelableSelect |
5 |
Group.CheckWithSumEqual |
5 |
Group.CheckWithSumGreater |
3 |
Group.Clear |
1 |
Group.ClearMeta |
1 |
Group.Clone |
1 |
Group.CreateGroup |
any |
Group.DeleteGroup |
1 |
Group.Equal |
2 |
Group.Filter |
3 |
Group.FilterCount |
3 |
Group.FilterSelect |
6 |
Group.FromCards |
any |
Group.GetBinClassCount |
2 |
Group.GetClassCount |
2 |
Group.GetCount |
1 |
Group.GetFirst |
1 |
Group.GetMaxGroup |
2 |
Group.GetMetaKeys |
1 |
Group.GetMetaValue |
2 |
Group.GetMinGroup |
2 |
Group.GetNext |
1 |
Group.GetSum |
2 |
Group.HasMetaValue |
2 |
Group.IsContains |
2 |
Group.IsExists |
4 |
Group.KeepAlive |
1 |
Group.Merge |
1 |
Group.RandomSelect |
3 |
Group.Remove |
3 |
Group.RemoveCard |
1 |
Group.SearchCard |
2 |
Group.Select |
5 |
Group.SelectUnselect |
3 |
Group.SelectWithSumEqual |
6 |
Group.SelectWithSumGreater |
4 |
Group.SetMetaValue |
3 |
Group.Sub |
1 |
Group.__add |
2 |
Group.__band |
2 |
Group.__bor |
2 |
Group.__bxor |
2 |
Group.__len |
1 |
Group.__sub |
2 |