mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 23:13:02 +00:00
Ran autogen
This commit is contained in:
parent
19f878e858
commit
8fe77eaf9f
7 changed files with 123 additions and 79 deletions
|
@ -78,6 +78,11 @@ function bhv_1up_sliding_loop()
|
||||||
-- ...
|
-- ...
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- @return nil
|
||||||
|
function bhv_1up_trigger_init()
|
||||||
|
-- ...
|
||||||
|
end
|
||||||
|
|
||||||
--- @return nil
|
--- @return nil
|
||||||
function bhv_1up_walking_loop()
|
function bhv_1up_walking_loop()
|
||||||
-- ...
|
-- ...
|
||||||
|
|
|
@ -785,6 +785,7 @@
|
||||||
--- @field public prevNumStarsForDialog integer
|
--- @field public prevNumStarsForDialog integer
|
||||||
--- @field public quicksandDepth number
|
--- @field public quicksandDepth number
|
||||||
--- @field public riddenObj Object
|
--- @field public riddenObj Object
|
||||||
|
--- @field public skipWarpInteractionsTimer integer
|
||||||
--- @field public slideVelX number
|
--- @field public slideVelX number
|
||||||
--- @field public slideVelZ number
|
--- @field public slideVelZ number
|
||||||
--- @field public slideYaw integer
|
--- @field public slideYaw integer
|
||||||
|
|
|
@ -232,6 +232,24 @@
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
## [bhv_1up_trigger_init](#bhv_1up_trigger_init)
|
||||||
|
|
||||||
|
### Lua Example
|
||||||
|
`bhv_1up_trigger_init()`
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
- None
|
||||||
|
|
||||||
|
### Returns
|
||||||
|
- None
|
||||||
|
|
||||||
|
### C Prototype
|
||||||
|
`void bhv_1up_trigger_init(void);`
|
||||||
|
|
||||||
|
[:arrow_up_small:](#)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
## [bhv_1up_walking_loop](#bhv_1up_walking_loop)
|
## [bhv_1up_walking_loop](#bhv_1up_walking_loop)
|
||||||
|
|
||||||
### Lua Example
|
### Lua Example
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
- [bhv_1up_loop](functions-2.md#bhv_1up_loop)
|
- [bhv_1up_loop](functions-2.md#bhv_1up_loop)
|
||||||
- [bhv_1up_running_away_loop](functions-2.md#bhv_1up_running_away_loop)
|
- [bhv_1up_running_away_loop](functions-2.md#bhv_1up_running_away_loop)
|
||||||
- [bhv_1up_sliding_loop](functions-2.md#bhv_1up_sliding_loop)
|
- [bhv_1up_sliding_loop](functions-2.md#bhv_1up_sliding_loop)
|
||||||
|
- [bhv_1up_trigger_init](functions-2.md#bhv_1up_trigger_init)
|
||||||
- [bhv_1up_walking_loop](functions-2.md#bhv_1up_walking_loop)
|
- [bhv_1up_walking_loop](functions-2.md#bhv_1up_walking_loop)
|
||||||
- [bhv_act_selector_init](functions-2.md#bhv_act_selector_init)
|
- [bhv_act_selector_init](functions-2.md#bhv_act_selector_init)
|
||||||
- [bhv_act_selector_loop](functions-2.md#bhv_act_selector_loop)
|
- [bhv_act_selector_loop](functions-2.md#bhv_act_selector_loop)
|
||||||
|
|
|
@ -1131,6 +1131,7 @@
|
||||||
| prevNumStarsForDialog | `integer` | |
|
| prevNumStarsForDialog | `integer` | |
|
||||||
| quicksandDepth | `number` | |
|
| quicksandDepth | `number` | |
|
||||||
| riddenObj | [Object](structs.md#Object) | |
|
| riddenObj | [Object](structs.md#Object) | |
|
||||||
|
| skipWarpInteractionsTimer | `integer` | |
|
||||||
| slideVelX | `number` | |
|
| slideVelX | `number` | |
|
||||||
| slideVelZ | `number` | |
|
| slideVelZ | `number` | |
|
||||||
| slideYaw | `integer` | |
|
| slideYaw | `integer` | |
|
||||||
|
|
|
@ -837,7 +837,7 @@ static struct LuaObjectField sMarioBodyStateFields[LUA_MARIO_BODY_STATE_FIELD_CO
|
||||||
{ "wingFlutter", LVT_S8, offsetof(struct MarioBodyState, wingFlutter), false, LOT_NONE },
|
{ "wingFlutter", LVT_S8, offsetof(struct MarioBodyState, wingFlutter), false, LOT_NONE },
|
||||||
};
|
};
|
||||||
|
|
||||||
#define LUA_MARIO_STATE_FIELD_COUNT 78
|
#define LUA_MARIO_STATE_FIELD_COUNT 79
|
||||||
static struct LuaObjectField sMarioStateFields[LUA_MARIO_STATE_FIELD_COUNT] = {
|
static struct LuaObjectField sMarioStateFields[LUA_MARIO_STATE_FIELD_COUNT] = {
|
||||||
{ "action", LVT_U32, offsetof(struct MarioState, action), false, LOT_NONE },
|
{ "action", LVT_U32, offsetof(struct MarioState, action), false, LOT_NONE },
|
||||||
{ "actionArg", LVT_U32, offsetof(struct MarioState, actionArg), false, LOT_NONE },
|
{ "actionArg", LVT_U32, offsetof(struct MarioState, actionArg), false, LOT_NONE },
|
||||||
|
@ -896,6 +896,7 @@ static struct LuaObjectField sMarioStateFields[LUA_MARIO_STATE_FIELD_COUNT] = {
|
||||||
{ "prevNumStarsForDialog", LVT_S16, offsetof(struct MarioState, prevNumStarsForDialog), false, LOT_NONE },
|
{ "prevNumStarsForDialog", LVT_S16, offsetof(struct MarioState, prevNumStarsForDialog), false, LOT_NONE },
|
||||||
{ "quicksandDepth", LVT_F32, offsetof(struct MarioState, quicksandDepth), false, LOT_NONE },
|
{ "quicksandDepth", LVT_F32, offsetof(struct MarioState, quicksandDepth), false, LOT_NONE },
|
||||||
{ "riddenObj", LVT_COBJECT_P, offsetof(struct MarioState, riddenObj), false, LOT_OBJECT },
|
{ "riddenObj", LVT_COBJECT_P, offsetof(struct MarioState, riddenObj), false, LOT_OBJECT },
|
||||||
|
{ "skipWarpInteractionsTimer", LVT_U8, offsetof(struct MarioState, skipWarpInteractionsTimer), false, LOT_NONE },
|
||||||
{ "slideVelX", LVT_F32, offsetof(struct MarioState, slideVelX), false, LOT_NONE },
|
{ "slideVelX", LVT_F32, offsetof(struct MarioState, slideVelX), false, LOT_NONE },
|
||||||
{ "slideVelZ", LVT_F32, offsetof(struct MarioState, slideVelZ), false, LOT_NONE },
|
{ "slideVelZ", LVT_F32, offsetof(struct MarioState, slideVelZ), false, LOT_NONE },
|
||||||
{ "slideYaw", LVT_S16, offsetof(struct MarioState, slideYaw), false, LOT_NONE },
|
{ "slideYaw", LVT_S16, offsetof(struct MarioState, slideYaw), false, LOT_NONE },
|
||||||
|
|
|
@ -300,6 +300,22 @@ int smlua_func_bhv_1up_sliding_loop(UNUSED lua_State* L) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int smlua_func_bhv_1up_trigger_init(UNUSED lua_State* L) {
|
||||||
|
if (!gCurrentObject) { return 0; }
|
||||||
|
if (L == NULL) { return 0; }
|
||||||
|
|
||||||
|
int top = lua_gettop(L);
|
||||||
|
if (top != 0) {
|
||||||
|
LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "bhv_1up_trigger_init", 0, top);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bhv_1up_trigger_init();
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
int smlua_func_bhv_1up_walking_loop(UNUSED lua_State* L) {
|
int smlua_func_bhv_1up_walking_loop(UNUSED lua_State* L) {
|
||||||
if (!gCurrentObject) { return 0; }
|
if (!gCurrentObject) { return 0; }
|
||||||
if (L == NULL) { return 0; }
|
if (L == NULL) { return 0; }
|
||||||
|
@ -30618,6 +30634,7 @@ void smlua_bind_functions_autogen(void) {
|
||||||
smlua_bind_function(L, "bhv_1up_loop", smlua_func_bhv_1up_loop);
|
smlua_bind_function(L, "bhv_1up_loop", smlua_func_bhv_1up_loop);
|
||||||
smlua_bind_function(L, "bhv_1up_running_away_loop", smlua_func_bhv_1up_running_away_loop);
|
smlua_bind_function(L, "bhv_1up_running_away_loop", smlua_func_bhv_1up_running_away_loop);
|
||||||
smlua_bind_function(L, "bhv_1up_sliding_loop", smlua_func_bhv_1up_sliding_loop);
|
smlua_bind_function(L, "bhv_1up_sliding_loop", smlua_func_bhv_1up_sliding_loop);
|
||||||
|
smlua_bind_function(L, "bhv_1up_trigger_init", smlua_func_bhv_1up_trigger_init);
|
||||||
smlua_bind_function(L, "bhv_1up_walking_loop", smlua_func_bhv_1up_walking_loop);
|
smlua_bind_function(L, "bhv_1up_walking_loop", smlua_func_bhv_1up_walking_loop);
|
||||||
smlua_bind_function(L, "bhv_act_selector_init", smlua_func_bhv_act_selector_init);
|
smlua_bind_function(L, "bhv_act_selector_init", smlua_func_bhv_act_selector_init);
|
||||||
smlua_bind_function(L, "bhv_act_selector_loop", smlua_func_bhv_act_selector_loop);
|
smlua_bind_function(L, "bhv_act_selector_loop", smlua_func_bhv_act_selector_loop);
|
||||||
|
|
Loading…
Reference in a new issue