From 3436d6d26f2f6dc8dd8fcc843cd236c021d72289 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 13 Feb 2022 22:18:03 -0800 Subject: [PATCH] Update lua docs --- docs/lua/constants.md | 3 ++- docs/lua/structs.md | 1 + src/pc/lua/smlua_cobject_autogen.c | 3 ++- src/pc/lua/smlua_constants_autogen.c | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/lua/constants.md b/docs/lua/constants.md index 607a74b4c..2daf1126e 100644 --- a/docs/lua/constants.md +++ b/docs/lua/constants.md @@ -735,7 +735,8 @@ | CT_LUIGI | 1 | | CT_TOAD | 2 | | CT_WALUIGI | 3 | -| CT_MAX | 4 | +| CT_WARIO | 4 | +| CT_MAX | 5 |
diff --git a/docs/lua/structs.md b/docs/lua/structs.md index 742ec495f..27c1642f8 100644 --- a/docs/lua/structs.md +++ b/docs/lua/structs.md @@ -213,6 +213,7 @@ | soundYahoo | integer | read-only | | soundYahooWahaYippee | integer | read-only | | soundYawning | integer | read-only | +| torsoRotMult | number | read-only | | type | integer | read-only | [:arrow_up_small:](#) diff --git a/src/pc/lua/smlua_cobject_autogen.c b/src/pc/lua/smlua_cobject_autogen.c index c473732e8..f76a465b9 100644 --- a/src/pc/lua/smlua_cobject_autogen.c +++ b/src/pc/lua/smlua_cobject_autogen.c @@ -95,7 +95,7 @@ static struct LuaObjectField sCameraTriggerFields[LUA_CAMERA_TRIGGER_FIELD_COUNT // { "event", LVT_???, offsetof(struct CameraTrigger, event), false, LOT_??? }, <--- UNIMPLEMENTED }; -#define LUA_CHARACTER_FIELD_COUNT 56 +#define LUA_CHARACTER_FIELD_COUNT 57 static struct LuaObjectField sCharacterFields[LUA_CHARACTER_FIELD_COUNT] = { { "animOffsetEnabled", LVT_U8, offsetof(struct Character, animOffsetEnabled), true, LOT_NONE }, { "animOffsetFeet", LVT_F32, offsetof(struct Character, animOffsetFeet), true, LOT_NONE }, @@ -156,6 +156,7 @@ static struct LuaObjectField sCharacterFields[LUA_CHARACTER_FIELD_COUNT] = { { "soundYahoo", LVT_S32, offsetof(struct Character, soundYahoo), true, LOT_NONE }, { "soundYahooWahaYippee", LVT_S32, offsetof(struct Character, soundYahooWahaYippee), true, LOT_NONE }, { "soundYawning", LVT_S32, offsetof(struct Character, soundYawning), true, LOT_NONE }, + { "torsoRotMult", LVT_F32, offsetof(struct Character, torsoRotMult), true, LOT_NONE }, { "type", LVT_S32, offsetof(struct Character, type), true, LOT_NONE }, }; diff --git a/src/pc/lua/smlua_constants_autogen.c b/src/pc/lua/smlua_constants_autogen.c index c512a13cf..4fcfdca0c 100644 --- a/src/pc/lua/smlua_constants_autogen.c +++ b/src/pc/lua/smlua_constants_autogen.c @@ -773,7 +773,8 @@ char gSmluaConstants[] = "" "CT_LUIGI = 1\n" "CT_TOAD = 2\n" "CT_WALUIGI = 3\n" -"CT_MAX = 4\n" +"CT_WARIO = 4\n" +"CT_MAX = 5\n" "CHAR_SOUND_YAH_WAH_HOO = 0\n" "CHAR_SOUND_HOOHOO = 1\n" "CHAR_SOUND_YAHOO = 2\n"