Path: blob/master/SonicMania/Objects/PGZ/DoorTrigger.h
338 views
#ifndef OBJ_DOORTRIGGER_H1#define OBJ_DOORTRIGGER_H23#include "Game.h"45typedef enum {6DOORTRIGGER_ORIENATION_L,7DOORTRIGGER_ORIENATION_R,8DOORTRIGGER_ORIENATION_U,9DOORTRIGGER_ORIENATION_D,10} DoorTriggerOrientations;1112// Object Class13struct ObjectDoorTrigger {14RSDK_OBJECT15Hitbox hitboxBulb[2];16uint16 aniFrames;17uint16 sfxShatter;18};1920// Entity Class21struct EntityDoorTrigger {22RSDK_ENTITY23uint8 orientation;24uint8 id;25Animator baseAnimator;26Animator bulbAnimator;27};2829// Object Struct30extern ObjectDoorTrigger *DoorTrigger;3132// Standard Entity Events33void DoorTrigger_Update(void);34void DoorTrigger_LateUpdate(void);35void DoorTrigger_StaticUpdate(void);36void DoorTrigger_Draw(void);37void DoorTrigger_Create(void *data);38void DoorTrigger_StageLoad(void);39#if GAME_INCLUDE_EDITOR40void DoorTrigger_EditorDraw(void);41void DoorTrigger_EditorLoad(void);42#endif43void DoorTrigger_Serialize(void);4445// Extra Entity Functions4647#endif //! OBJ_DOORTRIGGER_H484950