Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/PGZ/PSZ2Setup.h
338 views
1
#ifndef OBJ_PSZ2SETUP_H
2
#define OBJ_PSZ2SETUP_H
3
4
#include "Game.h"
5
6
typedef enum { GENERICTRIGGER_PSZ2_PETALSINACTIVE, GENERICTRIGGER_PSZ2_PETALSACTIVE } GenericTriggerTypesPSZ2;
7
8
// Object Class
9
struct ObjectPSZ2Setup {
10
RSDK_OBJECT
11
TABLE(int32 petalAniDurationTable[8], { 9, 7, 6, 7, 9, 7, 6, 7 });
12
int32 petalAniDuration;
13
int32 petalAniFrame;
14
bool32 petalBehaviourActive;
15
int16 petalTimer;
16
uint16 aniTiles1;
17
uint16 aniTiles2;
18
};
19
20
// Entity Class
21
struct EntityPSZ2Setup {
22
RSDK_ENTITY
23
};
24
25
// Object Struct
26
extern ObjectPSZ2Setup *PSZ2Setup;
27
28
// Standard Entity Events
29
void PSZ2Setup_Update(void);
30
void PSZ2Setup_LateUpdate(void);
31
void PSZ2Setup_StaticUpdate(void);
32
void PSZ2Setup_Draw(void);
33
void PSZ2Setup_Create(void *data);
34
void PSZ2Setup_StageLoad(void);
35
#if GAME_INCLUDE_EDITOR
36
void PSZ2Setup_EditorDraw(void);
37
void PSZ2Setup_EditorLoad(void);
38
#endif
39
void PSZ2Setup_Serialize(void);
40
41
// Extra Entity Functions
42
void PSZ2Setup_Trigger_ActivatePetalBehaviour(void);
43
void PSZ2Setup_Trigger_DeactivatePetalBehaviour(void);
44
void PSZ2Setup_ActTransitionLoad(void);
45
void PSZ2Setup_StageFinish_EndAct2(void);
46
47
#endif //! OBJ_PSZ2SETUP_H
48
49