Path: blob/master/SonicMania/Objects/MSZ/BarStool.h
338 views
#ifndef OBJ_BARSTOOL_H1#define OBJ_BARSTOOL_H23#include "Game.h"45typedef enum { BARSTOOL_HEIGHT_SHORT, BARSTOOL_HEIGHT_TALL } BarStoolHeights;67// Object Class8struct ObjectBarStool {9RSDK_OBJECT10Hitbox hitboxStool;11uint16 sfxSpin;12uint16 sfxHop;13uint16 aniFrames;14};1516// Entity Class17struct EntityBarStool {18RSDK_ENTITY19StateMachine(state);20uint8 height;21int32 spinSpeed;22int32 spinAngle;23int32 activePlayers;24int32 playerAngle[PLAYER_COUNT];25int32 playerPos[PLAYER_COUNT];26Animator stoolAnimator;27Animator poleAnimator;28};2930// Object Struct31extern ObjectBarStool *BarStool;3233// Standard Entity Events34void BarStool_Update(void);35void BarStool_LateUpdate(void);36void BarStool_StaticUpdate(void);37void BarStool_Draw(void);38void BarStool_Create(void *data);39void BarStool_StageLoad(void);40#if GAME_INCLUDE_EDITOR41void BarStool_EditorDraw(void);42void BarStool_EditorLoad(void);43#endif44void BarStool_Serialize(void);4546// Extra Entity Functions4748#endif //! OBJ_BARSTOOL_H495051