Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Pinball/PBL_Bumper.h
338 views
1
#ifndef OBJ_PBL_BUMPER_H
2
#define OBJ_PBL_BUMPER_H
3
4
#include "Game.h"
5
6
#if MANIA_USE_PLUS
7
// Object Class
8
struct ObjectPBL_Bumper {
9
RSDK_OBJECT
10
Animator unusedAnimator1;
11
Hitbox hitbox;
12
uint16 aniFrames;
13
uint16 modelFrames;
14
uint16 sceneIndex;
15
uint16 sfxBumper;
16
};
17
18
// Entity Class
19
struct EntityPBL_Bumper {
20
RSDK_ENTITY
21
StateMachine(state);
22
int32 height;
23
int32 scaleFactor;
24
int32 scaleVel;
25
int32 timer;
26
Matrix unusedMatrix1;
27
Matrix matTransform;
28
Matrix matWorld;
29
Matrix matNormal;
30
Animator animator;
31
};
32
33
// Object Struct
34
extern ObjectPBL_Bumper *PBL_Bumper;
35
36
// Standard Entity Events
37
void PBL_Bumper_Update(void);
38
void PBL_Bumper_LateUpdate(void);
39
void PBL_Bumper_StaticUpdate(void);
40
void PBL_Bumper_Draw(void);
41
void PBL_Bumper_Create(void *data);
42
void PBL_Bumper_StageLoad(void);
43
#if GAME_INCLUDE_EDITOR
44
void PBL_Bumper_EditorDraw(void);
45
void PBL_Bumper_EditorLoad(void);
46
#endif
47
void PBL_Bumper_Serialize(void);
48
49
// Extra Entity Functions
50
void PBL_Bumper_HandlePlayerInteractions(void);
51
void PBL_Bumper_State_CheckBumps(void);
52
void PBL_Bumper_State_Bumped(void);
53
void PBL_Bumper_State_FinishedBump(void);
54
55
#endif
56
57
#endif //! OBJ_PBL_BUMPER_H
58
59