Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/PGZ/DoorTrigger.h
338 views
1
#ifndef OBJ_DOORTRIGGER_H
2
#define OBJ_DOORTRIGGER_H
3
4
#include "Game.h"
5
6
typedef enum {
7
DOORTRIGGER_ORIENATION_L,
8
DOORTRIGGER_ORIENATION_R,
9
DOORTRIGGER_ORIENATION_U,
10
DOORTRIGGER_ORIENATION_D,
11
} DoorTriggerOrientations;
12
13
// Object Class
14
struct ObjectDoorTrigger {
15
RSDK_OBJECT
16
Hitbox hitboxBulb[2];
17
uint16 aniFrames;
18
uint16 sfxShatter;
19
};
20
21
// Entity Class
22
struct EntityDoorTrigger {
23
RSDK_ENTITY
24
uint8 orientation;
25
uint8 id;
26
Animator baseAnimator;
27
Animator bulbAnimator;
28
};
29
30
// Object Struct
31
extern ObjectDoorTrigger *DoorTrigger;
32
33
// Standard Entity Events
34
void DoorTrigger_Update(void);
35
void DoorTrigger_LateUpdate(void);
36
void DoorTrigger_StaticUpdate(void);
37
void DoorTrigger_Draw(void);
38
void DoorTrigger_Create(void *data);
39
void DoorTrigger_StageLoad(void);
40
#if GAME_INCLUDE_EDITOR
41
void DoorTrigger_EditorDraw(void);
42
void DoorTrigger_EditorLoad(void);
43
#endif
44
void DoorTrigger_Serialize(void);
45
46
// Extra Entity Functions
47
48
#endif //! OBJ_DOORTRIGGER_H
49
50