benilla-re systems structs docs

GetMinigameKind

function · ui · orchestration

Address
0x4c4d40 · 16 bytes, up to 0x4c4d4f
Meaning
Returns the kind at +8 of the minigame object
Confidence
verified, proof one
Finding
ui/lottery#the-minigame

Finding: The minigame in ui: the lottery and minigame functions

GetMinigameType() returns one value, always nil: it pushes nil when there is no game object or its kind is not 1, and for kind 1 the null slot 1 of the name table 0x848384 (minigame#lua-queries), which lua_pushstring turns into nil. MakeMinigameMove(moveType, param) needs two numbers (Usage: MakeMinigameMove(moveType, param)), passes moveType - 1 and param - 1 to the game object, which sends opcode 0x2f8 with the game GUID, the move type byte and the parameter when the object accepts the move, and returns nothing. GetMinigameState() calls the object's virtual at +8 with the Lua state and returns its result count, nothing with no game.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.