Bind sCurrentPlanetId

This commit is contained in:
KiritoDv 2025-03-13 11:27:52 -06:00
parent 8eb2bf6c14
commit 7d9f923e41
3 changed files with 6 additions and 0 deletions

View file

@ -8678,6 +8678,10 @@ function Game.gGroundClipMode(value) end
function Game.gCurrentLevel() end
---@param value LevelId
function Game.gCurrentLevel(value) end
---@return PlanetId
function Game.sCurrentPlanetId() end
---@param value PlanetId
function Game.sCurrentPlanetId(value) end
---@return number
function Game.gLevelPhase() end
---@param value number

View file

@ -88,6 +88,7 @@ extern Vec3f gFormationInitPos;
extern UNK_TYPE F_80178020;
extern s32 gGroundClipMode;
extern LevelId gCurrentLevel;
extern PlanetId sCurrentPlanetId;
extern s32 gLevelPhase;
extern s32 gBossActive;
extern bool gKillEventActors;

View file

@ -4113,6 +4113,7 @@ lua["Game"]["gFormationInitPos"] = sol::overload([]() -> Vec3f { return gFormati
lua["Game"]["F_80178020"] = sol::overload([]() -> UNK_TYPE { return F_80178020; }, [](UNK_TYPE value) { F_80178020 = value; });
lua["Game"]["gGroundClipMode"] = sol::overload([]() -> s32 { return gGroundClipMode; }, [](s32 value) { gGroundClipMode = value; });
lua["Game"]["gCurrentLevel"] = sol::overload([]() -> LevelId { return gCurrentLevel; }, [](LevelId value) { gCurrentLevel = value; });
lua["Game"]["sCurrentPlanetId"] = sol::overload([]() -> PlanetId { return sCurrentPlanetId; }, [](PlanetId value) { sCurrentPlanetId = value; });
lua["Game"]["gLevelPhase"] = sol::overload([]() -> s32 { return gLevelPhase; }, [](s32 value) { gLevelPhase = value; });
lua["Game"]["gBossActive"] = sol::overload([]() -> s32 { return gBossActive; }, [](s32 value) { gBossActive = value; });
lua["Game"]["gKillEventActors"] = sol::overload([]() -> bool { return gKillEventActors; }, [](bool value) { gKillEventActors = value; });