Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Cutscene/CutsceneRules.h
338 views
1
#ifndef OBJ_CUTSCENERULES_H
2
#define OBJ_CUTSCENERULES_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectCutsceneRules {
8
RSDK_OBJECT
9
};
10
11
// Entity Class
12
struct EntityCutsceneRules {
13
MANIA_CUTSCENE_BASE
14
};
15
16
// Object Entity
17
extern ObjectCutsceneRules *CutsceneRules;
18
19
// Standard Entity Events
20
void CutsceneRules_Update(void);
21
void CutsceneRules_LateUpdate(void);
22
void CutsceneRules_StaticUpdate(void);
23
void CutsceneRules_Draw(void);
24
void CutsceneRules_Create(void *data);
25
void CutsceneRules_StageLoad(void);
26
#if GAME_INCLUDE_EDITOR
27
void CutsceneRules_EditorDraw(void);
28
void CutsceneRules_EditorLoad(void);
29
#endif
30
void CutsceneRules_Serialize(void);
31
32
// Extra Entity Functions
33
bool32 CutsceneRules_IsAct1(void);
34
bool32 CutsceneRules_IsAct2(void);
35
bool32 CutsceneRules_IsIntroEnabled(void);
36
bool32 CutsceneRules_IsAct1Regular(void);
37
bool32 CutsceneRules_CheckStageReload(void);
38
bool32 CutsceneRules_CheckPlayerPos(int32 x1, int32 y1, int32 x2, int32 y2);
39
40
// Extra Helpers
41
void CutsceneRules_SetupEntity(void *e, Vector2 *size, Hitbox *hitbox);
42
void CutsceneRules_DrawCutsceneBounds(void *e, Vector2 *size);
43
44
#endif //! OBJ_CUTSCENERULES_H
45
46