diff --git a/autogen/lua_definitions/constants.lua b/autogen/lua_definitions/constants.lua index 27060d20..e5019fb4 100644 --- a/autogen/lua_definitions/constants.lua +++ b/autogen/lua_definitions/constants.lua @@ -7845,6 +7845,17 @@ WATER_STEP_HIT_WALL = 4 --- @type integer WATER_STEP_NONE = 0 +--- @class LuaActionHookType + +--- @type LuaActionHookType +ACTION_HOOK_EVERY_FRAME = 0 + +--- @type LuaActionHookType +ACTION_HOOK_GRAVITY = 1 + +--- @type LuaActionHookType +ACTION_HOOK_MAX = 2 + --- @class LuaHookedEventType --- @type LuaHookedEventType diff --git a/autogen/lua_definitions/structs.lua b/autogen/lua_definitions/structs.lua index eac25574..e8be7bea 100644 --- a/autogen/lua_definitions/structs.lua +++ b/autogen/lua_definitions/structs.lua @@ -772,6 +772,7 @@ --- @field public currLevelAreaSeqId integer --- @field public currLevelNum integer --- @field public currLevelSyncValid boolean +--- @field public currPositionValid boolean --- @field public description string --- @field public descriptionA integer --- @field public descriptionB integer diff --git a/docs/lua/structs.md b/docs/lua/structs.md index f76135da..dc591b85 100644 --- a/docs/lua/structs.md +++ b/docs/lua/structs.md @@ -1110,6 +1110,7 @@ | currLevelAreaSeqId | `integer` | read-only | | currLevelNum | `integer` | read-only | | currLevelSyncValid | `boolean` | read-only | +| currPositionValid | `boolean` | read-only | | description | `string` | read-only | | descriptionA | `integer` | read-only | | descriptionB | `integer` | read-only | diff --git a/src/pc/lua/smlua_cobject_autogen.c b/src/pc/lua/smlua_cobject_autogen.c index 9b4fd60e..cd44cc1f 100644 --- a/src/pc/lua/smlua_cobject_autogen.c +++ b/src/pc/lua/smlua_cobject_autogen.c @@ -891,7 +891,7 @@ static struct LuaObjectField sModeTransitionInfoFields[LUA_MODE_TRANSITION_INFO_ { "transitionStart", LVT_COBJECT, offsetof(struct ModeTransitionInfo, transitionStart), true, LOT_LINEARTRANSITIONPOINT }, }; -#define LUA_NETWORK_PLAYER_FIELD_COUNT 28 +#define LUA_NETWORK_PLAYER_FIELD_COUNT 29 static struct LuaObjectField sNetworkPlayerFields[LUA_NETWORK_PLAYER_FIELD_COUNT] = { { "connected", LVT_BOOL, offsetof(struct NetworkPlayer, connected), true, LOT_NONE }, { "currActNum", LVT_S16, offsetof(struct NetworkPlayer, currActNum), true, LOT_NONE }, @@ -901,6 +901,7 @@ static struct LuaObjectField sNetworkPlayerFields[LUA_NETWORK_PLAYER_FIELD_COUNT { "currLevelAreaSeqId", LVT_U16, offsetof(struct NetworkPlayer, currLevelAreaSeqId), true, LOT_NONE }, { "currLevelNum", LVT_S16, offsetof(struct NetworkPlayer, currLevelNum), true, LOT_NONE }, { "currLevelSyncValid", LVT_BOOL, offsetof(struct NetworkPlayer, currLevelSyncValid), true, LOT_NONE }, + { "currPositionValid", LVT_BOOL, offsetof(struct NetworkPlayer, currPositionValid), true, LOT_NONE }, { "description", LVT_STRING, offsetof(struct NetworkPlayer, description), true, LOT_NONE }, { "descriptionA", LVT_U8, offsetof(struct NetworkPlayer, descriptionA), true, LOT_NONE }, { "descriptionB", LVT_U8, offsetof(struct NetworkPlayer, descriptionB), true, LOT_NONE }, diff --git a/src/pc/lua/smlua_constants_autogen.c b/src/pc/lua/smlua_constants_autogen.c index 5e345ec7..b69f843e 100644 --- a/src/pc/lua/smlua_constants_autogen.c +++ b/src/pc/lua/smlua_constants_autogen.c @@ -2819,7 +2819,8 @@ char gSmluaConstants[] = "" "HOOK_ON_OBJECT_RENDER = 20\n" "HOOK_ON_DEATH = 21\n" "HOOK_ON_PACKET_RECEIVE = 22\n" -"HOOK_MAX = 23\n" +"HOOK_USE_ACT_SELECT = 23\n" +"HOOK_MAX = 24\n" "ACTION_HOOK_EVERY_FRAME = 0\n" "ACTION_HOOK_GRAVITY = 1\n" "ACTION_HOOK_MAX = 2\n"