Path: blob/master/SonicMania/Objects/AIZ/AIZTornado.h
338 views
#ifndef OBJ_AIZTORNADO_H1#define OBJ_AIZTORNADO_H23#include "Game.h"45// Object Class6struct ObjectAIZTornado {7RSDK_OBJECT8TABLE(int32 flameOffsets[5], { -0x20000, -0x10000, 0x00000, 0x10000, 0x20000 });9uint16 aniFrames;10};1112// Entity Class13struct EntityAIZTornado {14RSDK_ENTITY15StateMachine(state);16int32 collideTimer; // unused here (used in MSZ/Tornado)17int32 turnAngle;18bool32 isStood;19bool32 showFlame;20int32 storeY; // unused here (used in MSZ/Tornado)21int32 gravityForce; // unused here (used in MSZ/Tornado)22Vector2 prevPos;23Vector2 movePos;24Vector2 newPos;25Vector2 moveVelocity;26bool32 disableInteractions;27int32 offsetX; // unused here (used in MSZ/Tornado)28Animator animatorTornado;29Animator animatorPropeller;30Animator animatorFlame;31Animator animatorPilot;32};3334// Object Struct35extern ObjectAIZTornado *AIZTornado;3637// Standard Entity Events38void AIZTornado_Update(void);39void AIZTornado_LateUpdate(void);40void AIZTornado_StaticUpdate(void);41void AIZTornado_Draw(void);42void AIZTornado_Create(void *data);43void AIZTornado_StageLoad(void);44#if GAME_INCLUDE_EDITOR45void AIZTornado_EditorDraw(void);46void AIZTornado_EditorLoad(void);47#endif48void AIZTornado_Serialize(void);4950// Extra Entity Functions51void AIZTornado_HandleMovement(void);52void AIZTornado_HandlePlayerCollisions(void);53void AIZTornado_State_Move(void);5455#endif //! OBJ_AIZTORNADO_H565758