Path: blob/master/SonicMania/Objects/OOZ/PullSwitch.h
338 views
#ifndef OBJ_PULLSWITCH_H1#define OBJ_PULLSWITCH_H23#include "Game.h"45// Object Class6struct ObjectPullSwitch {7RSDK_OBJECT8Hitbox hitbox;9int32 unused;10uint16 aniFrames;11uint16 sfxButton;12uint16 sfxSmogClear;13};1415// Entity Class16struct EntityPullSwitch {17RSDK_ENTITY18StateMachine(state);19int32 pullPos;20int32 sprY;21int32 sprHeight;22bool32 activated;23uint8 playerTimers[PLAYER_COUNT];24uint8 activePlayers;25Vector2 handlePos;26Animator handleAnimator;27Animator dispenserAnimator;28Animator chainAnimator;29};3031// Object Struct32extern ObjectPullSwitch *PullSwitch;3334// Standard Entity Events35void PullSwitch_Update(void);36void PullSwitch_LateUpdate(void);37void PullSwitch_StaticUpdate(void);38void PullSwitch_Draw(void);39void PullSwitch_Create(void *data);40void PullSwitch_StageLoad(void);41#if GAME_INCLUDE_EDITOR42void PullSwitch_EditorDraw(void);43void PullSwitch_EditorLoad(void);44#endif45void PullSwitch_Serialize(void);4647// Extra Entity Functions4849#endif //! OBJ_PULLSWITCH_H505152