Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/HCZ/HCZSetup.h
338 views
1
#ifndef OBJ_HCZSETUP_H
2
#define OBJ_HCZSETUP_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectHCZSetup {
8
RSDK_OBJECT
9
TABLE(int32 pendulumAniTileDurations[14], { 4, 3, 2, 2, 2, 3, 3, 4, 3, 2, 2, 2, 3, 3 });
10
int32 unused1;
11
int32 waterlineAniTileFrame;
12
int32 bgCandlesAniTileFrame;
13
int32 unused2;
14
uint16 bgCandlesAniTiles;
15
uint16 waterlineAniTiles;
16
uint16 pendulumAniTiles;
17
TileLayer *background2Layer;
18
#if MANIA_USE_PLUS
19
int32 waterslidingPlayerCount;
20
bool32 playingWaterfallLoop;
21
int32 waterfallLoopTimer;
22
uint16 sfxWaterfall;
23
uint16 sfxWaterfallLoop;
24
#endif
25
};
26
27
// Entity Class
28
struct EntityHCZSetup {
29
RSDK_ENTITY
30
};
31
32
// Object Struct
33
extern ObjectHCZSetup *HCZSetup;
34
35
// Standard Entity Events
36
void HCZSetup_Update(void);
37
void HCZSetup_LateUpdate(void);
38
void HCZSetup_StaticUpdate(void);
39
void HCZSetup_Draw(void);
40
void HCZSetup_Create(void *data);
41
void HCZSetup_StageLoad(void);
42
#if GAME_INCLUDE_EDITOR
43
void HCZSetup_EditorDraw(void);
44
void HCZSetup_EditorLoad(void);
45
#endif
46
void HCZSetup_Serialize(void);
47
48
// Extra Entity Functions
49
void HCZSetup_Scanline_WaterLine(ScanlineInfo *scanlines);
50
void HCZSetup_StageFinish_EndAct1(void);
51
void HCZSetup_StageFinish_EndAct2(void);
52
53
#endif //! OBJ_HCZSETUP_H
54
55