Path: blob/master/SonicMania/Objects/SPZ/PathInverter.h
338 views
#ifndef OBJ_PATHINVERTER_H1#define OBJ_PATHINVERTER_H23#include "Game.h"45typedef enum {6PATHINVERTER_H,7PATHINVERTER_V,8} PathInverterTypes;910// Object Class11struct ObjectPathInverter {12RSDK_OBJECT13uint16 aniFrames;14};1516// Entity Class17struct EntityPathInverter {18RSDK_ENTITY19StateMachine(state);20uint8 type;21Vector2 size2x;22Vector2 size;23EntityPlayer *playerPtrs[PLAYER_COUNT];24int32 groundVelStore[PLAYER_COUNT];25int32 playerFlipFlags[PLAYER_COUNT];26Animator animator;27};2829// Object Struct30extern ObjectPathInverter *PathInverter;3132// Standard Entity Events33void PathInverter_Update(void);34void PathInverter_LateUpdate(void);35void PathInverter_StaticUpdate(void);36void PathInverter_Draw(void);37void PathInverter_Create(void *data);38void PathInverter_StageLoad(void);39#if GAME_INCLUDE_EDITOR40void PathInverter_EditorDraw(void);41void PathInverter_EditorLoad(void);42#endif43void PathInverter_Serialize(void);4445// Extra Entity Functions46void PathInverter_HandlePathSwitch(EntityPlayer *player);47void PathInverter_State_Horizontal(void);48void PathInverter_State_Vertical(void);4950#endif //! OBJ_PATHINVERTER_H515253