Path: blob/master/SonicMania/Objects/LRZ/DashLift.h
338 views
#ifndef OBJ_DASHLIFT_H1#define OBJ_DASHLIFT_H23#include "Game.h"45// Object Class6struct ObjectDashLift {7RSDK_OBJECT8uint16 sfxPulley;9};1011// Entity Class12struct EntityDashLift {13RSDK_ENTITY14// Platform Base15StateMachine(state);16StateMachine(stateCollide);17int32 type;18Vector2 amplitude;19int32 length;20bool32 hasTension;21int8 frameID;22uint8 collision;23Vector2 tileOrigin;24Vector2 centerPos;25Vector2 drawPos;26Vector2 collisionOffset;27int32 stood;28int32 timer;29int32 stoodAngle;30uint8 stoodPlayers;31uint8 pushPlayersL;32uint8 pushPlayersR;33Hitbox hitbox;34Animator animator;35int32 childCount;36// Dash Lift37int32 startOff;38uint8 activePlayers;39};4041// Object Struct42extern ObjectDashLift *DashLift;4344// Standard Entity Events45void DashLift_Update(void);46void DashLift_LateUpdate(void);47void DashLift_StaticUpdate(void);48void DashLift_Draw(void);49void DashLift_Create(void *data);50void DashLift_StageLoad(void);51#if GAME_INCLUDE_EDITOR52void DashLift_EditorDraw(void);53void DashLift_EditorLoad(void);54#endif55void DashLift_Serialize(void);5657// Extra Entity Functions58void DashLift_CheckOffScreen(void);5960void DashLift_State_Init(void);61void DashLift_State_HandleDash(void);6263#endif //! OBJ_DASHLIFT_H646566