mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
94c531272f
New gLevelValues exposed to lua: pssSlideStarTime: the time limit in frames for PSS-style levels (default: 630) pssSlideStarIndex: the index of the star spawned below the time limit for PSS-style levels (default: 1) coinsRequiredForCoinStar: number of coins required to spawn the 7th star of a main course (default: 100) wingCapDuration: duration in frames of the wing cap (default: 1800) metalCapDuration: duration in frames of the metal cap (default: 600) vanishCapDuration: duration in frames of the vanish cap (default: 600) wingCapDurationTotwc: duration in frames of the wing cap given to the player at the entrance of TOTWC (default: 1200) metalCapDurationCotmc: duration in frames of the metal cap given to the player at the entrance of COTMC (default: 600) vanishCapDurationVcutm: duration in frames of the vanish cap given to the player at the entrance of VCUTM (default: 600) Fixed a bug preventing the level music from restarting after defeating a Boss. Fixed some bugs with 3D coins or any model with the geo_rotate_coin function: Disable billboard and cylboard attributes. Set the pitch and roll to 0 for the model to rotate properly. The model no longer rotates every frame (even when the game is paused), but every time the object is updated.
1168 lines
45 KiB
C++
1168 lines
45 KiB
C++
#include "dynos.cpp.h"
|
|
extern "C" {
|
|
#include "behavior_table.h"
|
|
#include "levels/scripts.h"
|
|
#include "object_fields.h"
|
|
#include "engine/level_script.h"
|
|
#include "game/object_helpers.h"
|
|
#include "game/segment2.h"
|
|
#include "game/level_geo.h"
|
|
#include "game/level_update.h"
|
|
#include "game/moving_texture.h"
|
|
#include "game/paintings.h"
|
|
#include "game/geo_misc.h"
|
|
#include "game/mario_misc.h"
|
|
#include "game/mario_actions_cutscene.h"
|
|
#include "game/screen_transition.h"
|
|
#include "game/object_list_processor.h"
|
|
#include "game/behavior_actions.h"
|
|
#include "game/rendering_graph_node.h"
|
|
#include "game/skybox.h"
|
|
|
|
#include "actors/common0.h"
|
|
#include "actors/common1.h"
|
|
#include "actors/group0.h"
|
|
#include "actors/group1.h"
|
|
#include "actors/group2.h"
|
|
#include "actors/group3.h"
|
|
#include "actors/group4.h"
|
|
#include "actors/group5.h"
|
|
#include "actors/group6.h"
|
|
#include "actors/group7.h"
|
|
#include "actors/group8.h"
|
|
#include "actors/group9.h"
|
|
#include "actors/group10.h"
|
|
#include "actors/group11.h"
|
|
#include "actors/group12.h"
|
|
#include "actors/group13.h"
|
|
#include "actors/group14.h"
|
|
#include "actors/group15.h"
|
|
#include "actors/group16.h"
|
|
#include "actors/group17.h"
|
|
#include "actors/custom0.h"
|
|
#include "actors/zcustom0.h"
|
|
|
|
#include "levels/bbh/header.h"
|
|
#include "levels/bitdw/header.h"
|
|
#include "levels/bitfs/header.h"
|
|
#include "levels/bits/header.h"
|
|
#include "levels/bob/header.h"
|
|
#include "levels/bowser_1/header.h"
|
|
#include "levels/bowser_2/header.h"
|
|
#include "levels/bowser_2/header.h"
|
|
#include "levels/bowser_3/header.h"
|
|
#include "levels/bowser_3/header.h"
|
|
#include "levels/castle_courtyard/header.h"
|
|
#include "levels/castle_grounds/header.h"
|
|
#include "levels/castle_inside/header.h"
|
|
#include "levels/ccm/header.h"
|
|
#include "levels/cotmc/header.h"
|
|
#include "levels/ddd/header.h"
|
|
#include "levels/hmc/header.h"
|
|
#include "levels/jrb/header.h"
|
|
#include "levels/lll/header.h"
|
|
#include "levels/pss/header.h"
|
|
#include "levels/rr/header.h"
|
|
#include "levels/sa/header.h"
|
|
#include "levels/sl/header.h"
|
|
#include "levels/ssl/header.h"
|
|
#include "levels/thi/header.h"
|
|
#include "levels/totwc/header.h"
|
|
#include "levels/ttc/header.h"
|
|
#include "levels/ttm/header.h"
|
|
#include "levels/vcutm/header.h"
|
|
#include "levels/wdw/header.h"
|
|
#include "levels/wf/header.h"
|
|
#include "levels/wmotr/header.h"
|
|
|
|
#include "dynos_mgr_builtin_externs.h"
|
|
#include "textures.h"
|
|
}
|
|
|
|
#define define_builtin(_ptr) (const void*)#_ptr, (const void*)_ptr
|
|
|
|
#define MGR_FIND_DATA(_DataTable, _Cast) \
|
|
size_t _count = sizeof(_DataTable) / (2 * sizeof(_DataTable[0])); \
|
|
for (u32 _i = 0; _i < _count; _i++) { \
|
|
if (!strcmp((const char*)_DataTable[_i * 2 + 0], aDataName)) { \
|
|
return _Cast _DataTable[_i * 2 + 1]; \
|
|
} \
|
|
} \
|
|
return NULL;
|
|
|
|
#define MGR_FIND_NAME(_DataTable) \
|
|
size_t _count = sizeof(_DataTable) / (2 * sizeof(_DataTable[0])); \
|
|
for (u32 _i = 0; _i < _count; _i++) { \
|
|
if ((const void*)_DataTable[_i * 2 + 1] == aData) { \
|
|
return (const char*)_DataTable[_i * 2 + 0]; \
|
|
} \
|
|
} \
|
|
return NULL;
|
|
|
|
///////////////////////
|
|
// Function Pointers //
|
|
///////////////////////
|
|
|
|
static const void* sDynosBuiltinScriptPtrs[] = {
|
|
define_builtin(level_main_scripts_entry),
|
|
define_builtin(script_func_global_1),
|
|
define_builtin(script_func_global_2),
|
|
define_builtin(script_func_global_3),
|
|
define_builtin(script_func_global_4),
|
|
define_builtin(script_func_global_5),
|
|
define_builtin(script_func_global_6),
|
|
define_builtin(script_func_global_7),
|
|
define_builtin(script_func_global_8),
|
|
define_builtin(script_func_global_9),
|
|
define_builtin(script_func_global_10),
|
|
define_builtin(script_func_global_11),
|
|
define_builtin(script_func_global_12),
|
|
define_builtin(script_func_global_13),
|
|
define_builtin(script_func_global_14),
|
|
define_builtin(script_func_global_15),
|
|
define_builtin(script_func_global_16),
|
|
define_builtin(script_func_global_17),
|
|
define_builtin(script_func_global_18),
|
|
define_builtin(level_bbh_entry),
|
|
define_builtin(level_bitdw_entry),
|
|
define_builtin(level_bitfs_entry),
|
|
define_builtin(level_bits_entry),
|
|
define_builtin(level_bob_entry),
|
|
define_builtin(level_bowser_1_entry),
|
|
define_builtin(level_bowser_2_entry),
|
|
define_builtin(level_bowser_3_entry),
|
|
define_builtin(level_castle_courtyard_entry),
|
|
define_builtin(level_castle_grounds_entry),
|
|
define_builtin(level_castle_inside_entry),
|
|
define_builtin(level_ccm_entry),
|
|
define_builtin(level_cotmc_entry),
|
|
define_builtin(level_ddd_entry),
|
|
define_builtin(level_hmc_entry),
|
|
define_builtin(level_jrb_entry),
|
|
define_builtin(level_lll_entry),
|
|
define_builtin(level_pss_entry),
|
|
define_builtin(level_rr_entry),
|
|
define_builtin(level_sa_entry),
|
|
define_builtin(level_sl_entry),
|
|
define_builtin(level_ssl_entry),
|
|
define_builtin(level_thi_entry),
|
|
define_builtin(level_totwc_entry),
|
|
define_builtin(level_ttc_entry),
|
|
define_builtin(level_ttm_entry),
|
|
define_builtin(level_vcutm_entry),
|
|
define_builtin(level_wdw_entry),
|
|
define_builtin(level_wf_entry),
|
|
define_builtin(level_wmotr_entry),
|
|
};
|
|
|
|
const void* DynOS_Builtin_ScriptPtr_GetFromName(const char* aDataName) {
|
|
MGR_FIND_DATA(sDynosBuiltinScriptPtrs, (const void*));
|
|
}
|
|
|
|
const char* DynOS_Builtin_ScriptPtr_GetFromData(const void* aData) {
|
|
MGR_FIND_NAME(sDynosBuiltinScriptPtrs);
|
|
}
|
|
|
|
////////////
|
|
// Actors //
|
|
////////////
|
|
|
|
static const void *sDynosBuiltinActors[] = {
|
|
define_builtin(amp_geo),
|
|
define_builtin(birds_geo),
|
|
define_builtin(blargg_geo),
|
|
define_builtin(blue_coin_switch_geo),
|
|
define_builtin(black_bobomb_geo),
|
|
define_builtin(bobomb_buddy_geo),
|
|
define_builtin(boo_geo),
|
|
define_builtin(boo_castle_geo),
|
|
define_builtin(bookend_geo),
|
|
define_builtin(bookend_part_geo),
|
|
define_builtin(bowling_ball_geo),
|
|
define_builtin(bowling_ball_track_geo),
|
|
define_builtin(bowser_geo),
|
|
define_builtin(bowser2_geo),
|
|
define_builtin(bowser_bomb_geo),
|
|
define_builtin(bowser_flames_geo),
|
|
define_builtin(bowser_impact_smoke_geo),
|
|
define_builtin(bowser_1_yellow_sphere_geo),
|
|
define_builtin(invisible_bowser_accessory_geo),
|
|
define_builtin(bowser_key_geo),
|
|
define_builtin(bowser_key_cutscene_geo),
|
|
define_builtin(breakable_box_geo),
|
|
define_builtin(breakable_box_small_geo),
|
|
define_builtin(bub_geo),
|
|
define_builtin(bubba_geo),
|
|
define_builtin(bubble_geo),
|
|
define_builtin(bullet_bill_geo),
|
|
define_builtin(bully_geo),
|
|
define_builtin(bully_boss_geo),
|
|
define_builtin(burn_smoke_geo),
|
|
define_builtin(butterfly_geo),
|
|
define_builtin(cannon_barrel_geo),
|
|
define_builtin(cannon_base_geo),
|
|
define_builtin(cap_switch_geo),
|
|
define_builtin(cartoon_star_geo),
|
|
define_builtin(chain_chomp_geo),
|
|
define_builtin(checkerboard_platform_geo),
|
|
define_builtin(chilly_chief_geo),
|
|
define_builtin(chilly_chief_big_geo),
|
|
define_builtin(chuckya_geo),
|
|
define_builtin(clam_shell_geo),
|
|
define_builtin(yellow_coin_geo),
|
|
define_builtin(yellow_coin_no_shadow_geo),
|
|
define_builtin(blue_coin_geo),
|
|
define_builtin(blue_coin_no_shadow_geo),
|
|
define_builtin(red_coin_geo),
|
|
define_builtin(red_coin_no_shadow_geo),
|
|
define_builtin(dirt_animation_geo),
|
|
define_builtin(dorrie_geo),
|
|
define_builtin(cabin_door_geo),
|
|
define_builtin(castle_door_geo),
|
|
define_builtin(castle_door_0_star_geo),
|
|
define_builtin(castle_door_1_star_geo),
|
|
define_builtin(castle_door_3_stars_geo),
|
|
define_builtin(haunted_door_geo),
|
|
define_builtin(hazy_maze_door_geo),
|
|
define_builtin(metal_door_geo),
|
|
define_builtin(key_door_geo),
|
|
define_builtin(wooden_door_geo),
|
|
define_builtin(enemy_lakitu_geo),
|
|
define_builtin(exclamation_box_geo),
|
|
define_builtin(exclamation_box_outline_geo),
|
|
define_builtin(explosion_geo),
|
|
define_builtin(eyerok_left_hand_geo),
|
|
define_builtin(eyerok_right_hand_geo),
|
|
define_builtin(fish_geo),
|
|
define_builtin(cyan_fish_geo),
|
|
define_builtin(flyguy_geo),
|
|
define_builtin(red_flame_geo),
|
|
define_builtin(red_flame_shadow_geo),
|
|
define_builtin(blue_flame_geo),
|
|
define_builtin(fwoosh_geo),
|
|
define_builtin(goomba_geo),
|
|
define_builtin(haunted_cage_geo),
|
|
define_builtin(haunted_chair_geo),
|
|
define_builtin(heart_geo),
|
|
define_builtin(heave_ho_geo),
|
|
define_builtin(hoot_geo),
|
|
define_builtin(king_bobomb_geo),
|
|
define_builtin(klepto_geo),
|
|
define_builtin(koopa_with_shell_geo),
|
|
define_builtin(koopa_without_shell_geo),
|
|
define_builtin(koopa_flag_geo),
|
|
define_builtin(koopa_shell_geo),
|
|
define_builtin(lakitu_geo),
|
|
define_builtin(mad_piano_geo),
|
|
define_builtin(manta_seg5_geo_05008D14),
|
|
define_builtin(mario_geo),
|
|
define_builtin(marios_cap_geo),
|
|
define_builtin(marios_metal_cap_geo),
|
|
define_builtin(marios_wing_cap_geo),
|
|
define_builtin(marios_winged_metal_cap_geo),
|
|
define_builtin(metal_box_geo),
|
|
define_builtin(metallic_ball_geo),
|
|
define_builtin(mips_geo),
|
|
define_builtin(mist_geo),
|
|
define_builtin(moneybag_geo),
|
|
define_builtin(monty_mole_geo),
|
|
define_builtin(mr_blizzard_geo),
|
|
define_builtin(mr_blizzard_hidden_geo),
|
|
define_builtin(mr_i_geo),
|
|
define_builtin(mr_i_iris_geo),
|
|
define_builtin(mushroom_1up_geo),
|
|
define_builtin(number_geo),
|
|
define_builtin(peach_geo),
|
|
define_builtin(penguin_geo),
|
|
define_builtin(piranha_plant_geo),
|
|
define_builtin(pokey_head_geo),
|
|
define_builtin(pokey_body_part_geo),
|
|
define_builtin(purple_marble_geo),
|
|
define_builtin(purple_switch_geo),
|
|
define_builtin(scuttlebug_geo),
|
|
define_builtin(seaweed_geo),
|
|
define_builtin(skeeter_geo),
|
|
define_builtin(small_key_geo),
|
|
define_builtin(small_water_splash_geo),
|
|
define_builtin(smoke_geo),
|
|
define_builtin(snufit_geo),
|
|
define_builtin(sparkles_geo),
|
|
define_builtin(sparkles_animation_geo),
|
|
define_builtin(spindrift_geo),
|
|
define_builtin(spiny_geo),
|
|
define_builtin(spiny_ball_geo),
|
|
define_builtin(star_geo),
|
|
define_builtin(transparent_star_geo),
|
|
define_builtin(sushi_geo),
|
|
define_builtin(swoop_geo),
|
|
define_builtin(thwomp_geo),
|
|
define_builtin(toad_geo),
|
|
define_builtin(treasure_chest_base_geo),
|
|
define_builtin(treasure_chest_lid_geo),
|
|
define_builtin(bubbly_tree_geo),
|
|
define_builtin(spiky_tree_geo),
|
|
define_builtin(snow_tree_geo),
|
|
define_builtin(palm_tree_geo),
|
|
define_builtin(leaves_geo),
|
|
define_builtin(tweester_geo),
|
|
define_builtin(ukiki_geo),
|
|
define_builtin(unagi_geo),
|
|
define_builtin(warp_pipe_geo),
|
|
define_builtin(water_bomb_geo),
|
|
define_builtin(water_bomb_shadow_geo),
|
|
define_builtin(water_ring_geo),
|
|
define_builtin(water_splash_geo),
|
|
define_builtin(idle_water_wave_geo),
|
|
define_builtin(wave_trail_geo),
|
|
define_builtin(white_particle_geo),
|
|
define_builtin(white_puff_geo),
|
|
define_builtin(whomp_geo),
|
|
define_builtin(wiggler_head_geo),
|
|
define_builtin(wiggler_body_geo),
|
|
define_builtin(wooden_post_geo),
|
|
define_builtin(wooden_signpost_geo),
|
|
define_builtin(yellow_sphere_geo),
|
|
define_builtin(yoshi_geo),
|
|
define_builtin(yoshi_egg_geo),
|
|
// coop models
|
|
define_builtin(error_model_geo),
|
|
define_builtin(luigi_geo),
|
|
define_builtin(luigis_cap_geo),
|
|
define_builtin(luigis_metal_cap_geo),
|
|
define_builtin(luigis_wing_cap_geo),
|
|
define_builtin(luigis_winged_metal_cap_geo),
|
|
define_builtin(toad_player_geo),
|
|
define_builtin(toads_cap_geo),
|
|
define_builtin(toads_metal_cap_geo),
|
|
define_builtin(toads_wing_cap_geo),
|
|
define_builtin(waluigi_geo),
|
|
define_builtin(waluigis_cap_geo),
|
|
define_builtin(waluigis_metal_cap_geo),
|
|
define_builtin(waluigis_wing_cap_geo),
|
|
define_builtin(waluigis_winged_metal_cap_geo),
|
|
define_builtin(wario_geo),
|
|
define_builtin(warios_cap_geo),
|
|
define_builtin(warios_metal_cap_geo),
|
|
define_builtin(warios_wing_cap_geo),
|
|
define_builtin(warios_winged_metal_cap_geo),
|
|
};
|
|
|
|
const GeoLayout* DynOS_Builtin_Actor_GetFromName(const char* aDataName) {
|
|
MGR_FIND_DATA(sDynosBuiltinActors, (const GeoLayout*));
|
|
}
|
|
|
|
const char* DynOS_Builtin_Actor_GetFromData(const GeoLayout* aData) {
|
|
MGR_FIND_NAME(sDynosBuiltinActors);
|
|
}
|
|
|
|
const GeoLayout* DynOS_Builtin_Actor_GetFromIndex(s32 aIndex) {
|
|
size_t count = DynOS_Builtin_Actor_GetCount();
|
|
if (aIndex < 0 || aIndex >= count) { return NULL; }
|
|
return (const GeoLayout*)sDynosBuiltinActors[aIndex * 2 + 1];
|
|
}
|
|
|
|
const char* DynOS_Builtin_Actor_GetNameFromIndex(s32 aIndex) {
|
|
size_t count = DynOS_Builtin_Actor_GetCount();
|
|
if (aIndex < 0 || aIndex >= count) { return NULL; }
|
|
return (const char*)sDynosBuiltinActors[aIndex * 2 + 0];
|
|
}
|
|
|
|
s32 DynOS_Builtin_Actor_GetCount() {
|
|
return sizeof(sDynosBuiltinActors) / (2 * sizeof(sDynosBuiltinActors[0]));
|
|
}
|
|
|
|
////////////////
|
|
// Level Geos //
|
|
////////////////
|
|
|
|
static const void* sDynosBuiltinLvlGeos[] = {
|
|
define_builtin(bitfs_geo_0004B0),
|
|
define_builtin(bitfs_geo_0004C8),
|
|
define_builtin(bitfs_geo_0004E0),
|
|
define_builtin(bitfs_geo_0004F8),
|
|
define_builtin(bitfs_geo_000510),
|
|
define_builtin(bitfs_geo_000528),
|
|
define_builtin(bitfs_geo_000540),
|
|
define_builtin(bitfs_geo_000558),
|
|
define_builtin(bitfs_geo_000570),
|
|
define_builtin(bitfs_geo_000588),
|
|
define_builtin(bitfs_geo_0005A0),
|
|
define_builtin(bitfs_geo_0005B8),
|
|
define_builtin(bitfs_geo_0005D0),
|
|
define_builtin(bitfs_geo_0005E8),
|
|
define_builtin(bitfs_geo_000600),
|
|
define_builtin(bitfs_geo_000618),
|
|
define_builtin(bitfs_geo_000630),
|
|
define_builtin(bitfs_geo_000648),
|
|
define_builtin(bitfs_geo_000660),
|
|
define_builtin(bitfs_geo_000678),
|
|
define_builtin(bitfs_geo_000690),
|
|
define_builtin(bitfs_geo_0006A8),
|
|
define_builtin(bitfs_geo_0006C0),
|
|
define_builtin(bitfs_geo_0006D8),
|
|
define_builtin(bitfs_geo_0006F0),
|
|
define_builtin(bitfs_geo_000708),
|
|
define_builtin(bitfs_geo_000728),
|
|
define_builtin(bitfs_geo_000740),
|
|
define_builtin(bitfs_geo_000758),
|
|
define_builtin(bitfs_geo_000770),
|
|
define_builtin(bitfs_geo_000788),
|
|
define_builtin(bitfs_geo_0007A0),
|
|
define_builtin(bits_geo_000430),
|
|
define_builtin(bits_geo_000448),
|
|
define_builtin(bits_geo_000460),
|
|
define_builtin(bits_geo_000478),
|
|
define_builtin(bits_geo_000490),
|
|
define_builtin(bits_geo_0004A8),
|
|
define_builtin(bits_geo_0004C0),
|
|
define_builtin(bits_geo_0004D8),
|
|
define_builtin(bits_geo_0004F0),
|
|
define_builtin(bits_geo_000508),
|
|
define_builtin(bits_geo_000520),
|
|
define_builtin(bits_geo_000538),
|
|
define_builtin(bits_geo_000550),
|
|
define_builtin(bits_geo_000568),
|
|
define_builtin(bits_geo_000580),
|
|
define_builtin(bits_geo_000598),
|
|
define_builtin(bits_geo_0005B0),
|
|
define_builtin(bits_geo_0005C8),
|
|
define_builtin(bits_geo_0005E0),
|
|
define_builtin(bits_geo_0005F8),
|
|
define_builtin(bits_geo_000610),
|
|
define_builtin(bits_geo_000628),
|
|
define_builtin(bits_geo_000640),
|
|
define_builtin(bits_geo_000658),
|
|
define_builtin(bits_geo_000670),
|
|
define_builtin(bits_geo_000688),
|
|
define_builtin(bits_geo_0006A0),
|
|
define_builtin(bits_geo_0006B8),
|
|
define_builtin(bits_geo_0006D0),
|
|
define_builtin(bits_geo_0006E8),
|
|
define_builtin(bits_geo_000700),
|
|
define_builtin(bits_geo_000718),
|
|
define_builtin(bob_geo_000440),
|
|
define_builtin(bob_geo_000458),
|
|
define_builtin(bob_geo_000470),
|
|
define_builtin(bob_geo_000488),
|
|
define_builtin(bowser_1_geo_0000D0),
|
|
define_builtin(bowser_2_geo_000170),
|
|
define_builtin(bowser_2_geo_000170),
|
|
define_builtin(bowser_2_geo_000188),
|
|
define_builtin(bowser_2_geo_000188),
|
|
define_builtin(bowser_3_geo_000290),
|
|
define_builtin(bowser_3_geo_000290),
|
|
define_builtin(bowser_3_geo_0002A8),
|
|
define_builtin(bowser_3_geo_0002A8),
|
|
define_builtin(bowser_3_geo_0002C0),
|
|
define_builtin(bowser_3_geo_0002C0),
|
|
define_builtin(bowser_3_geo_0002D8),
|
|
define_builtin(bowser_3_geo_0002D8),
|
|
define_builtin(bowser_3_geo_0002F0),
|
|
define_builtin(bowser_3_geo_0002F0),
|
|
define_builtin(bowser_3_geo_000308),
|
|
define_builtin(bowser_3_geo_000308),
|
|
define_builtin(bowser_3_geo_000320),
|
|
define_builtin(bowser_3_geo_000320),
|
|
define_builtin(bowser_3_geo_000338),
|
|
define_builtin(bowser_3_geo_000338),
|
|
define_builtin(bowser_3_geo_000350),
|
|
define_builtin(bowser_3_geo_000350),
|
|
define_builtin(bowser_3_geo_000368),
|
|
define_builtin(bowser_3_geo_000368),
|
|
define_builtin(bowser_3_geo_000380),
|
|
define_builtin(bowser_3_geo_000380),
|
|
define_builtin(bowser_3_geo_000398),
|
|
define_builtin(bowser_3_geo_000398),
|
|
define_builtin(castle_courtyard_geo_000200),
|
|
define_builtin(castle_courtyard_geo_000218),
|
|
define_builtin(castle_geo_000F00),
|
|
define_builtin(castle_geo_000F18),
|
|
define_builtin(castle_geo_000F30),
|
|
define_builtin(castle_geo_000F70),
|
|
define_builtin(castle_geo_000F88),
|
|
define_builtin(castle_geo_000FA8),
|
|
define_builtin(castle_geo_000FD0),
|
|
define_builtin(castle_geo_001000),
|
|
define_builtin(castle_geo_001038),
|
|
define_builtin(castle_geo_001088),
|
|
define_builtin(castle_geo_0010C8),
|
|
define_builtin(castle_geo_001110),
|
|
define_builtin(castle_geo_001158),
|
|
define_builtin(castle_geo_0011A8),
|
|
define_builtin(castle_geo_001200),
|
|
define_builtin(castle_geo_001260),
|
|
define_builtin(castle_geo_0012C8),
|
|
define_builtin(castle_geo_001348),
|
|
define_builtin(castle_geo_0013B8),
|
|
define_builtin(castle_geo_001400),
|
|
define_builtin(castle_geo_001518),
|
|
define_builtin(castle_geo_001530),
|
|
define_builtin(castle_geo_001548),
|
|
define_builtin(castle_geo_001560),
|
|
define_builtin(castle_geo_001578),
|
|
define_builtin(castle_geo_0015B8),
|
|
define_builtin(castle_geo_0015F8),
|
|
define_builtin(castle_geo_001628),
|
|
define_builtin(castle_geo_001668),
|
|
define_builtin(castle_geo_001690),
|
|
define_builtin(castle_geo_0016D8),
|
|
define_builtin(castle_geo_001740),
|
|
define_builtin(castle_geo_001798),
|
|
define_builtin(castle_geo_001800),
|
|
define_builtin(castle_geo_001858),
|
|
define_builtin(castle_geo_001940),
|
|
define_builtin(castle_geo_001958),
|
|
define_builtin(castle_geo_001980),
|
|
define_builtin(castle_geo_0019C8),
|
|
define_builtin(castle_geo_0019F8),
|
|
define_builtin(castle_geo_001A30),
|
|
define_builtin(castle_geo_001A58),
|
|
define_builtin(castle_geo_001AB8),
|
|
define_builtin(castle_geo_001AF8),
|
|
define_builtin(castle_geo_001B48),
|
|
define_builtin(castle_geo_001BB0),
|
|
define_builtin(castle_geo_001C10),
|
|
define_builtin(castle_grounds_geo_000660),
|
|
define_builtin(castle_grounds_geo_0006F4),
|
|
define_builtin(castle_grounds_geo_00070C),
|
|
define_builtin(castle_grounds_geo_000724),
|
|
define_builtin(castle_grounds_geo_00073C),
|
|
define_builtin(ccm_geo_0003D0),
|
|
define_builtin(ccm_geo_0003F0),
|
|
define_builtin(ccm_geo_00040C),
|
|
define_builtin(ccm_geo_00042C),
|
|
define_builtin(ccm_geo_00045C),
|
|
define_builtin(ccm_geo_000494),
|
|
define_builtin(ccm_geo_0004BC),
|
|
define_builtin(ccm_geo_0004E4),
|
|
define_builtin(ccm_geo_00051C),
|
|
define_builtin(ccm_geo_0005E8),
|
|
define_builtin(cotmc_geo_0001A0),
|
|
define_builtin(ddd_geo_000450),
|
|
define_builtin(ddd_geo_000478),
|
|
define_builtin(ddd_geo_0004A0),
|
|
define_builtin(ddd_geo_0004C0),
|
|
define_builtin(ddd_geo_000570),
|
|
define_builtin(geo_bbh_0005B0),
|
|
define_builtin(geo_bbh_0005C8),
|
|
define_builtin(geo_bbh_0005E0),
|
|
define_builtin(geo_bbh_0005F8),
|
|
define_builtin(geo_bbh_000610),
|
|
define_builtin(geo_bbh_000628),
|
|
define_builtin(geo_bbh_000640),
|
|
define_builtin(geo_bbh_000658),
|
|
define_builtin(geo_bbh_000670),
|
|
define_builtin(geo_bbh_0006B0),
|
|
define_builtin(geo_bbh_0006E8),
|
|
define_builtin(geo_bbh_000730),
|
|
define_builtin(geo_bbh_000750),
|
|
define_builtin(geo_bbh_000768),
|
|
define_builtin(geo_bbh_0007B0),
|
|
define_builtin(geo_bbh_0007D0),
|
|
define_builtin(geo_bbh_000800),
|
|
define_builtin(geo_bbh_000828),
|
|
define_builtin(geo_bbh_000860),
|
|
define_builtin(geo_bbh_000888),
|
|
define_builtin(geo_bbh_0008B0),
|
|
define_builtin(geo_bbh_0008E8),
|
|
define_builtin(geo_bbh_000950),
|
|
define_builtin(geo_bbh_0009C8),
|
|
define_builtin(geo_bbh_000A18),
|
|
define_builtin(geo_bbh_000A60),
|
|
define_builtin(geo_bbh_000AD8),
|
|
define_builtin(geo_bbh_000B28),
|
|
define_builtin(geo_bbh_000B88),
|
|
define_builtin(geo_bbh_000BF0),
|
|
define_builtin(geo_bbh_000C38),
|
|
define_builtin(geo_bbh_000C88),
|
|
define_builtin(geo_bbh_000CE8),
|
|
define_builtin(geo_bbh_000D20),
|
|
define_builtin(geo_bbh_000D68),
|
|
define_builtin(geo_bbh_000DB0),
|
|
define_builtin(geo_bbh_000DF0),
|
|
define_builtin(geo_bbh_000E40),
|
|
define_builtin(geo_bbh_000E80),
|
|
define_builtin(geo_bbh_000EB0),
|
|
define_builtin(geo_bbh_000F00),
|
|
define_builtin(geo_bitdw_0003C0),
|
|
define_builtin(geo_bitdw_0003D8),
|
|
define_builtin(geo_bitdw_0003F0),
|
|
define_builtin(geo_bitdw_000408),
|
|
define_builtin(geo_bitdw_000420),
|
|
define_builtin(geo_bitdw_000438),
|
|
define_builtin(geo_bitdw_000450),
|
|
define_builtin(geo_bitdw_000468),
|
|
define_builtin(geo_bitdw_000480),
|
|
define_builtin(geo_bitdw_000498),
|
|
define_builtin(geo_bitdw_0004B0),
|
|
define_builtin(geo_bitdw_0004C8),
|
|
define_builtin(geo_bitdw_0004E0),
|
|
define_builtin(geo_bitdw_0004F8),
|
|
define_builtin(geo_bitdw_000510),
|
|
define_builtin(geo_bitdw_000528),
|
|
define_builtin(geo_bitdw_000540),
|
|
define_builtin(geo_bitdw_000558),
|
|
define_builtin(geo_bitdw_000570),
|
|
define_builtin(geo_bitdw_000588),
|
|
define_builtin(geo_bitdw_0005A0),
|
|
define_builtin(geo_bitdw_0005B8),
|
|
define_builtin(geo_bitdw_0005D0),
|
|
define_builtin(geo_bitdw_0005E8),
|
|
define_builtin(geo_bitdw_000600),
|
|
define_builtin(geo_bitdw_000618),
|
|
define_builtin(hmc_geo_000530),
|
|
define_builtin(hmc_geo_000548),
|
|
define_builtin(hmc_geo_000570),
|
|
define_builtin(hmc_geo_000588),
|
|
define_builtin(hmc_geo_0005A0),
|
|
define_builtin(hmc_geo_0005B8),
|
|
define_builtin(hmc_geo_0005D0),
|
|
define_builtin(hmc_geo_0005E8),
|
|
define_builtin(hmc_geo_000618),
|
|
define_builtin(hmc_geo_000658),
|
|
define_builtin(hmc_geo_0006A8),
|
|
define_builtin(hmc_geo_0006E0),
|
|
define_builtin(hmc_geo_000700),
|
|
define_builtin(hmc_geo_000748),
|
|
define_builtin(hmc_geo_000770),
|
|
define_builtin(hmc_geo_000798),
|
|
define_builtin(hmc_geo_0007F8),
|
|
define_builtin(hmc_geo_000850),
|
|
define_builtin(hmc_geo_0008D0),
|
|
define_builtin(hmc_geo_000938),
|
|
define_builtin(hmc_geo_000998),
|
|
define_builtin(hmc_geo_000A18),
|
|
define_builtin(hmc_geo_000A88),
|
|
define_builtin(hmc_geo_000AE8),
|
|
define_builtin(hmc_geo_000B48),
|
|
define_builtin(hmc_geo_000B90),
|
|
define_builtin(jrb_geo_000900),
|
|
define_builtin(jrb_geo_000918),
|
|
define_builtin(jrb_geo_000930),
|
|
define_builtin(jrb_geo_000948),
|
|
define_builtin(jrb_geo_000960),
|
|
define_builtin(jrb_geo_000978),
|
|
define_builtin(jrb_geo_000990),
|
|
define_builtin(jrb_geo_0009B0),
|
|
define_builtin(jrb_geo_0009C8),
|
|
define_builtin(jrb_geo_0009E8),
|
|
define_builtin(jrb_geo_000A00),
|
|
define_builtin(jrb_geo_000A18),
|
|
define_builtin(jrb_geo_000AFC),
|
|
define_builtin(lll_geo_0009E0),
|
|
define_builtin(lll_geo_0009F8),
|
|
define_builtin(lll_geo_000A10),
|
|
define_builtin(lll_geo_000A28),
|
|
define_builtin(lll_geo_000A40),
|
|
define_builtin(lll_geo_000A60),
|
|
define_builtin(lll_geo_000A78),
|
|
define_builtin(lll_geo_000A90),
|
|
define_builtin(lll_geo_000AA8),
|
|
define_builtin(lll_geo_000AC0),
|
|
define_builtin(lll_geo_000AD8),
|
|
define_builtin(lll_geo_000AF0),
|
|
define_builtin(lll_geo_000B08),
|
|
define_builtin(lll_geo_000B20),
|
|
define_builtin(lll_geo_000B38),
|
|
define_builtin(lll_geo_000B50),
|
|
define_builtin(lll_geo_000B68),
|
|
define_builtin(lll_geo_000B80),
|
|
define_builtin(lll_geo_000B98),
|
|
define_builtin(lll_geo_000BB0),
|
|
define_builtin(lll_geo_000BC8),
|
|
define_builtin(lll_geo_000BE0),
|
|
define_builtin(lll_geo_000BF8),
|
|
define_builtin(lll_geo_000C10),
|
|
define_builtin(lll_geo_000C30),
|
|
define_builtin(lll_geo_000C50),
|
|
define_builtin(lll_geo_000C70),
|
|
define_builtin(lll_geo_000C90),
|
|
define_builtin(lll_geo_000CB0),
|
|
define_builtin(lll_geo_000CD0),
|
|
define_builtin(lll_geo_000CF0),
|
|
define_builtin(lll_geo_000D10),
|
|
define_builtin(lll_geo_000D30),
|
|
define_builtin(lll_geo_000D50),
|
|
define_builtin(lll_geo_000D70),
|
|
define_builtin(lll_geo_000D90),
|
|
define_builtin(lll_geo_000DB0),
|
|
define_builtin(lll_geo_000DD0),
|
|
define_builtin(lll_geo_000DE8),
|
|
define_builtin(lll_geo_000E00),
|
|
define_builtin(lll_geo_000EA8),
|
|
define_builtin(lll_geo_000EC0),
|
|
define_builtin(pss_geo_000100),
|
|
define_builtin(rr_geo_000660),
|
|
define_builtin(rr_geo_000678),
|
|
define_builtin(rr_geo_000690),
|
|
define_builtin(rr_geo_0006A8),
|
|
define_builtin(rr_geo_0006C0),
|
|
define_builtin(rr_geo_0006D8),
|
|
define_builtin(rr_geo_0006F0),
|
|
define_builtin(rr_geo_000708),
|
|
define_builtin(rr_geo_000720),
|
|
define_builtin(rr_geo_000738),
|
|
define_builtin(rr_geo_000758),
|
|
define_builtin(rr_geo_000770),
|
|
define_builtin(rr_geo_000788),
|
|
define_builtin(rr_geo_0007A0),
|
|
define_builtin(rr_geo_0007B8),
|
|
define_builtin(rr_geo_0007D0),
|
|
define_builtin(rr_geo_0007E8),
|
|
define_builtin(rr_geo_000800),
|
|
define_builtin(rr_geo_000818),
|
|
define_builtin(rr_geo_000830),
|
|
define_builtin(rr_geo_000848),
|
|
define_builtin(rr_geo_000860),
|
|
define_builtin(rr_geo_000878),
|
|
define_builtin(rr_geo_000890),
|
|
define_builtin(rr_geo_0008A8),
|
|
define_builtin(rr_geo_0008C0),
|
|
define_builtin(rr_geo_0008D8),
|
|
define_builtin(rr_geo_0008F0),
|
|
define_builtin(rr_geo_000908),
|
|
define_builtin(rr_geo_000920),
|
|
define_builtin(rr_geo_000940),
|
|
define_builtin(rr_geo_000958),
|
|
define_builtin(rr_geo_000970),
|
|
define_builtin(rr_geo_000988),
|
|
define_builtin(rr_geo_0009A0),
|
|
define_builtin(rr_geo_0009B8),
|
|
define_builtin(rr_geo_0009D0),
|
|
define_builtin(sa_geo_000170),
|
|
define_builtin(sl_geo_000360),
|
|
define_builtin(sl_geo_000378),
|
|
define_builtin(sl_geo_000390),
|
|
define_builtin(sl_geo_0003A8),
|
|
define_builtin(sl_geo_000484),
|
|
define_builtin(ssl_geo_0005C0),
|
|
define_builtin(ssl_geo_0005D8),
|
|
define_builtin(ssl_geo_000618),
|
|
define_builtin(ssl_geo_000630),
|
|
define_builtin(ssl_geo_000648),
|
|
define_builtin(ssl_geo_000734),
|
|
define_builtin(ssl_geo_000764),
|
|
define_builtin(ssl_geo_000794),
|
|
define_builtin(ssl_geo_0007AC),
|
|
define_builtin(ssl_geo_0007CC),
|
|
define_builtin(ssl_geo_00088C),
|
|
define_builtin(thi_geo_0005B0),
|
|
define_builtin(thi_geo_0005C8),
|
|
define_builtin(thi_geo_0005F0),
|
|
define_builtin(thi_geo_000608),
|
|
define_builtin(thi_geo_0006D4),
|
|
define_builtin(thi_geo_00079C),
|
|
define_builtin(totwc_geo_000160),
|
|
define_builtin(totwc_geo_000188),
|
|
define_builtin(ttc_geo_000240),
|
|
define_builtin(ttc_geo_000258),
|
|
define_builtin(ttc_geo_000270),
|
|
define_builtin(ttc_geo_000288),
|
|
define_builtin(ttc_geo_0002A8),
|
|
define_builtin(ttc_geo_0002C8),
|
|
define_builtin(ttc_geo_0002E0),
|
|
define_builtin(ttc_geo_0002F8),
|
|
define_builtin(ttc_geo_000310),
|
|
define_builtin(ttc_geo_000328),
|
|
define_builtin(ttc_geo_000340),
|
|
define_builtin(ttc_geo_000358),
|
|
define_builtin(ttc_geo_000370),
|
|
define_builtin(ttc_geo_000388),
|
|
define_builtin(ttc_geo_0003A0),
|
|
define_builtin(ttc_geo_0003B8),
|
|
define_builtin(ttm_geo_000710),
|
|
define_builtin(ttm_geo_000730),
|
|
define_builtin(ttm_geo_000748),
|
|
define_builtin(ttm_geo_000778),
|
|
define_builtin(ttm_geo_0007A8),
|
|
define_builtin(ttm_geo_0007D8),
|
|
define_builtin(ttm_geo_000808),
|
|
define_builtin(ttm_geo_000830),
|
|
define_builtin(ttm_geo_000858),
|
|
define_builtin(ttm_geo_000880),
|
|
define_builtin(ttm_geo_0008A8),
|
|
define_builtin(ttm_geo_0008D0),
|
|
define_builtin(ttm_geo_0008F8),
|
|
define_builtin(ttm_geo_000920),
|
|
define_builtin(ttm_geo_000948),
|
|
define_builtin(ttm_geo_000970),
|
|
define_builtin(ttm_geo_000990),
|
|
define_builtin(ttm_geo_0009C0),
|
|
define_builtin(ttm_geo_0009F0),
|
|
define_builtin(ttm_geo_000A18),
|
|
define_builtin(ttm_geo_000A40),
|
|
define_builtin(ttm_geo_000A70),
|
|
define_builtin(ttm_geo_000B5C),
|
|
define_builtin(ttm_geo_000BEC),
|
|
define_builtin(ttm_geo_000C84),
|
|
define_builtin(ttm_geo_000D14),
|
|
define_builtin(ttm_geo_000D4C),
|
|
define_builtin(ttm_geo_000D84),
|
|
define_builtin(ttm_geo_000DBC),
|
|
define_builtin(ttm_geo_000DF4),
|
|
define_builtin(vcutm_geo_0001F0),
|
|
define_builtin(vcutm_geo_000208),
|
|
define_builtin(wdw_geo_000580),
|
|
define_builtin(wdw_geo_000598),
|
|
define_builtin(wdw_geo_0005C0),
|
|
define_builtin(wdw_geo_0005E8),
|
|
define_builtin(wdw_geo_000610),
|
|
define_builtin(wdw_geo_000628),
|
|
define_builtin(wdw_geo_000640),
|
|
define_builtin(wdw_geo_000658),
|
|
define_builtin(wdw_geo_000724),
|
|
define_builtin(wf_geo_0007E0),
|
|
define_builtin(wf_geo_000820),
|
|
define_builtin(wf_geo_000860),
|
|
define_builtin(wf_geo_000878),
|
|
define_builtin(wf_geo_000890),
|
|
define_builtin(wf_geo_0008A8),
|
|
define_builtin(wf_geo_0008E8),
|
|
define_builtin(wf_geo_000900),
|
|
define_builtin(wf_geo_000940),
|
|
define_builtin(wf_geo_000958),
|
|
define_builtin(wf_geo_0009A0),
|
|
define_builtin(wf_geo_0009B8),
|
|
define_builtin(wf_geo_0009D0),
|
|
define_builtin(wf_geo_0009E8),
|
|
define_builtin(wf_geo_000A00),
|
|
define_builtin(wf_geo_000A40),
|
|
define_builtin(wf_geo_000A58),
|
|
define_builtin(wf_geo_000A98),
|
|
define_builtin(wf_geo_000AB0),
|
|
define_builtin(wf_geo_000AC8),
|
|
define_builtin(wf_geo_000AE0),
|
|
define_builtin(wf_geo_000AF8),
|
|
define_builtin(wf_geo_000B10),
|
|
define_builtin(wf_geo_000B38),
|
|
define_builtin(wf_geo_000B60),
|
|
define_builtin(wf_geo_000B78),
|
|
define_builtin(wf_geo_000B90),
|
|
define_builtin(wf_geo_000BA8),
|
|
define_builtin(wf_geo_000BC8),
|
|
define_builtin(wf_geo_000BE0),
|
|
define_builtin(wf_geo_000BF8),
|
|
define_builtin(wmotr_geo_0001F0),
|
|
};
|
|
|
|
const GeoLayout* DynOS_Builtin_LvlGeo_GetFromName(const char* aDataName) {
|
|
MGR_FIND_DATA(sDynosBuiltinLvlGeos, (const GeoLayout*));
|
|
}
|
|
|
|
const char* DynOS_Builtin_LvlGeo_GetFromData(const GeoLayout* aData) {
|
|
MGR_FIND_NAME(sDynosBuiltinLvlGeos);
|
|
}
|
|
|
|
////////////////
|
|
// Level Cols //
|
|
////////////////
|
|
|
|
static const void* sDynosBuiltinLvlCols[] = {
|
|
define_builtin(bbh_seg7_collision_07026B1C),
|
|
define_builtin(bbh_seg7_collision_coffin),
|
|
define_builtin(bbh_seg7_collision_haunted_bookshelf),
|
|
define_builtin(bbh_seg7_collision_level),
|
|
define_builtin(bbh_seg7_collision_merry_go_round),
|
|
define_builtin(bbh_seg7_collision_mesh_elevator),
|
|
define_builtin(bbh_seg7_collision_staircase_step),
|
|
define_builtin(bbh_seg7_collision_tilt_floor_platform),
|
|
define_builtin(bitdw_seg7_collision_0700F688),
|
|
define_builtin(bitdw_seg7_collision_0700F70C),
|
|
define_builtin(bitdw_seg7_collision_0700F7F0),
|
|
define_builtin(bitdw_seg7_collision_0700F898),
|
|
define_builtin(bitdw_seg7_collision_0700F91C),
|
|
define_builtin(bitdw_seg7_collision_0700FA3C),
|
|
define_builtin(bitdw_seg7_collision_0700FB5C),
|
|
define_builtin(bitdw_seg7_collision_0700FC7C),
|
|
define_builtin(bitdw_seg7_collision_0700FD9C),
|
|
define_builtin(bitdw_seg7_collision_level),
|
|
define_builtin(bitdw_seg7_collision_moving_pyramid),
|
|
define_builtin(bitfs_seg7_collision_07015124),
|
|
define_builtin(bitfs_seg7_collision_07015288),
|
|
define_builtin(bitfs_seg7_collision_07015714),
|
|
define_builtin(bitfs_seg7_collision_07015768),
|
|
define_builtin(bitfs_seg7_collision_070157E0),
|
|
define_builtin(bitfs_seg7_collision_07015928),
|
|
define_builtin(bitfs_seg7_collision_inverted_pyramid),
|
|
define_builtin(bitfs_seg7_collision_level),
|
|
define_builtin(bitfs_seg7_collision_sinking_cage_platform),
|
|
define_builtin(bitfs_seg7_collision_sinking_platform),
|
|
define_builtin(bitfs_seg7_collision_squishable_platform),
|
|
define_builtin(bits_seg7_collision_0701A9A0),
|
|
define_builtin(bits_seg7_collision_0701AA0C),
|
|
define_builtin(bits_seg7_collision_0701AA84),
|
|
define_builtin(bits_seg7_collision_0701AC28),
|
|
define_builtin(bits_seg7_collision_0701ACAC),
|
|
define_builtin(bits_seg7_collision_0701AD54),
|
|
define_builtin(bits_seg7_collision_0701ADD8),
|
|
define_builtin(bits_seg7_collision_0701AE5C),
|
|
define_builtin(bits_seg7_collision_0701B0D4),
|
|
define_builtin(bits_seg7_collision_0701B26C),
|
|
define_builtin(bits_seg7_collision_0701B404),
|
|
define_builtin(bits_seg7_collision_0701B59C),
|
|
define_builtin(bits_seg7_collision_0701B734),
|
|
define_builtin(bits_seg7_collision_level),
|
|
define_builtin(bob_seg7_collision_bridge),
|
|
define_builtin(bob_seg7_collision_chain_chomp_gate),
|
|
define_builtin(bob_seg7_collision_gate),
|
|
define_builtin(bob_seg7_collision_level),
|
|
define_builtin(bowser_1_seg7_collision_level),
|
|
define_builtin(bowser_2_seg7_collision_lava),
|
|
define_builtin(bowser_2_seg7_collision_tilting_platform),
|
|
define_builtin(bowser_3_seg7_collision_07004B94),
|
|
define_builtin(bowser_3_seg7_collision_07004C18),
|
|
define_builtin(bowser_3_seg7_collision_07004C9C),
|
|
define_builtin(bowser_3_seg7_collision_07004D20),
|
|
define_builtin(bowser_3_seg7_collision_07004DA4),
|
|
define_builtin(bowser_3_seg7_collision_07004E28),
|
|
define_builtin(bowser_3_seg7_collision_07004EAC),
|
|
define_builtin(bowser_3_seg7_collision_07004F30),
|
|
define_builtin(bowser_3_seg7_collision_07004FB4),
|
|
define_builtin(bowser_3_seg7_collision_07005038),
|
|
define_builtin(bowser_3_seg7_collision_level),
|
|
define_builtin(castle_courtyard_seg7_collision),
|
|
define_builtin(castle_grounds_seg7_collision_cannon_grill),
|
|
define_builtin(castle_grounds_seg7_collision_level),
|
|
define_builtin(castle_grounds_seg7_collision_moat_grills),
|
|
define_builtin(ccm_seg7_area_1_collision),
|
|
define_builtin(ccm_seg7_area_2_collision),
|
|
define_builtin(ccm_seg7_collision_070163F8),
|
|
define_builtin(cotmc_seg7_collision_level),
|
|
define_builtin(ddd_seg7_area_1_collision),
|
|
define_builtin(ddd_seg7_area_2_collision),
|
|
define_builtin(ddd_seg7_collision_bowser_sub_door),
|
|
define_builtin(ddd_seg7_collision_submarine),
|
|
define_builtin(hmc_seg7_collision_0702B65C),
|
|
define_builtin(hmc_seg7_collision_controllable_platform_sub),
|
|
define_builtin(hmc_seg7_collision_controllable_platform),
|
|
define_builtin(hmc_seg7_collision_elevator),
|
|
define_builtin(hmc_seg7_collision_level),
|
|
define_builtin(inside_castle_seg7_area_1_collision),
|
|
define_builtin(inside_castle_seg7_area_2_collision),
|
|
define_builtin(inside_castle_seg7_area_3_collision),
|
|
define_builtin(inside_castle_seg7_collision_ddd_warp_2),
|
|
define_builtin(inside_castle_seg7_collision_ddd_warp),
|
|
define_builtin(inside_castle_seg7_collision_floor_trap),
|
|
define_builtin(inside_castle_seg7_collision_star_door),
|
|
define_builtin(inside_castle_seg7_collision_water_level_pillar),
|
|
define_builtin(jrb_seg7_area_1_collision),
|
|
define_builtin(jrb_seg7_area_2_collision),
|
|
define_builtin(jrb_seg7_collision_0700CEF0),
|
|
define_builtin(jrb_seg7_collision_0700D1DC),
|
|
define_builtin(jrb_seg7_collision_floating_box),
|
|
define_builtin(jrb_seg7_collision_floating_platform),
|
|
define_builtin(jrb_seg7_collision_in_sunken_ship_2),
|
|
define_builtin(jrb_seg7_collision_in_sunken_ship_3),
|
|
define_builtin(jrb_seg7_collision_in_sunken_ship),
|
|
define_builtin(jrb_seg7_collision_pillar_base),
|
|
define_builtin(jrb_seg7_collision_rock_solid),
|
|
define_builtin(lll_seg7_area_1_collision),
|
|
define_builtin(lll_seg7_area_2_collision),
|
|
define_builtin(lll_seg7_collision_0701D21C),
|
|
define_builtin(lll_seg7_collision_drawbridge),
|
|
define_builtin(lll_seg7_collision_falling_wall),
|
|
define_builtin(lll_seg7_collision_floating_block),
|
|
define_builtin(lll_seg7_collision_hexagonal_platform),
|
|
define_builtin(lll_seg7_collision_inverted_pyramid),
|
|
define_builtin(lll_seg7_collision_octagonal_moving_platform),
|
|
define_builtin(lll_seg7_collision_pitoune),
|
|
define_builtin(lll_seg7_collision_puzzle_piece),
|
|
define_builtin(lll_seg7_collision_rotating_fire_bars),
|
|
define_builtin(lll_seg7_collision_rotating_platform),
|
|
define_builtin(lll_seg7_collision_sinking_pyramids),
|
|
define_builtin(lll_seg7_collision_slow_tilting_platform),
|
|
define_builtin(lll_seg7_collision_wood_piece),
|
|
define_builtin(pss_seg7_collision),
|
|
define_builtin(rr_seg7_collision_07029038),
|
|
define_builtin(rr_seg7_collision_07029508),
|
|
define_builtin(rr_seg7_collision_070295F8),
|
|
define_builtin(rr_seg7_collision_0702967C),
|
|
define_builtin(rr_seg7_collision_07029750),
|
|
define_builtin(rr_seg7_collision_07029858),
|
|
define_builtin(rr_seg7_collision_07029924),
|
|
define_builtin(rr_seg7_collision_07029C1C),
|
|
define_builtin(rr_seg7_collision_07029FA4),
|
|
define_builtin(rr_seg7_collision_0702A32C),
|
|
define_builtin(rr_seg7_collision_0702A6B4),
|
|
define_builtin(rr_seg7_collision_donut_platform),
|
|
define_builtin(rr_seg7_collision_elevator_platform),
|
|
define_builtin(rr_seg7_collision_level),
|
|
define_builtin(rr_seg7_collision_pendulum),
|
|
define_builtin(rr_seg7_collision_rotating_platform_with_fire),
|
|
define_builtin(sa_seg7_collision),
|
|
define_builtin(sl_seg7_area_1_collision),
|
|
define_builtin(sl_seg7_area_2_collision),
|
|
define_builtin(sl_seg7_collision_pound_explodes),
|
|
define_builtin(sl_seg7_collision_sliding_snow_mound),
|
|
define_builtin(ssl_seg7_area_1_collision),
|
|
define_builtin(ssl_seg7_area_2_collision),
|
|
define_builtin(ssl_seg7_area_3_collision),
|
|
define_builtin(ssl_seg7_collision_0702808C),
|
|
define_builtin(ssl_seg7_collision_07028274),
|
|
define_builtin(ssl_seg7_collision_070282F8),
|
|
define_builtin(ssl_seg7_collision_07028370),
|
|
define_builtin(ssl_seg7_collision_070284B0),
|
|
define_builtin(ssl_seg7_collision_grindel),
|
|
define_builtin(ssl_seg7_collision_pyramid_elevator),
|
|
define_builtin(ssl_seg7_collision_pyramid_top),
|
|
define_builtin(ssl_seg7_collision_spindel),
|
|
define_builtin(ssl_seg7_collision_tox_box),
|
|
define_builtin(thi_seg7_area_1_collision),
|
|
define_builtin(thi_seg7_area_2_collision),
|
|
define_builtin(thi_seg7_area_3_collision),
|
|
define_builtin(thi_seg7_collision_top_trap),
|
|
define_builtin(totwc_seg7_collision),
|
|
define_builtin(ttc_seg7_collision_07014F70),
|
|
define_builtin(ttc_seg7_collision_07015008),
|
|
define_builtin(ttc_seg7_collision_070152B4),
|
|
define_builtin(ttc_seg7_collision_070153E0),
|
|
define_builtin(ttc_seg7_collision_07015584),
|
|
define_builtin(ttc_seg7_collision_07015650),
|
|
define_builtin(ttc_seg7_collision_07015754),
|
|
define_builtin(ttc_seg7_collision_070157D8),
|
|
define_builtin(ttc_seg7_collision_clock_main_rotation),
|
|
define_builtin(ttc_seg7_collision_clock_pendulum),
|
|
define_builtin(ttc_seg7_collision_clock_platform),
|
|
define_builtin(ttc_seg7_collision_level),
|
|
define_builtin(ttc_seg7_collision_rotating_clock_platform2),
|
|
define_builtin(ttc_seg7_collision_sliding_surface),
|
|
define_builtin(ttm_seg7_area_1_collision),
|
|
define_builtin(ttm_seg7_area_2_collision),
|
|
define_builtin(ttm_seg7_area_3_collision),
|
|
define_builtin(ttm_seg7_area_4_collision),
|
|
define_builtin(ttm_seg7_collision_pitoune_2),
|
|
define_builtin(ttm_seg7_collision_podium_warp),
|
|
define_builtin(ttm_seg7_collision_ukiki_cage),
|
|
define_builtin(vcutm_seg7_collision_0700AC44),
|
|
define_builtin(vcutm_seg7_collision),
|
|
define_builtin(wdw_seg7_area_1_collision),
|
|
define_builtin(wdw_seg7_area_2_collision),
|
|
define_builtin(wdw_seg7_collision_070184C8),
|
|
define_builtin(wdw_seg7_collision_07018528),
|
|
define_builtin(wdw_seg7_collision_070186B4),
|
|
define_builtin(wdw_seg7_collision_arrow_lift),
|
|
define_builtin(wdw_seg7_collision_express_elevator_platform),
|
|
define_builtin(wdw_seg7_collision_rect_floating_platform),
|
|
define_builtin(wdw_seg7_collision_square_floating_platform),
|
|
define_builtin(wf_seg7_collision_070102D8),
|
|
define_builtin(wf_seg7_collision_breakable_wall_2),
|
|
define_builtin(wf_seg7_collision_breakable_wall),
|
|
define_builtin(wf_seg7_collision_bullet_bill_cannon),
|
|
define_builtin(wf_seg7_collision_clocklike_rotation),
|
|
define_builtin(wf_seg7_collision_kickable_board),
|
|
define_builtin(wf_seg7_collision_large_bomp),
|
|
define_builtin(wf_seg7_collision_platform),
|
|
define_builtin(wf_seg7_collision_rotating_platform),
|
|
define_builtin(wf_seg7_collision_sliding_brick_platform),
|
|
define_builtin(wf_seg7_collision_small_bomp),
|
|
define_builtin(wf_seg7_collision_tower_door),
|
|
define_builtin(wf_seg7_collision_tower),
|
|
define_builtin(wf_seg7_collision_trapezoid),
|
|
define_builtin(wf_seg7_collision_tumbling_bridge),
|
|
define_builtin(wmotr_seg7_collision),
|
|
};
|
|
|
|
const Collision* DynOS_Builtin_LvlCol_GetFromName(const char* aDataName) {
|
|
MGR_FIND_DATA(sDynosBuiltinLvlCols, (const Collision*));
|
|
}
|
|
|
|
const char* DynOS_Builtin_LvlCol_GetFromData(const Collision* aData) {
|
|
MGR_FIND_NAME(sDynosBuiltinLvlCols);
|
|
}
|
|
|
|
////////////////////
|
|
// Functions Ptrs //
|
|
////////////////////
|
|
|
|
static void *geo_rotate_3d_coin(s32 callContext, void *node, UNUSED void *c) {
|
|
if (callContext == GEO_CONTEXT_RENDER) {
|
|
struct Object *obj = (struct Object *) gCurGraphNodeObject;
|
|
struct GraphNodeRotation *rotNode = (struct GraphNodeRotation *) ((struct GraphNode *) node)->next;
|
|
rotNode->rotation[0] = 0;
|
|
rotNode->rotation[1] = obj->oAnimState * 0x0800;
|
|
rotNode->rotation[2] = 0;
|
|
obj->oFaceAnglePitch = 0;
|
|
obj->oMoveAnglePitch = 0;
|
|
obj->oFaceAngleRoll = 0;
|
|
obj->oMoveAngleRoll = 0;
|
|
obj->header.gfx.node.flags &= ~(GRAPH_RENDER_BILLBOARD | GRAPH_RENDER_CYLBOARD);
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
static const void* sDynosBuiltinFuncs[] = {
|
|
define_builtin(geo_mirror_mario_set_alpha),
|
|
define_builtin(geo_switch_mario_stand_run),
|
|
define_builtin(geo_switch_mario_eyes),
|
|
define_builtin(geo_mario_tilt_torso),
|
|
define_builtin(geo_mario_head_rotation),
|
|
define_builtin(geo_switch_mario_hand),
|
|
define_builtin(geo_mario_hand_foot_scaler),
|
|
define_builtin(geo_switch_mario_cap_effect),
|
|
define_builtin(geo_switch_mario_cap_on_off),
|
|
define_builtin(geo_mario_rotate_wing_cap_wings),
|
|
define_builtin(geo_switch_mario_hand_grab_pos),
|
|
define_builtin(geo_render_mirror_mario),
|
|
define_builtin(geo_mirror_mario_backface_culling),
|
|
define_builtin(geo_update_projectile_pos_from_parent),
|
|
define_builtin(geo_update_layer_transparency),
|
|
define_builtin(geo_switch_anim_state),
|
|
define_builtin(geo_switch_area),
|
|
define_builtin(geo_camera_main),
|
|
define_builtin(geo_camera_fov),
|
|
define_builtin(geo_envfx_main),
|
|
define_builtin(geo_skybox_main),
|
|
define_builtin(geo_wdw_set_initial_water_level),
|
|
define_builtin(geo_movtex_pause_control),
|
|
define_builtin(geo_movtex_draw_water_regions),
|
|
define_builtin(geo_movtex_draw_nocolor),
|
|
define_builtin(geo_movtex_draw_colored),
|
|
define_builtin(geo_movtex_draw_colored_no_update),
|
|
define_builtin(geo_movtex_draw_colored_2_no_update),
|
|
define_builtin(geo_movtex_update_horizontal),
|
|
define_builtin(geo_movtex_draw_colored_no_update),
|
|
define_builtin(geo_painting_draw),
|
|
define_builtin(geo_painting_update),
|
|
define_builtin(geo_exec_inside_castle_light),
|
|
define_builtin(geo_exec_flying_carpet_timer_update),
|
|
define_builtin(geo_exec_flying_carpet_create),
|
|
define_builtin(geo_exec_cake_end_screen),
|
|
define_builtin(geo_cannon_circle_base),
|
|
define_builtin(geo_move_mario_part_from_parent),
|
|
define_builtin(geo_bits_bowser_coloring),
|
|
define_builtin(geo_update_body_rot_from_parent),
|
|
define_builtin(geo_switch_bowser_eyes),
|
|
define_builtin(geo_switch_tuxie_mother_eyes),
|
|
define_builtin(geo_update_held_mario_pos),
|
|
define_builtin(geo_snufit_move_mask),
|
|
define_builtin(geo_snufit_scale_body),
|
|
define_builtin(geo_scale_bowser_key),
|
|
(const void *) "geo_rotate_coin", (const void *) geo_rotate_3d_coin,
|
|
define_builtin(geo_offset_klepto_held_object),
|
|
define_builtin(geo_switch_peach_eyes),
|
|
// coop-specific
|
|
define_builtin(geo_mario_set_player_colors),
|
|
define_builtin(geo_movtex_draw_water_regions_ext),
|
|
define_builtin(lvl_init_or_update),
|
|
define_builtin(geo_choose_area_ext),
|
|
};
|
|
|
|
const void* DynOS_Builtin_Func_GetFromName(const char* aDataName) {
|
|
MGR_FIND_DATA(sDynosBuiltinFuncs, (const void*));
|
|
}
|
|
|
|
const void* DynOS_Builtin_Func_GetFromIndex(s32 aIndex) {
|
|
size_t count = sizeof(sDynosBuiltinFuncs) / (2 * sizeof(sDynosBuiltinFuncs[0]));
|
|
if (aIndex < 0 || aIndex >= count) { return NULL; }
|
|
return (const void*)sDynosBuiltinFuncs[aIndex * 2 + 1];
|
|
}
|
|
|
|
s32 DynOS_Builtin_Func_GetIndexFromData(const void* aData) {
|
|
size_t count = sizeof(sDynosBuiltinFuncs) / (2 * sizeof(sDynosBuiltinFuncs[0]));
|
|
for (s32 i = 0; i < count; i++) {
|
|
if ((const void*)sDynosBuiltinFuncs[i * 2 + 1] == aData) {
|
|
return i;
|
|
}
|
|
}
|
|
return -1;
|
|
}
|