Home › Lua API › AutoplayManager

Available out of the box. Usable from Lua in the unmodified game.

AutoplayManager

10 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
GetDisableAssertsForAutoplay AutoplayManager.GetDisableAssertsForAutoplay() → boolean gameplay — 0x15570 —
GetObserveAsPlayer AutoplayManager.GetObserveAsPlayer() → number gameplay — 0x155a0 —
GetReturnAsPlayer AutoplayManager.GetReturnAsPlayer() → number gameplay — 0x155d0 —
GetTurns AutoplayManager.GetTurns() → number gameplay — 0x15600 —
IsActive AutoplayManager.IsActive() → boolean gameplay — 0x15630 —
SetActive AutoplayManager.SetActive() (or nothing) gameplay — 0x15660 0x15b10
SetDisableAssertsForAutoplay AutoplayManager.SetDisableAssertsForAutoplay() (or nothing) gameplay — 0x156c0 0x15b70
SetObserveAsPlayer AutoplayManager.SetObserveAsPlayer(ePlayer: Player[PlayerTypes]) (or nothing)
args: ePlayer — Id of a player (as in Players[id]).
gameplay — 0x15720 0x15bd0
SetReturnAsPlayer AutoplayManager.SetReturnAsPlayer(ePlayer: Player[PlayerTypes]) (or nothing)
args: ePlayer — Id of a player (as in Players[id]).
gameplay — 0x15790 0x15c40
SetTurns AutoplayManager.SetTurns(iTurns?: number) (or nothing)
args: iTurns — A turn number (named turn in the scripts). (inferred)
gameplay — 0x157d0 0x15c80