Path: blob/master/SonicMania/Objects/Common/BGSwitch.h
338 views
#ifndef OBJ_BGSWITCH_H1#define OBJ_BGSWITCH_H23#include "Game.h"45// Object Class6struct ObjectBGSwitch {7RSDK_OBJECT8int32 screenID;9int32 layerIDs[8];10StateMachine(switchCallback[8]);11uint16 aniFrames;12};1314// Entity Class15struct EntityBGSwitch {16RSDK_ENTITY17Vector2 size;18uint8 bgID;19Animator animator;20};2122// Object Struct23extern ObjectBGSwitch *BGSwitch;2425// Standard Entity Events26void BGSwitch_Update(void);27void BGSwitch_LateUpdate(void);28void BGSwitch_StaticUpdate(void);29void BGSwitch_Draw(void);30void BGSwitch_Create(void *data);31void BGSwitch_StageLoad(void);32#if GAME_INCLUDE_EDITOR33void BGSwitch_EditorDraw(void);34void BGSwitch_EditorLoad(void);35#endif36void BGSwitch_Serialize(void);3738// Extra Entity Functions3940#endif //! OBJ_BGSWITCH_H414243