Path: blob/master/SonicMania/Objects/Common/Eggman.h
338 views
#ifndef OBJ_EGGMAN_H1#define OBJ_EGGMAN_H23#include "Game.h"45// Object Class6struct ObjectEggman {7RSDK_OBJECT8uint16 aniFrames;9};1011// Entity Class12struct EntityEggman {13RSDK_ENTITY14StateMachine(state);15StateMachine(nextState);16int32 timer;17uint16 animID;18Entity *parent;19Vector2 offset;20Hitbox hitbox;21Animator animator;22};2324// Object Struct25extern ObjectEggman *Eggman;2627// Standard Entity Events28void Eggman_Update(void);29void Eggman_LateUpdate(void);30void Eggman_StaticUpdate(void);31void Eggman_Draw(void);32void Eggman_Create(void *data);33void Eggman_StageLoad(void);34#if GAME_INCLUDE_EDITOR35void Eggman_EditorDraw(void);36void Eggman_EditorLoad(void);37#endif38void Eggman_Serialize(void);3940// Extra Entity Functions41void Eggman_State_ProcessAnimation(void);42void Eggman_State_ProcessThenSet(void);43void Eggman_State_ProcessUntilEnd(void);44void Eggman_State_ProcessAirThenSet(void);45void Eggman_State_FallUntilTimerReset(void);46void Eggman_State_FallAndCollide(void);47void Eggman_State_WalkOffScreen(void);4849#endif //! OBJ_EGGMAN_H505152