mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-04-28 12:27:59 +03:00
Bind sCurrentPlanetId
This commit is contained in:
parent
8eb2bf6c14
commit
7d9f923e41
3 changed files with 6 additions and 0 deletions
4
example/.vscode/api_definitions.lua
vendored
4
example/.vscode/api_definitions.lua
vendored
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue