From d5aeec54902421a223e11090c675847ba97e7628 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 29 Jan 2022 23:02:36 -0800 Subject: [PATCH] Removed ACT_(MARIO_ACTION) Lua functions from API (useless) --- autogen/lua_functions/camera.h | 2 +- .../lua_functions/mario_actions_airborne.c | 46 +- .../lua_functions/mario_actions_automatic.c | 17 - .../lua_functions/mario_actions_cutscene.c | 2 +- docs/lua/functions.md | 1281 ----------------- src/pc/lua/smlua_functions_autogen.c | 793 ---------- 6 files changed, 3 insertions(+), 2138 deletions(-) diff --git a/autogen/lua_functions/camera.h b/autogen/lua_functions/camera.h index 0706e030..bc8dfa24 100644 --- a/autogen/lua_functions/camera.h +++ b/autogen/lua_functions/camera.h @@ -1,3 +1,3 @@ void set_camera_shake_from_hit(s16 shake); void set_environmental_camera_shake(s16 shake); -void set_camera_shake_from_point(s16 shake, f32 posX, f32 posY, f32 posZ); \ No newline at end of file +void set_camera_shake_from_point(s16 shake, f32 posX, f32 posY, f32 posZ); diff --git a/autogen/lua_functions/mario_actions_airborne.c b/autogen/lua_functions/mario_actions_airborne.c index d4ce592b..053dda95 100644 --- a/autogen/lua_functions/mario_actions_airborne.c +++ b/autogen/lua_functions/mario_actions_airborne.c @@ -14,51 +14,7 @@ void update_flying_yaw(struct MarioState *m); void update_flying_pitch(struct MarioState *m); void update_flying(struct MarioState *m); u32 common_air_action_step(struct MarioState *m, u32 landAction, s32 animation, u32 stepArg); -s32 act_jump(struct MarioState *m); -s32 act_double_jump(struct MarioState *m); -s32 act_triple_jump(struct MarioState *m); -s32 act_backflip(struct MarioState *m); -s32 act_freefall(struct MarioState *m); -s32 act_hold_jump(struct MarioState *m); -s32 act_hold_freefall(struct MarioState *m); -s32 act_side_flip(struct MarioState *m); -s32 act_wall_kick_air(struct MarioState *m); -s32 act_long_jump(struct MarioState *m); -s32 act_riding_shell_air(struct MarioState *m); -s32 act_twirling(struct MarioState *m); -s32 act_dive(struct MarioState *m); -s32 act_air_throw(struct MarioState *m); -s32 act_water_jump(struct MarioState *m); -s32 act_hold_water_jump(struct MarioState *m); -s32 act_steep_jump(struct MarioState *m); -s32 act_ground_pound(struct MarioState *m); -s32 act_burning_jump(struct MarioState *m); -s32 act_burning_fall(struct MarioState *m); -s32 act_crazy_box_bounce(struct MarioState *m); u32 common_air_knockback_step(struct MarioState *m, u32 landAction, u32 hardFallAction, s32 animation, f32 speed); s32 check_wall_kick(struct MarioState *m); -s32 act_backward_air_kb(struct MarioState *m); -s32 act_forward_air_kb(struct MarioState *m); -s32 act_hard_backward_air_kb(struct MarioState *m); -s32 act_hard_forward_air_kb(struct MarioState *m); -s32 act_thrown_backward(struct MarioState *m); -s32 act_thrown_forward(struct MarioState *m); -s32 act_soft_bonk(struct MarioState *m); -s32 act_getting_blown(struct MarioState *m); -s32 act_air_hit_wall(struct MarioState *m); -s32 act_forward_rollout(struct MarioState *m); -s32 act_backward_rollout(struct MarioState *m); -s32 act_butt_slide_air(struct MarioState *m); -s32 act_hold_butt_slide_air(struct MarioState *m); -s32 act_lava_boost(struct MarioState *m); -s32 act_slide_kick(struct MarioState *m); -s32 act_jump_kick(struct MarioState *m); -s32 act_shot_from_cannon(struct MarioState *m); -s32 act_flying(struct MarioState *m); -s32 act_riding_hoot(struct MarioState *m); -s32 act_flying_triple_jump(struct MarioState *m); -s32 act_top_of_pole_jump(struct MarioState *m); -s32 act_vertical_wind(struct MarioState *m); -s32 act_special_triple_jump(struct MarioState *m); s32 check_common_airborne_cancels(struct MarioState *m); -s32 mario_execute_airborne_action(struct MarioState *m); \ No newline at end of file +s32 mario_execute_airborne_action(struct MarioState *m); diff --git a/autogen/lua_functions/mario_actions_automatic.c b/autogen/lua_functions/mario_actions_automatic.c index ded4c51b..21fd9997 100644 --- a/autogen/lua_functions/mario_actions_automatic.c +++ b/autogen/lua_functions/mario_actions_automatic.c @@ -1,29 +1,12 @@ void add_tree_leaf_particles(struct MarioState *m); void play_climbing_sounds(struct MarioState *m, s32 b); s32 set_pole_position(struct MarioState *m, f32 offsetY); -s32 act_holding_pole(struct MarioState *m); -s32 act_climbing_pole(struct MarioState *m); -s32 act_grab_pole_slow(struct MarioState *m); -s32 act_grab_pole_fast(struct MarioState *m); -s32 act_top_of_pole_transition(struct MarioState *m); -s32 act_top_of_pole(struct MarioState *m); s32 perform_hanging_step(struct MarioState *m, Vec3f nextPos); s32 update_hang_moving(struct MarioState *m); void update_hang_stationary(struct MarioState *m); -s32 act_start_hanging(struct MarioState *m); -s32 act_hanging(struct MarioState *m); -s32 act_hang_moving(struct MarioState *m); s32 let_go_of_ledge(struct MarioState *m); void climb_up_ledge(struct MarioState *m); void update_ledge_climb_camera(struct MarioState *m); void update_ledge_climb(struct MarioState *m, s32 animation, u32 endAction); -s32 act_ledge_grab(struct MarioState *m); -s32 act_ledge_climb_slow(struct MarioState *m); -s32 act_ledge_climb_down(struct MarioState *m); -s32 act_ledge_climb_fast(struct MarioState *m); -s32 act_grabbed(struct MarioState *m); -s32 act_in_cannon(struct MarioState *m); -s32 act_tornado_twirling(struct MarioState *m); -s32 act_bubbled(struct MarioState* m); s32 check_common_automatic_cancels(struct MarioState *m); s32 mario_execute_automatic_action(struct MarioState *m); diff --git a/autogen/lua_functions/mario_actions_cutscene.c b/autogen/lua_functions/mario_actions_cutscene.c index 6162ad32..a19d1cc8 100644 --- a/autogen/lua_functions/mario_actions_cutscene.c +++ b/autogen/lua_functions/mario_actions_cutscene.c @@ -8,4 +8,4 @@ void cutscene_put_cap_on(struct MarioState *m); u8 should_start_or_continue_dialog(struct MarioState* m, struct Object* object); void general_star_dance_handler(struct MarioState *m, s32 isInWater); void stuck_in_ground_handler(struct MarioState *m, s32 animation, s32 unstuckFrame, s32 target2, s32 target3, s32 endAction); -void generate_yellow_sparkles(s16 x, s16 y, s16 z, f32 radius); \ No newline at end of file +void generate_yellow_sparkles(s16 x, s16 y, s16 z, f32 radius); diff --git a/docs/lua/functions.md b/docs/lua/functions.md index 2ce563f2..e063e38e 100644 --- a/docs/lua/functions.md +++ b/docs/lua/functions.md @@ -72,50 +72,6 @@
- mario_actions_airborne.c - - [act_air_hit_wall](#act_air_hit_wall) - - [act_air_throw](#act_air_throw) - - [act_backflip](#act_backflip) - - [act_backward_air_kb](#act_backward_air_kb) - - [act_backward_rollout](#act_backward_rollout) - - [act_burning_fall](#act_burning_fall) - - [act_burning_jump](#act_burning_jump) - - [act_butt_slide_air](#act_butt_slide_air) - - [act_crazy_box_bounce](#act_crazy_box_bounce) - - [act_dive](#act_dive) - - [act_double_jump](#act_double_jump) - - [act_flying](#act_flying) - - [act_flying_triple_jump](#act_flying_triple_jump) - - [act_forward_air_kb](#act_forward_air_kb) - - [act_forward_rollout](#act_forward_rollout) - - [act_freefall](#act_freefall) - - [act_getting_blown](#act_getting_blown) - - [act_ground_pound](#act_ground_pound) - - [act_hard_backward_air_kb](#act_hard_backward_air_kb) - - [act_hard_forward_air_kb](#act_hard_forward_air_kb) - - [act_hold_butt_slide_air](#act_hold_butt_slide_air) - - [act_hold_freefall](#act_hold_freefall) - - [act_hold_jump](#act_hold_jump) - - [act_hold_water_jump](#act_hold_water_jump) - - [act_jump](#act_jump) - - [act_jump_kick](#act_jump_kick) - - [act_lava_boost](#act_lava_boost) - - [act_long_jump](#act_long_jump) - - [act_riding_hoot](#act_riding_hoot) - - [act_riding_shell_air](#act_riding_shell_air) - - [act_shot_from_cannon](#act_shot_from_cannon) - - [act_side_flip](#act_side_flip) - - [act_slide_kick](#act_slide_kick) - - [act_soft_bonk](#act_soft_bonk) - - [act_special_triple_jump](#act_special_triple_jump) - - [act_steep_jump](#act_steep_jump) - - [act_thrown_backward](#act_thrown_backward) - - [act_thrown_forward](#act_thrown_forward) - - [act_top_of_pole_jump](#act_top_of_pole_jump) - - [act_triple_jump](#act_triple_jump) - - [act_twirling](#act_twirling) - - [act_vertical_wind](#act_vertical_wind) - - [act_wall_kick_air](#act_wall_kick_air) - - [act_water_jump](#act_water_jump) - [check_common_airborne_cancels](#check_common_airborne_cancels) - [check_fall_damage](#check_fall_damage) - [check_fall_damage_or_get_stuck](#check_fall_damage_or_get_stuck) @@ -140,23 +96,6 @@
- mario_actions_automatic.c - - [act_bubbled](#act_bubbled) - - [act_climbing_pole](#act_climbing_pole) - - [act_grab_pole_fast](#act_grab_pole_fast) - - [act_grab_pole_slow](#act_grab_pole_slow) - - [act_grabbed](#act_grabbed) - - [act_hang_moving](#act_hang_moving) - - [act_hanging](#act_hanging) - - [act_holding_pole](#act_holding_pole) - - [act_in_cannon](#act_in_cannon) - - [act_ledge_climb_down](#act_ledge_climb_down) - - [act_ledge_climb_fast](#act_ledge_climb_fast) - - [act_ledge_climb_slow](#act_ledge_climb_slow) - - [act_ledge_grab](#act_ledge_grab) - - [act_start_hanging](#act_start_hanging) - - [act_top_of_pole](#act_top_of_pole) - - [act_top_of_pole_transition](#act_top_of_pole_transition) - - [act_tornado_twirling](#act_tornado_twirling) - [add_tree_leaf_particles](#add_tree_leaf_particles) - [check_common_automatic_cancels](#check_common_automatic_cancels) - [climb_up_ledge](#climb_up_ledge) @@ -1383,886 +1322,6 @@
-## [act_air_hit_wall](#act_air_hit_wall) - -### Lua Example -`local integerValue = act_air_hit_wall(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_air_hit_wall(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_air_throw](#act_air_throw) - -### Lua Example -`local integerValue = act_air_throw(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_air_throw(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_backflip](#act_backflip) - -### Lua Example -`local integerValue = act_backflip(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_backflip(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_backward_air_kb](#act_backward_air_kb) - -### Lua Example -`local integerValue = act_backward_air_kb(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_backward_air_kb(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_backward_rollout](#act_backward_rollout) - -### Lua Example -`local integerValue = act_backward_rollout(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_backward_rollout(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_burning_fall](#act_burning_fall) - -### Lua Example -`local integerValue = act_burning_fall(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_burning_fall(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_burning_jump](#act_burning_jump) - -### Lua Example -`local integerValue = act_burning_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_burning_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_butt_slide_air](#act_butt_slide_air) - -### Lua Example -`local integerValue = act_butt_slide_air(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_butt_slide_air(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_crazy_box_bounce](#act_crazy_box_bounce) - -### Lua Example -`local integerValue = act_crazy_box_bounce(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_crazy_box_bounce(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_dive](#act_dive) - -### Lua Example -`local integerValue = act_dive(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_dive(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_double_jump](#act_double_jump) - -### Lua Example -`local integerValue = act_double_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_double_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_flying](#act_flying) - -### Lua Example -`local integerValue = act_flying(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_flying(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_flying_triple_jump](#act_flying_triple_jump) - -### Lua Example -`local integerValue = act_flying_triple_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_flying_triple_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_forward_air_kb](#act_forward_air_kb) - -### Lua Example -`local integerValue = act_forward_air_kb(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_forward_air_kb(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_forward_rollout](#act_forward_rollout) - -### Lua Example -`local integerValue = act_forward_rollout(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_forward_rollout(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_freefall](#act_freefall) - -### Lua Example -`local integerValue = act_freefall(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_freefall(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_getting_blown](#act_getting_blown) - -### Lua Example -`local integerValue = act_getting_blown(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_getting_blown(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_ground_pound](#act_ground_pound) - -### Lua Example -`local integerValue = act_ground_pound(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_ground_pound(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hard_backward_air_kb](#act_hard_backward_air_kb) - -### Lua Example -`local integerValue = act_hard_backward_air_kb(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hard_backward_air_kb(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hard_forward_air_kb](#act_hard_forward_air_kb) - -### Lua Example -`local integerValue = act_hard_forward_air_kb(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hard_forward_air_kb(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hold_butt_slide_air](#act_hold_butt_slide_air) - -### Lua Example -`local integerValue = act_hold_butt_slide_air(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hold_butt_slide_air(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hold_freefall](#act_hold_freefall) - -### Lua Example -`local integerValue = act_hold_freefall(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hold_freefall(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hold_jump](#act_hold_jump) - -### Lua Example -`local integerValue = act_hold_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hold_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hold_water_jump](#act_hold_water_jump) - -### Lua Example -`local integerValue = act_hold_water_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hold_water_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_jump](#act_jump) - -### Lua Example -`local integerValue = act_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_jump_kick](#act_jump_kick) - -### Lua Example -`local integerValue = act_jump_kick(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_jump_kick(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_lava_boost](#act_lava_boost) - -### Lua Example -`local integerValue = act_lava_boost(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_lava_boost(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_long_jump](#act_long_jump) - -### Lua Example -`local integerValue = act_long_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_long_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_riding_hoot](#act_riding_hoot) - -### Lua Example -`local integerValue = act_riding_hoot(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_riding_hoot(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_riding_shell_air](#act_riding_shell_air) - -### Lua Example -`local integerValue = act_riding_shell_air(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_riding_shell_air(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_shot_from_cannon](#act_shot_from_cannon) - -### Lua Example -`local integerValue = act_shot_from_cannon(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_shot_from_cannon(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_side_flip](#act_side_flip) - -### Lua Example -`local integerValue = act_side_flip(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_side_flip(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_slide_kick](#act_slide_kick) - -### Lua Example -`local integerValue = act_slide_kick(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_slide_kick(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_soft_bonk](#act_soft_bonk) - -### Lua Example -`local integerValue = act_soft_bonk(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_soft_bonk(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_special_triple_jump](#act_special_triple_jump) - -### Lua Example -`local integerValue = act_special_triple_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_special_triple_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_steep_jump](#act_steep_jump) - -### Lua Example -`local integerValue = act_steep_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_steep_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_thrown_backward](#act_thrown_backward) - -### Lua Example -`local integerValue = act_thrown_backward(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_thrown_backward(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_thrown_forward](#act_thrown_forward) - -### Lua Example -`local integerValue = act_thrown_forward(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_thrown_forward(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_top_of_pole_jump](#act_top_of_pole_jump) - -### Lua Example -`local integerValue = act_top_of_pole_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_top_of_pole_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_triple_jump](#act_triple_jump) - -### Lua Example -`local integerValue = act_triple_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_triple_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_twirling](#act_twirling) - -### Lua Example -`local integerValue = act_twirling(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_twirling(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_vertical_wind](#act_vertical_wind) - -### Lua Example -`local integerValue = act_vertical_wind(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_vertical_wind(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_wall_kick_air](#act_wall_kick_air) - -### Lua Example -`local integerValue = act_wall_kick_air(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_wall_kick_air(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_water_jump](#act_water_jump) - -### Lua Example -`local integerValue = act_water_jump(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_water_jump(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- ## [check_common_airborne_cancels](#check_common_airborne_cancels) ### Lua Example @@ -2681,346 +1740,6 @@
-## [act_bubbled](#act_bubbled) - -### Lua Example -`local integerValue = act_bubbled(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_bubbled(struct MarioState* m);` - -[:arrow_up_small:](#) - -
- -## [act_climbing_pole](#act_climbing_pole) - -### Lua Example -`local integerValue = act_climbing_pole(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_climbing_pole(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_grab_pole_fast](#act_grab_pole_fast) - -### Lua Example -`local integerValue = act_grab_pole_fast(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_grab_pole_fast(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_grab_pole_slow](#act_grab_pole_slow) - -### Lua Example -`local integerValue = act_grab_pole_slow(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_grab_pole_slow(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_grabbed](#act_grabbed) - -### Lua Example -`local integerValue = act_grabbed(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_grabbed(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hang_moving](#act_hang_moving) - -### Lua Example -`local integerValue = act_hang_moving(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hang_moving(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_hanging](#act_hanging) - -### Lua Example -`local integerValue = act_hanging(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_hanging(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_holding_pole](#act_holding_pole) - -### Lua Example -`local integerValue = act_holding_pole(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_holding_pole(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_in_cannon](#act_in_cannon) - -### Lua Example -`local integerValue = act_in_cannon(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_in_cannon(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_ledge_climb_down](#act_ledge_climb_down) - -### Lua Example -`local integerValue = act_ledge_climb_down(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_ledge_climb_down(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_ledge_climb_fast](#act_ledge_climb_fast) - -### Lua Example -`local integerValue = act_ledge_climb_fast(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_ledge_climb_fast(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_ledge_climb_slow](#act_ledge_climb_slow) - -### Lua Example -`local integerValue = act_ledge_climb_slow(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_ledge_climb_slow(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_ledge_grab](#act_ledge_grab) - -### Lua Example -`local integerValue = act_ledge_grab(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_ledge_grab(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_start_hanging](#act_start_hanging) - -### Lua Example -`local integerValue = act_start_hanging(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_start_hanging(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_top_of_pole](#act_top_of_pole) - -### Lua Example -`local integerValue = act_top_of_pole(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_top_of_pole(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_top_of_pole_transition](#act_top_of_pole_transition) - -### Lua Example -`local integerValue = act_top_of_pole_transition(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_top_of_pole_transition(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- -## [act_tornado_twirling](#act_tornado_twirling) - -### Lua Example -`local integerValue = act_tornado_twirling(m)` - -### Parameters -| Field | Type | -| ----- | ---- | -| m | [MarioState](structs.md#MarioState) | - -### Returns -- integer - -### C Prototype -`s32 act_tornado_twirling(struct MarioState *m);` - -[:arrow_up_small:](#) - -
- ## [add_tree_leaf_particles](#add_tree_leaf_particles) ### Lua Example diff --git a/src/pc/lua/smlua_functions_autogen.c b/src/pc/lua/smlua_functions_autogen.c index 751adb91..1093ee8f 100644 --- a/src/pc/lua/smlua_functions_autogen.c +++ b/src/pc/lua/smlua_functions_autogen.c @@ -765,534 +765,6 @@ int smlua_func_vec3f_find_ceil(lua_State* L) { // mario_actions_airborne.c // ////////////////////////////// -int smlua_func_act_air_hit_wall(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_air_hit_wall(struct MarioState *m); - lua_pushinteger(L, act_air_hit_wall(m)); - - return 1; -} - -int smlua_func_act_air_throw(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_air_throw(struct MarioState *m); - lua_pushinteger(L, act_air_throw(m)); - - return 1; -} - -int smlua_func_act_backflip(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_backflip(struct MarioState *m); - lua_pushinteger(L, act_backflip(m)); - - return 1; -} - -int smlua_func_act_backward_air_kb(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_backward_air_kb(struct MarioState *m); - lua_pushinteger(L, act_backward_air_kb(m)); - - return 1; -} - -int smlua_func_act_backward_rollout(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_backward_rollout(struct MarioState *m); - lua_pushinteger(L, act_backward_rollout(m)); - - return 1; -} - -int smlua_func_act_burning_fall(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_burning_fall(struct MarioState *m); - lua_pushinteger(L, act_burning_fall(m)); - - return 1; -} - -int smlua_func_act_burning_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_burning_jump(struct MarioState *m); - lua_pushinteger(L, act_burning_jump(m)); - - return 1; -} - -int smlua_func_act_butt_slide_air(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_butt_slide_air(struct MarioState *m); - lua_pushinteger(L, act_butt_slide_air(m)); - - return 1; -} - -int smlua_func_act_crazy_box_bounce(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_crazy_box_bounce(struct MarioState *m); - lua_pushinteger(L, act_crazy_box_bounce(m)); - - return 1; -} - -int smlua_func_act_dive(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_dive(struct MarioState *m); - lua_pushinteger(L, act_dive(m)); - - return 1; -} - -int smlua_func_act_double_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_double_jump(struct MarioState *m); - lua_pushinteger(L, act_double_jump(m)); - - return 1; -} - -int smlua_func_act_flying(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_flying(struct MarioState *m); - lua_pushinteger(L, act_flying(m)); - - return 1; -} - -int smlua_func_act_flying_triple_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_flying_triple_jump(struct MarioState *m); - lua_pushinteger(L, act_flying_triple_jump(m)); - - return 1; -} - -int smlua_func_act_forward_air_kb(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_forward_air_kb(struct MarioState *m); - lua_pushinteger(L, act_forward_air_kb(m)); - - return 1; -} - -int smlua_func_act_forward_rollout(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_forward_rollout(struct MarioState *m); - lua_pushinteger(L, act_forward_rollout(m)); - - return 1; -} - -int smlua_func_act_freefall(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_freefall(struct MarioState *m); - lua_pushinteger(L, act_freefall(m)); - - return 1; -} - -int smlua_func_act_getting_blown(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_getting_blown(struct MarioState *m); - lua_pushinteger(L, act_getting_blown(m)); - - return 1; -} - -int smlua_func_act_ground_pound(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_ground_pound(struct MarioState *m); - lua_pushinteger(L, act_ground_pound(m)); - - return 1; -} - -int smlua_func_act_hard_backward_air_kb(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hard_backward_air_kb(struct MarioState *m); - lua_pushinteger(L, act_hard_backward_air_kb(m)); - - return 1; -} - -int smlua_func_act_hard_forward_air_kb(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hard_forward_air_kb(struct MarioState *m); - lua_pushinteger(L, act_hard_forward_air_kb(m)); - - return 1; -} - -int smlua_func_act_hold_butt_slide_air(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hold_butt_slide_air(struct MarioState *m); - lua_pushinteger(L, act_hold_butt_slide_air(m)); - - return 1; -} - -int smlua_func_act_hold_freefall(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hold_freefall(struct MarioState *m); - lua_pushinteger(L, act_hold_freefall(m)); - - return 1; -} - -int smlua_func_act_hold_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hold_jump(struct MarioState *m); - lua_pushinteger(L, act_hold_jump(m)); - - return 1; -} - -int smlua_func_act_hold_water_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hold_water_jump(struct MarioState *m); - lua_pushinteger(L, act_hold_water_jump(m)); - - return 1; -} - -int smlua_func_act_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_jump(struct MarioState *m); - lua_pushinteger(L, act_jump(m)); - - return 1; -} - -int smlua_func_act_jump_kick(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_jump_kick(struct MarioState *m); - lua_pushinteger(L, act_jump_kick(m)); - - return 1; -} - -int smlua_func_act_lava_boost(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_lava_boost(struct MarioState *m); - lua_pushinteger(L, act_lava_boost(m)); - - return 1; -} - -int smlua_func_act_long_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_long_jump(struct MarioState *m); - lua_pushinteger(L, act_long_jump(m)); - - return 1; -} - -int smlua_func_act_riding_hoot(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_riding_hoot(struct MarioState *m); - lua_pushinteger(L, act_riding_hoot(m)); - - return 1; -} - -int smlua_func_act_riding_shell_air(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_riding_shell_air(struct MarioState *m); - lua_pushinteger(L, act_riding_shell_air(m)); - - return 1; -} - -int smlua_func_act_shot_from_cannon(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_shot_from_cannon(struct MarioState *m); - lua_pushinteger(L, act_shot_from_cannon(m)); - - return 1; -} - -int smlua_func_act_side_flip(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_side_flip(struct MarioState *m); - lua_pushinteger(L, act_side_flip(m)); - - return 1; -} - -int smlua_func_act_slide_kick(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_slide_kick(struct MarioState *m); - lua_pushinteger(L, act_slide_kick(m)); - - return 1; -} - -int smlua_func_act_soft_bonk(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_soft_bonk(struct MarioState *m); - lua_pushinteger(L, act_soft_bonk(m)); - - return 1; -} - -int smlua_func_act_special_triple_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_special_triple_jump(struct MarioState *m); - lua_pushinteger(L, act_special_triple_jump(m)); - - return 1; -} - -int smlua_func_act_steep_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_steep_jump(struct MarioState *m); - lua_pushinteger(L, act_steep_jump(m)); - - return 1; -} - -int smlua_func_act_thrown_backward(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_thrown_backward(struct MarioState *m); - lua_pushinteger(L, act_thrown_backward(m)); - - return 1; -} - -int smlua_func_act_thrown_forward(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_thrown_forward(struct MarioState *m); - lua_pushinteger(L, act_thrown_forward(m)); - - return 1; -} - -int smlua_func_act_top_of_pole_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_top_of_pole_jump(struct MarioState *m); - lua_pushinteger(L, act_top_of_pole_jump(m)); - - return 1; -} - -int smlua_func_act_triple_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_triple_jump(struct MarioState *m); - lua_pushinteger(L, act_triple_jump(m)); - - return 1; -} - -int smlua_func_act_twirling(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_twirling(struct MarioState *m); - lua_pushinteger(L, act_twirling(m)); - - return 1; -} - -int smlua_func_act_vertical_wind(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_vertical_wind(struct MarioState *m); - lua_pushinteger(L, act_vertical_wind(m)); - - return 1; -} - -int smlua_func_act_wall_kick_air(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_wall_kick_air(struct MarioState *m); - lua_pushinteger(L, act_wall_kick_air(m)); - - return 1; -} - -int smlua_func_act_water_jump(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_water_jump(struct MarioState *m); - lua_pushinteger(L, act_water_jump(m)); - - return 1; -} - int smlua_func_check_common_airborne_cancels(lua_State* L) { if(!smlua_functions_valid_param_count(L, 1)) { return 0; } @@ -1561,210 +1033,6 @@ int smlua_func_update_lava_boost_or_twirling(lua_State* L) { // mario_actions_automatic.c // /////////////////////////////// -int smlua_func_act_bubbled(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_bubbled(struct MarioState* m); - lua_pushinteger(L, act_bubbled(m)); - - return 1; -} - -int smlua_func_act_climbing_pole(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_climbing_pole(struct MarioState *m); - lua_pushinteger(L, act_climbing_pole(m)); - - return 1; -} - -int smlua_func_act_grab_pole_fast(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_grab_pole_fast(struct MarioState *m); - lua_pushinteger(L, act_grab_pole_fast(m)); - - return 1; -} - -int smlua_func_act_grab_pole_slow(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_grab_pole_slow(struct MarioState *m); - lua_pushinteger(L, act_grab_pole_slow(m)); - - return 1; -} - -int smlua_func_act_grabbed(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_grabbed(struct MarioState *m); - lua_pushinteger(L, act_grabbed(m)); - - return 1; -} - -int smlua_func_act_hang_moving(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hang_moving(struct MarioState *m); - lua_pushinteger(L, act_hang_moving(m)); - - return 1; -} - -int smlua_func_act_hanging(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_hanging(struct MarioState *m); - lua_pushinteger(L, act_hanging(m)); - - return 1; -} - -int smlua_func_act_holding_pole(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_holding_pole(struct MarioState *m); - lua_pushinteger(L, act_holding_pole(m)); - - return 1; -} - -int smlua_func_act_in_cannon(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_in_cannon(struct MarioState *m); - lua_pushinteger(L, act_in_cannon(m)); - - return 1; -} - -int smlua_func_act_ledge_climb_down(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_ledge_climb_down(struct MarioState *m); - lua_pushinteger(L, act_ledge_climb_down(m)); - - return 1; -} - -int smlua_func_act_ledge_climb_fast(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_ledge_climb_fast(struct MarioState *m); - lua_pushinteger(L, act_ledge_climb_fast(m)); - - return 1; -} - -int smlua_func_act_ledge_climb_slow(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_ledge_climb_slow(struct MarioState *m); - lua_pushinteger(L, act_ledge_climb_slow(m)); - - return 1; -} - -int smlua_func_act_ledge_grab(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_ledge_grab(struct MarioState *m); - lua_pushinteger(L, act_ledge_grab(m)); - - return 1; -} - -int smlua_func_act_start_hanging(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_start_hanging(struct MarioState *m); - lua_pushinteger(L, act_start_hanging(m)); - - return 1; -} - -int smlua_func_act_top_of_pole(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_top_of_pole(struct MarioState *m); - lua_pushinteger(L, act_top_of_pole(m)); - - return 1; -} - -int smlua_func_act_top_of_pole_transition(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_top_of_pole_transition(struct MarioState *m); - lua_pushinteger(L, act_top_of_pole_transition(m)); - - return 1; -} - -int smlua_func_act_tornado_twirling(lua_State* L) { - if(!smlua_functions_valid_param_count(L, 1)) { return 0; } - - struct MarioState* m = (struct MarioState*)smlua_to_cobject(L, 1, LOT_MARIOSTATE); - if (!gSmLuaConvertSuccess) { return 0; } - - extern s32 act_tornado_twirling(struct MarioState *m); - lua_pushinteger(L, act_tornado_twirling(m)); - - return 1; -} - int smlua_func_add_tree_leaf_particles(lua_State* L) { if(!smlua_functions_valid_param_count(L, 1)) { return 0; } @@ -3291,50 +2559,6 @@ void smlua_bind_functions_autogen(void) { //smlua_bind_function(L, "vec3f_find_ceil", smlua_func_vec3f_find_ceil); <--- UNIMPLEMENTED // mario_actions_airborne.c - smlua_bind_function(L, "act_air_hit_wall", smlua_func_act_air_hit_wall); - smlua_bind_function(L, "act_air_throw", smlua_func_act_air_throw); - smlua_bind_function(L, "act_backflip", smlua_func_act_backflip); - smlua_bind_function(L, "act_backward_air_kb", smlua_func_act_backward_air_kb); - smlua_bind_function(L, "act_backward_rollout", smlua_func_act_backward_rollout); - smlua_bind_function(L, "act_burning_fall", smlua_func_act_burning_fall); - smlua_bind_function(L, "act_burning_jump", smlua_func_act_burning_jump); - smlua_bind_function(L, "act_butt_slide_air", smlua_func_act_butt_slide_air); - smlua_bind_function(L, "act_crazy_box_bounce", smlua_func_act_crazy_box_bounce); - smlua_bind_function(L, "act_dive", smlua_func_act_dive); - smlua_bind_function(L, "act_double_jump", smlua_func_act_double_jump); - smlua_bind_function(L, "act_flying", smlua_func_act_flying); - smlua_bind_function(L, "act_flying_triple_jump", smlua_func_act_flying_triple_jump); - smlua_bind_function(L, "act_forward_air_kb", smlua_func_act_forward_air_kb); - smlua_bind_function(L, "act_forward_rollout", smlua_func_act_forward_rollout); - smlua_bind_function(L, "act_freefall", smlua_func_act_freefall); - smlua_bind_function(L, "act_getting_blown", smlua_func_act_getting_blown); - smlua_bind_function(L, "act_ground_pound", smlua_func_act_ground_pound); - smlua_bind_function(L, "act_hard_backward_air_kb", smlua_func_act_hard_backward_air_kb); - smlua_bind_function(L, "act_hard_forward_air_kb", smlua_func_act_hard_forward_air_kb); - smlua_bind_function(L, "act_hold_butt_slide_air", smlua_func_act_hold_butt_slide_air); - smlua_bind_function(L, "act_hold_freefall", smlua_func_act_hold_freefall); - smlua_bind_function(L, "act_hold_jump", smlua_func_act_hold_jump); - smlua_bind_function(L, "act_hold_water_jump", smlua_func_act_hold_water_jump); - smlua_bind_function(L, "act_jump", smlua_func_act_jump); - smlua_bind_function(L, "act_jump_kick", smlua_func_act_jump_kick); - smlua_bind_function(L, "act_lava_boost", smlua_func_act_lava_boost); - smlua_bind_function(L, "act_long_jump", smlua_func_act_long_jump); - smlua_bind_function(L, "act_riding_hoot", smlua_func_act_riding_hoot); - smlua_bind_function(L, "act_riding_shell_air", smlua_func_act_riding_shell_air); - smlua_bind_function(L, "act_shot_from_cannon", smlua_func_act_shot_from_cannon); - smlua_bind_function(L, "act_side_flip", smlua_func_act_side_flip); - smlua_bind_function(L, "act_slide_kick", smlua_func_act_slide_kick); - smlua_bind_function(L, "act_soft_bonk", smlua_func_act_soft_bonk); - smlua_bind_function(L, "act_special_triple_jump", smlua_func_act_special_triple_jump); - smlua_bind_function(L, "act_steep_jump", smlua_func_act_steep_jump); - smlua_bind_function(L, "act_thrown_backward", smlua_func_act_thrown_backward); - smlua_bind_function(L, "act_thrown_forward", smlua_func_act_thrown_forward); - smlua_bind_function(L, "act_top_of_pole_jump", smlua_func_act_top_of_pole_jump); - smlua_bind_function(L, "act_triple_jump", smlua_func_act_triple_jump); - smlua_bind_function(L, "act_twirling", smlua_func_act_twirling); - smlua_bind_function(L, "act_vertical_wind", smlua_func_act_vertical_wind); - smlua_bind_function(L, "act_wall_kick_air", smlua_func_act_wall_kick_air); - smlua_bind_function(L, "act_water_jump", smlua_func_act_water_jump); smlua_bind_function(L, "check_common_airborne_cancels", smlua_func_check_common_airborne_cancels); smlua_bind_function(L, "check_fall_damage", smlua_func_check_fall_damage); smlua_bind_function(L, "check_fall_damage_or_get_stuck", smlua_func_check_fall_damage_or_get_stuck); @@ -3357,23 +2581,6 @@ void smlua_bind_functions_autogen(void) { smlua_bind_function(L, "update_lava_boost_or_twirling", smlua_func_update_lava_boost_or_twirling); // mario_actions_automatic.c - smlua_bind_function(L, "act_bubbled", smlua_func_act_bubbled); - smlua_bind_function(L, "act_climbing_pole", smlua_func_act_climbing_pole); - smlua_bind_function(L, "act_grab_pole_fast", smlua_func_act_grab_pole_fast); - smlua_bind_function(L, "act_grab_pole_slow", smlua_func_act_grab_pole_slow); - smlua_bind_function(L, "act_grabbed", smlua_func_act_grabbed); - smlua_bind_function(L, "act_hang_moving", smlua_func_act_hang_moving); - smlua_bind_function(L, "act_hanging", smlua_func_act_hanging); - smlua_bind_function(L, "act_holding_pole", smlua_func_act_holding_pole); - smlua_bind_function(L, "act_in_cannon", smlua_func_act_in_cannon); - smlua_bind_function(L, "act_ledge_climb_down", smlua_func_act_ledge_climb_down); - smlua_bind_function(L, "act_ledge_climb_fast", smlua_func_act_ledge_climb_fast); - smlua_bind_function(L, "act_ledge_climb_slow", smlua_func_act_ledge_climb_slow); - smlua_bind_function(L, "act_ledge_grab", smlua_func_act_ledge_grab); - smlua_bind_function(L, "act_start_hanging", smlua_func_act_start_hanging); - smlua_bind_function(L, "act_top_of_pole", smlua_func_act_top_of_pole); - smlua_bind_function(L, "act_top_of_pole_transition", smlua_func_act_top_of_pole_transition); - smlua_bind_function(L, "act_tornado_twirling", smlua_func_act_tornado_twirling); smlua_bind_function(L, "add_tree_leaf_particles", smlua_func_add_tree_leaf_particles); smlua_bind_function(L, "check_common_automatic_cancels", smlua_func_check_common_automatic_cancels); smlua_bind_function(L, "climb_up_ledge", smlua_func_climb_up_ledge);