Update lua docs

This commit is contained in:
MysterD 2022-02-13 22:18:03 -08:00
parent 6f8714c764
commit 3436d6d26f
4 changed files with 7 additions and 3 deletions

View file

@ -735,7 +735,8 @@
| CT_LUIGI | 1 |
| CT_TOAD | 2 |
| CT_WALUIGI | 3 |
| CT_MAX | 4 |
| CT_WARIO | 4 |
| CT_MAX | 5 |
<br />

View file

@ -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:](#)

View file

@ -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 },
};

View file

@ -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"