Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Title/TitleBG.h
338 views
1
#ifndef OBJ_TITLEBG_H
2
#define OBJ_TITLEBG_H
3
4
#include "Game.h"
5
6
typedef enum {
7
TITLEBG_MOUNTAIN1,
8
TITLEBG_MOUNTAIN2,
9
TITLEBG_REFLECTION,
10
TITLEBG_WATERSPARKLE,
11
TITLEBG_WINGSHINE,
12
} TitleBGTypes;
13
14
// Object Class
15
struct ObjectTitleBG {
16
RSDK_OBJECT
17
int32 palTimer;
18
int32 timer;
19
int32 angle;
20
uint16 aniFrames;
21
};
22
23
// Entity Class
24
struct EntityTitleBG {
25
RSDK_ENTITY
26
TitleBGTypes type;
27
int32 timer;
28
Animator animator;
29
};
30
31
// Object Struct
32
extern ObjectTitleBG *TitleBG;
33
34
// Standard Entity Events
35
void TitleBG_Update(void);
36
void TitleBG_LateUpdate(void);
37
void TitleBG_StaticUpdate(void);
38
void TitleBG_Draw(void);
39
void TitleBG_Create(void *data);
40
void TitleBG_StageLoad(void);
41
#if GAME_INCLUDE_EDITOR
42
void TitleBG_EditorDraw(void);
43
void TitleBG_EditorLoad(void);
44
#endif
45
void TitleBG_Serialize(void);
46
47
// Extra Entity Functions
48
void TitleBG_SetupFX(void);
49
void TitleBG_Scanline_Clouds(ScanlineInfo *scanlines);
50
void TitleBG_Scanline_Island(ScanlineInfo *scanlines);
51
52
#endif //! OBJ_TITLEBG_H
53
54