35#define es_End ENTITY_SCRIPT_OP_End,
36#define es_Jump(script) ENTITY_SCRIPT_OP_Jump, (s32)script,
37#define es_Call(func) ENTITY_SCRIPT_OP_Call, (s32)func,
38#define es_SetCallback(func, time) ENTITY_SCRIPT_OP_SetCallback, time, (s32)func,
39#define es_Goto(labelId) ENTITY_SCRIPT_OP_Goto, labelId,
40#define es_Restart ENTITY_SCRIPT_OP_Goto, 0,
41#define es_Label(labelId) ENTITY_SCRIPT_OP_Label, labelId,
42#define es_RestartBoundScript ENTITY_SCRIPT_OP_RestartBoundScript,
43#define es_SetFlags(flags) ENTITY_SCRIPT_OP_SetFlags, flags,
44#define es_ClearFlags(flags) ENTITY_SCRIPT_OP_ClearFlags, flags,
45#define es_PlaySound(soundId) ENTITY_SCRIPT_OP_PlaySound, soundId,
47#define ems_End ENTITY_MODEL_SCRIPT_OP_End,
48#define ems_Draw(dlist, holdTime) ENTITY_MODEL_SCRIPT_OP_Draw, holdTime, (s32)dlist,
49#define ems_Restart ENTITY_MODEL_SCRIPT_OP_Restart,
50#define ems_Loop ENTITY_MODEL_SCRIPT_OP_Loop,
51#define ems_SetRenderMode(mode) ENTITY_MODEL_SCRIPT_OP_SetRenderMode, mode,
52#define ems_SetFlags(flags) ENTITY_MODEL_SCRIPT_OP_SetFlags, flags,
53#define ems_ClearFlags(flags) ENTITY_MODEL_SCRIPT_OP_ClearFlags, flags,
54#define ems_DrawImage(raster, palette, width, height, holdTime) ENTITY_MODEL_SCRIPT_OP_DrawImage, holdTime, (s32)raster, (s32)palette, width, height,
56#define STANDARD_ENTITY_MODEL_SCRIPT(gfx, renderMode) \
58 ems_SetRenderMode(renderMode) \
64#define ENTITY_ADDR(entity, type, data) (type)((s32)(entity->gfxBaseAddr) + ((s32)(data) & 0xFFFF))
65#define ENTITY_ROM(name) { entity_model_##name##_ROM_START, entity_model_##name##_ROM_END }
67#define BLOCK_GRID_SIZE 25
69#define TWEESTER_PATH_STOP 0x80000000
70#define TWEESTER_PATH_LOOP 0x80000001
266#define FRAGMENT_BUF_SIZE 13
s32 CreateEntityVarArgBuffer[]
EntityBlueprint Entity_Chest
EntityBlueprint Entity_BombableRock
f32 giveItemRadiusInterpPhase
void virtual_entity_list_render_world(void)
EntityBlueprint Entity_Hammer2BlockWideX
EntityBlueprint Entity_WoodenCrate
EntityBlueprint Entity_Hammer3BlockWideZ
#define FRAGMENT_BUF_SIZE
EntityBlueprint Entity_InertRedBlock
EntityBlueprint Entity_HeartBlock
EntityBlueprint Entity_BlueSwitch
EntityBlueprint Entity_Hammer2BlockTiny
EntityBlueprint Entity_HiddenRedBlock
EntityBlueprint Entity_Hammer3BlockWideX
EntityBlueprint Entity_TriggerBlock
EntityBlueprint Entity_HiddenYellowBlock
@ ENTITY_MODEL_SCRIPT_OP_SetFlags
@ ENTITY_MODEL_SCRIPT_OP_Draw
@ ENTITY_MODEL_SCRIPT_OP_Loop
@ ENTITY_MODEL_SCRIPT_OP_SetRenderMode
@ ENTITY_MODEL_SCRIPT_OP_Restart
@ ENTITY_MODEL_SCRIPT_OP_End
@ ENTITY_MODEL_SCRIPT_OP_DrawImage
@ ENTITY_MODEL_SCRIPT_OP_ClearFlags
EntityBlueprint Entity_CymbalPlant
s32 load_entity_model(EntityModelScript *cmdList)
u8 fragmentLateralSpeed[13]
Gfx ** fragmentDisplayLists
EntityBlueprint Entity_Hammer1BlockWideZ
EntityBlueprint Entity_Hammer1BlockWideX
EntityBlueprint Entity_Hammer3BlockTiny
EntityBlueprint Entity_Signpost
EntityBlueprint Entity_PadlockBlueFace
EntityBlueprint Entity_Hammer1BlockTiny
EntityBlueprint Entity_YellowBlock
EntityBlueprint Entity_Hammer2Block
EntityBlueprint Entity_GiantChest
EntityBlueprint Entity_Munchlesia
EvtScript * onEnterPipeEvt
EntityBlueprint Entity_Padlock
EntityBlueprint Entity_PadlockRedFace
EntityBlueprint Entity_ScriptSpring
EntityBlueprint Entity_GreenStompSwitch
ShadowBlueprint SquareShadow
f32 fragmentFallSpeed[36]
EntityBlueprint Entity_BlueWarpPipe
s32 ALT_load_entity_model(EntityModelScript *cmdList)
EntityBlueprint Entity_BellbellPlant
EntityBlueprint Entity_SpinningFlower
EntityBlueprint Entity_Hammer1Block
ShadowBlueprint CircularShadowB
void set_entity_model_render_command_list(s32 idx, EntityModelScript *cmdList)
struct Entity * linkedSwitch
EntityBlueprint Entity_SimpleSpring
EntityBlueprint Entity_InertYellowBlock
EntityBlueprint Entity_PushBlock
f32 fragmentFallSpeed[25]
EntityBlueprint Entity_HiddenPanel
EntityBlueprint Entity_Hammer2BlockWideZ
EntityModel * EntityModelList[256]
EntityBlueprint Entity_SavePoint
EntityBlueprint Entity_MulticoinBlock
EntityBlueprint Entity_BoardedFloor
struct EffectInstance * gotItemEffect
EntityBlueprint Entity_BrickBlock
EntityBlueprint Entity_HugeBlueSwitch
EntityBlueprint Entity_TrumpetPlant
EntityBlueprint Entity_PadlockRedFrame
EntityBlueprint Entity_BombableRockWide
u8 fragmentLateralSpeed[36]
EntityBlueprint Entity_Tweester
f32 giveItemHeightInterpPhase
EntityBlueprint Entity_Hammer3Block
EntityBlueprint Entity_RedBlock
EntityBlueprint Entity_RedSwitch
EntityBlueprint Entity_StarBoxLauncher
EntityModel * get_entity_model(s32 idx)
u8 fragmentLateralSpeed[6]
f32 fragmentFallSpeed[13]
ShadowBlueprint CircularShadowA
void virtual_entity_list_render_UI(void)
void entity_set_render_script(Entity *entity, EntityModelScript *cmdList)
EntityBlueprint Entity_ArrowSign
EntityBlueprint Entity_PinkFlower
EntityBlueprint Entity_SuperBlock
@ ENTITY_SCRIPT_OP_PlaySound
@ ENTITY_SCRIPT_OP_RestartBoundScript
@ ENTITY_SCRIPT_OP_ClearFlags
@ ENTITY_SCRIPT_OP_SetFlags
@ ENTITY_SCRIPT_OP_SetCallback
EntityBlueprint Entity_PowBlock
#define MAX_ENTITY_MODELS
EntityModelScript * cmdListSavedPos
void(* fpSetupGfxCallback)(void *)
union EntityModel::@46 gfx
void * setupGfxCallbackArg0
EntityModelScript * cmdListReadPos
f32 timeScale
Default is 1.0.
f32 nextFrameTime
Set to 1.0 after each update.