Path: blob/master/SonicMania/Objects/OOZ/GasPlatform.h
338 views
#ifndef OBJ_GASPLATFORM_H1#define OBJ_GASPLATFORM_H23#include "Game.h"45typedef enum {6GASPLATFORM_INTERVAL,7GASPLATFORM_CONTACT,8GASPLATFORM_BOSS,9} GasPlatformTypes;1011// Object Class12struct ObjectGasPlatform {13RSDK_OBJECT14Hitbox hitboxGas;15Vector2 range;16uint16 sfxGasPop;17uint16 sfxSpring;18};1920// Entity Class21struct EntityGasPlatform {22MANIA_PLATFORM_BASE23uint16 interval;24uint16 intervalOffset;25Animator gasAnimator;26};2728// Object Struct29extern ObjectGasPlatform *GasPlatform;3031// Standard Entity Events32void GasPlatform_Update(void);33void GasPlatform_LateUpdate(void);34void GasPlatform_StaticUpdate(void);35void GasPlatform_Draw(void);36void GasPlatform_Create(void *data);37void GasPlatform_StageLoad(void);38#if GAME_INCLUDE_EDITOR39void GasPlatform_EditorDraw(void);40void GasPlatform_EditorLoad(void);41#endif42void GasPlatform_Serialize(void);4344// Extra Entity Functions45void GasPlatform_PopPlatform(void);46void GasPlatform_State_Popped(void);47void GasPlatform_State_SpringCooldown(void);48void GasPlatform_State_Shaking(void);4950#endif //! OBJ_GASPLATFORM_H515253