Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Pinball/PBL_Ring.h
338 views
1
#ifndef OBJ_PBL_RING_H
2
#define OBJ_PBL_RING_H
3
4
#include "Game.h"
5
6
#if MANIA_USE_PLUS
7
// Object Class
8
struct ObjectPBL_Ring {
9
RSDK_OBJECT
10
int32 unused1;
11
int32 unused2;
12
uint16 aniFrames;
13
uint16 sfxRing;
14
};
15
16
// Entity Class
17
struct EntityPBL_Ring {
18
RSDK_ENTITY
19
StateMachine(state);
20
int32 unused1;
21
int32 height;
22
int32 unused2;
23
int32 worldX;
24
int32 worldY;
25
Animator animator;
26
};
27
28
// Object Struct
29
extern ObjectPBL_Ring *PBL_Ring;
30
31
// Standard Entity Events
32
void PBL_Ring_Update(void);
33
void PBL_Ring_LateUpdate(void);
34
void PBL_Ring_StaticUpdate(void);
35
void PBL_Ring_Draw(void);
36
void PBL_Ring_Create(void *data);
37
void PBL_Ring_StageLoad(void);
38
#if GAME_INCLUDE_EDITOR
39
void PBL_Ring_EditorDraw(void);
40
void PBL_Ring_EditorLoad(void);
41
#endif
42
void PBL_Ring_Serialize(void);
43
44
// Extra Entity Functions
45
void PBL_Ring_GiveRing(void);
46
void PBL_Ring_State_Ring(void);
47
void PBL_Ring_State_RingSparkle(void);
48
49
#endif
50
51
#endif //! OBJ_PBL_RING_H
52
53