1#ifndef _COMMON_STRUCTS_H_
2#define _COMMON_STRUCTS_H_
161#define NPC_BLUR_FRAMES 20
211#define MAX_NPC_DECORATIONS 2
228 struct Npc* keepAwayNpc;
229 s32* keepAwayStarted;
393 void* varTablePtr[3];
435 f32 functionTempF[4];
436 void* functionTempPtr[4];
442 void* varTablePtr[16];
862 void* varTablePtr[16];
1173#define PRINT_BUFFER_SIZE 1024
1175#define PRINT_BUFFER_SIZE 1088
1541 void* varTablePtr[16];
1684#define MAX_ACTOR_DECORATIONS 2
1685#define ACTOR_BLUR_FRAMES 16
1843 s32 functionTemp[4];
1844 f32 functionTempF[4];
1845 void* functionTempPtr[4];
1850 void* varTablePtr[16];
2135 void (*func)(s32 windowIndex, s32*
flags, s32* posX, s32* posY, s32* posZ, f32* scaleX, f32* scaleY,
2136 f32* rotX, f32* rotY, f32* rotZ, s32* darkening, s32* opacity);
2174#define DISPLAYCONTEXT_GFX_COUNT 0x2000
2176#define DISPLAYCONTEXT_GFX_COUNT 0x2200
2178#define DISPLAYCONTEXT_GFX_COUNT 0x2080
2184 Mtx camPerspMatrix[8];
2186 Gfx backgroundGfx[0x200];
2191 Mtx matrixStack[0x200];
NpcHistoryPoint moveHistory[40]
struct PadlockData * padlock
Vec3f bombetteExplosionPos
struct EffectInstance * disableEffect
struct Evt * handlePhaseScript
b8 keepUsingPartnerOnMapChange
s8 titleScreenDismissTime
s8 enableCollisionOverlapsCheck
struct StarBoxLauncherData * starBoxLauncher
struct StaticAnimatorNode * child
struct Evt * parentScript
void(* ShadowCallback)(struct Shadow *)
struct WoodenCrateData * crate
s8 availableDisguiseType
set in main map scripts
s16 savedBackgroundDarkness
struct StaticAnimatorNode * sibling
struct EffectInstance * attackResultEffect
ActorPartBlueprint * staticData
struct Evt * takeTurnScript
struct EffectInstance * effect[2]
s32(* PushBlockFallCallback)(Entity *block, Evt *script)
#define MAX_NPC_DECORATIONS
u16 ** originalPalettesList
s32 * closedWritebackBool
struct ActorPartMovement * movement
EvtScript * handleEventSource
struct CymbalPlantData * cymbalPlant
MessageCharData * rasters
struct BoardedFloorData * boardedFloor
s32 pressedButtonsBuffer[10]
#define MAX_ACTOR_DECORATIONS
struct BombableRockData * bombableRock
#define ACTOR_BLUR_FRAMES
struct ActorBlueprint * actorBlueprint
Vec2b projectileTargetOffset
void * labelPositions[16]
#define PRINT_BUFFER_SIZE
Vec3f playerGroundTraceNormal
struct SwitchData * swtch
#define DISPLAYCONTEXT_GFX_COUNT
f32 spinDirectionMagnitude
WindowBackground background
PopupMessageCallback updateFunc
struct Evt * blockingParent
SpriteShadingLightSource sources[7]
PopupMessageCallback renderUIFunc
s8 starpointsBlinkCounter
struct EffectInstance * specialDecorationEffect
struct Evt * handleEventScript
struct ActorPart * partsTable
union AnimatorNode::@29 fcData
u16 * letterBackgroundPal
struct SelectableTarget targetData[24]
s16 rewindArrowSwingPhase
EvtScript * handlePhaseSource
u16 actionCommandSuccesses
struct SuperBlockContentData * superBlockContent
s32(* EntityCallback)(struct Entity *)
struct SaveBlockData * saveBlock
struct EffectInstance * icePillarEffect
AnimatedModel * AnimatedModelList[16]
struct HiddenPanelData * hiddenPanel
AnimID trueAnimation
Encoding back-facing sprite.
u16 copiedPalettes[2][27][16]
struct ItemEntityPhysicsData * physicsData
struct HeartBlockContentData * heartBlockContent
struct SignpostData * signPost
s32 heldButtonsBuffer[10]
ShopItemEntity * shopItemEntities
SlideParams * slideParams
struct ActorBlueprint * ActorBlueprint
union Evt::@8 owner1
Initially -1.
Trigger * TriggerList[64]
struct SpinningFlowerData * spinningFlower
EvtScript * takeTurnSource
struct AnimatorNode * children[32]
PopupMessageCallback renderWorldFunc
struct TrumpetPlantData * trumpetPlant
u16 * adjustedPalettes[27]
VirtualEntity * VirtualEntityList[0x40]
struct ColliderTriangle * triangleTable
DecorDataSparkles sparkles
union Evt::@9 owner2
Initially -1.
void(* PopupMessageCallback)(void *popup)
Gfx transparentCombineMode
ApiStatus(* ApiFunc)(struct Evt *, s32)
struct ArrowSignData * arrowSign
WindowStyleCustom * customStyle
struct TweesterData * tweester
ModelAnimator * AnimatedMeshList[16]
struct PinkFlowerData * pinkFlower
s32 partnerUnlockedTime[12]
struct ActorPart * nextPart
struct DecorationTable * decorationTable
u16 actionCommandAttempts
Vec2b projectileTargetOffset
s32 prevFlags
Partner npc flags before contact with Tweester.
void NoArgCallback(void *)
struct MunchlesiaData * munchlesia
struct SimpleSpringData * simpleSpring
DecorationData decorData[2]
struct ShatteringBlockData * shatteringBlock
union CameraControlSettings::@14 points
s32 handleBatttlePhaseScriptID
s8 index
Current blur ring buffer index.
Vec3f playerGroundTraceAngles
DecorGoldenFlames goldenFlames
union PopupMessage::@39 data
DecorBowserAura bowserAura
struct BlueWarpPipeData * bluePipe
Ring buffer of an NPC's position over the past 20 frames.
#define MAX_ANIMATED_MODELS
#define TRANSPARENT_UNION
#define MAX_ANIMATED_MESHES
void(* initBattleCallback)(void)
s8 incrementStarPointDelay
struct Evt * camMovementScript
s8 moveCategory
0 = jump, 1 = hammer, 5 = partner, ...
s8 lastPlayerMenuSelection[16]
struct EffectInstance * waterBlockEffect
void(* preUpdateCallback)(void)
struct EffectInstance * cloudNineEffect
struct Actor * curTurnEnemy
struct Actor * partnerActor
s32 * actionCmdDifficultyTable
s16 cancelTargetMenuSubstate
struct Evt * controlScript
s32 curAttackEventSuppression
struct Actor * playerActor
s8 lastPartnerMenuSelection[16]
struct Actor * enemyActors[24]
struct EffectInstance * buffEffect
s8 menuStatus[4]
-1 = automatically pick the first move, 0 = disabled, 1 = enabled
s32 enabledStarPowersFlags
s16 acceptTargetMenuSubstate
CameraControlSettings * curSettings
b32 needsInitialConstrainDir
CameraControlSettings * prevLeadSettings
f32 interpEasingParameter
CameraControlSettings * prevSettings
void(* fpDoPreRender)(struct Camera *)
CameraControlSettings overrideSettings
void(* fpDoPostRender)(struct Camera *)
EntityCallback fpHandleCollision
void * updateEntityScript
void * modelAnimationNodes
void(* fpInit)(struct Entity *)
EntityCallback updateMatrixOverride
Matrix4f inverseTransformMatrix
EntityCallback updateScriptCallback
void(* renderSetupFunc)(s32)
EntityBlueprint * blueprint
EvtScript * boundScriptBytecode
void(* fpRenderCallback)(void *)
StaticAnimatorNode * staticNodes[0x7A]
AnimatorNode * nodeCache[0x7A]
StaticAnimatorNode ** staticRoot
struct EffectInstance * decorations[2]
void(* onUpdate)(struct Npc *)
Run before anything else for this NPC in update_npcs()
u8 hideAlpha
Used when hiding NPCs; Multiplied with Npc::alpha.
f32 screenSpaceOffset2D[2]
u16 ** originalPalettesList
u16 * adjustedPalettes[16]
s16 turnAroundYawAdjustment
s16 decorationGlowPhase[2]
s8 decorationInitialized[2]
void(* onRender)(struct Npc *)
Run after the display list for this NPC is built.
u16 copiedPalettes[16][16]
PushBlockFallCallback(dropCallback)
void(* appendGfx)(void *)
struct StaticAnimatorNode ** animModelNode
ShadowCallback(onCreateCallback)
s32(* onActivateFunc)(struct Trigger *)
s32 hasPlayerInteractPrompt
union Trigger::@1 location
s32(* onActivateFunc)(struct Trigger *)
u8 hasPlayerInteractPrompt
struct Evt * runningScript
WindowUpdateFunc fpPending
WindowUpdateFunc fpUpdate
#define UNK_FUN_PTR(name)