Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/LRZ/LRZ1Setup.h
338 views
1
#ifndef OBJ_LRZ1SETUP_H
2
#define OBJ_LRZ1SETUP_H
3
4
#include "Game.h"
5
6
typedef enum { LRZ1_TFLAGS_NORMAL, LRZ1_TFLAGS_LAVA } TileFlagsLRZ1;
7
8
// Object Class
9
struct ObjectLRZ1Setup {
10
RSDK_OBJECT
11
int32 palTimer;
12
int32 fadeTimer;
13
TileLayer *background1;
14
TileLayer *background2;
15
#if MANIA_USE_PLUS
16
TileLayer *fgLow;
17
TileLayer *fgHigh;
18
TABLE(int32 deformFG[32], { -1, 0, 0, -1, -1, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 });
19
TABLE(int32 deformBG[32],
20
{ -2, -2, -2, 0, -2, 0, -4, -2, 0, -4, -4, -1, 0, 0, -3, -4, -4, -1, -4, -4, -3, -4, -1, 0, 0, 0, -3, -1, -1, -1, -2, 0 });
21
#endif
22
};
23
24
// Entity Class
25
struct EntityLRZ1Setup {
26
RSDK_ENTITY
27
};
28
29
// Object Struct
30
extern ObjectLRZ1Setup *LRZ1Setup;
31
32
// Standard Entity Events
33
void LRZ1Setup_Update(void);
34
void LRZ1Setup_LateUpdate(void);
35
void LRZ1Setup_StaticUpdate(void);
36
void LRZ1Setup_Draw(void);
37
void LRZ1Setup_Create(void *data);
38
void LRZ1Setup_StageLoad(void);
39
#if GAME_INCLUDE_EDITOR
40
void LRZ1Setup_EditorDraw(void);
41
void LRZ1Setup_EditorLoad(void);
42
#endif
43
void LRZ1Setup_Serialize(void);
44
45
// Extra Entity Functions
46
void LRZ1Setup_StageFinish_EndAct1(void);
47
void LRZ1Setup_DrawHook_ApplyBGSmoothing(void);
48
49
#endif //! OBJ_LRZ1SETUP_H
50
51