Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SSZ/MSBomb.h
338 views
1
#ifndef OBJ_MSBOMB_H
2
#define OBJ_MSBOMB_H
3
4
#include "Game.h"
5
6
#if MANIA_USE_PLUS
7
// Object Class
8
struct ObjectMSBomb {
9
RSDK_OBJECT
10
uint16 aniFrames;
11
uint16 sfxExplosion;
12
};
13
14
// Entity Class
15
struct EntityMSBomb {
16
RSDK_ENTITY
17
StateMachine(state);
18
int32 unused;
19
int32 timer;
20
Hitbox hitbox;
21
Animator animator;
22
};
23
24
// Object Struct
25
extern ObjectMSBomb *MSBomb;
26
27
// Standard Entity Events
28
void MSBomb_Update(void);
29
void MSBomb_LateUpdate(void);
30
void MSBomb_StaticUpdate(void);
31
void MSBomb_Draw(void);
32
void MSBomb_Create(void *data);
33
void MSBomb_StageLoad(void);
34
#if GAME_INCLUDE_EDITOR
35
void MSBomb_EditorDraw(void);
36
void MSBomb_EditorLoad(void);
37
#endif
38
void MSBomb_Serialize(void);
39
40
// Extra Entity Functions
41
void MSBomb_State_EnterBomb(void);
42
void MSBomb_State_SilverSonicExplode(void);
43
void MSBomb_State_Bouncing(void);
44
void MSBomb_State_Projectile(void);
45
46
#endif
47
48
#endif //! OBJ_MSBOMB_H
49
50