Path: blob/master/SonicMania/Objects/TMZ/PopOut.h
338 views
#ifndef OBJ_POPOUT_H1#define OBJ_POPOUT_H23#include "Game.h"45typedef enum {6POPOUT_CHILD_SPRING_YELLOW,7POPOUT_CHILD_SPRING_RED,8POPOUT_CHILD_SPIKES,9} PopOutChildTypes;1011// Object Class12struct ObjectPopOut {13RSDK_OBJECT14bool32 hasButton;15uint16 aniFrames;16};1718// Entity Class19struct EntityPopOut {20RSDK_ENTITY21uint8 orientation;22uint8 tag;23bool32 manualTrigger;24int32 delay;25Vector2 startPos;26int32 unused;27int32 childType;28bool32 shouldAppear;29int32 appearTimer;30int32 timer;31Vector2 appearVelocity;32Hitbox hitboxSolid;33Hitbox hitboxRange;34Animator mountAnimator;35Animator childAnimator;36};3738// Object Struct39extern ObjectPopOut *PopOut;4041// Standard Entity Events42void PopOut_Update(void);43void PopOut_LateUpdate(void);44void PopOut_StaticUpdate(void);45void PopOut_Draw(void);46void PopOut_Create(void *data);47void PopOut_StageLoad(void);48#if GAME_INCLUDE_EDITOR49void PopOut_EditorDraw(void);50void PopOut_EditorLoad(void);51#endif52void PopOut_Serialize(void);5354// Extra Entity Functions55void PopOut_SetupHitboxes(void);5657#endif //! OBJ_POPOUT_H585960