Path: blob/master/SonicMania/Objects/GHZ/ZipLine.h
338 views
#ifndef OBJ_ZIPLINE_H1#define OBJ_ZIPLINE_H23#include "Game.h"45// Object Class6struct ObjectZipLine {7RSDK_OBJECT8uint16 aniFrames;9Hitbox hitboxHandle;10};1112// Entity Class13struct EntityZipLine {14RSDK_ENTITY15StateMachine(state);16uint8 activePlayers;17Animator animator;18int32 length;19Vector2 startPos;20Vector2 endPos;21Vector2 handlePos;22uint8 grabDelay[PLAYER_COUNT];23Vector2 joinPos;24int32 unused1;25};2627// Object Struct28extern ObjectZipLine *ZipLine;2930// Standard Entity Events31void ZipLine_Update(void);32void ZipLine_LateUpdate(void);33void ZipLine_StaticUpdate(void);34void ZipLine_Draw(void);35void ZipLine_Create(void *data);36void ZipLine_StageLoad(void);37#if GAME_INCLUDE_EDITOR38void ZipLine_EditorDraw(void);39void ZipLine_EditorLoad(void);40#endif41void ZipLine_Serialize(void);4243// Extra Entity Functions44void ZipLine_VSSwap_CheckBusy(void);45void ZipLine_GrabHandle(EntityPlayer *player, int32 playerID, Hitbox *playerHitbox);46void ZipLine_ForceReleasePlayers(void);47Vector2 ZipLine_GetJoinPos(void);48void ZipLine_State_Moving(void);4950#endif //! OBJ_ZIPLINE_H515253