Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Pinball/PBL_Setup.h
338 views
1
#ifndef OBJ_PBL_SETUP_H
2
#define OBJ_PBL_SETUP_H
3
4
#include "Game.h"
5
6
#if MANIA_USE_PLUS
7
// Object Class
8
struct ObjectPBL_Setup {
9
RSDK_OBJECT
10
int32 unused1;
11
int32 timer;
12
int32 score;
13
int32 score1UP;
14
int32 rings;
15
int32 ringFrame;
16
int32 ringPan;
17
int32 sectorID;
18
int32 sectorCount;
19
int32 scanlineTimer;
20
uint8 tableLow;
21
uint8 tableHigh;
22
uint16 sfxContinue;
23
};
24
25
// Entity Class
26
struct EntityPBL_Setup {
27
RSDK_ENTITY
28
StateMachine(state);
29
int32 timer;
30
int32 color;
31
Matrix unusedMatrix1;
32
};
33
34
// Object Struct
35
extern ObjectPBL_Setup *PBL_Setup;
36
37
// Standard Entity Events
38
void PBL_Setup_Update(void);
39
void PBL_Setup_LateUpdate(void);
40
void PBL_Setup_StaticUpdate(void);
41
void PBL_Setup_Draw(void);
42
void PBL_Setup_Create(void *data);
43
void PBL_Setup_StageLoad(void);
44
#if GAME_INCLUDE_EDITOR
45
void PBL_Setup_EditorDraw(void);
46
void PBL_Setup_EditorLoad(void);
47
#endif
48
void PBL_Setup_Serialize(void);
49
50
// Extra Entity Functions
51
void PBL_Setup_Scanline_TableLow(ScanlineInfo *scanlines);
52
void PBL_Setup_Scanline_TableHigh(ScanlineInfo *scanlines);
53
void PBL_Setup_Scanline_PinballBG(ScanlineInfo *scanlines);
54
void PBL_Setup_DrawHook_PrepareDrawingFX(void);
55
56
void PBL_Setup_ExitPinball(void);
57
void PBL_Setup_GiveScore(int32 score);
58
void PBL_Setup_GiveLife(void);
59
void PBL_Setup_State_FadeIn(void);
60
void PBL_Setup_State_ManageStageExit(void);
61
void PBL_Setup_SaveAndChangeScene(void);
62
63
#endif
64
65
#endif //! OBJ_PBL_SETUP_H
66
67