Path: blob/master/SonicMania/Objects/ERZ/PhantomShield.h
338 views
#ifndef OBJ_PHANTOMSHIELD_H1#define OBJ_PHANTOMSHIELD_H23#include "Game.h"45// Object Class6struct ObjectPhantomShield {7RSDK_OBJECT8Hitbox hitbox;9uint16 aniFrames;10};1112// Entity Class13struct EntityPhantomShield {14RSDK_ENTITY15StateMachine(state);16bool32 shieldActive;17int32 blendAmount;18int32 playerTimer[PLAYER_COUNT];19Entity *parent;20Animator animator;21};2223// Object Struct24extern ObjectPhantomShield *PhantomShield;2526// Standard Entity Events27void PhantomShield_Update(void);28void PhantomShield_LateUpdate(void);29void PhantomShield_StaticUpdate(void);30void PhantomShield_Draw(void);31void PhantomShield_Create(void *data);32void PhantomShield_StageLoad(void);33#if GAME_INCLUDE_EDITOR34void PhantomShield_EditorDraw(void);35void PhantomShield_EditorLoad(void);36#endif37void PhantomShield_Serialize(void);3839// Extra Entity Functions40void PhantomShield_State_Appear(void);41void PhantomShield_State_Active(void);42void PhantomShield_State_Disappear(void);4344#endif //! OBJ_PHANTOMSHIELD_H454647