Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Global/Explosion.h
338 views
1
#ifndef OBJ_EXPLOSION_H
2
#define OBJ_EXPLOSION_H
3
4
#include "Game.h"
5
6
typedef enum {
7
EXPLOSION_ITEMBOX,
8
EXPLOSION_ENEMY,
9
EXPLOSION_BOSS,
10
EXPLOSION_BOSSPUFF,
11
} ExplosionTypes;
12
13
// Object Class
14
struct ObjectExplosion {
15
RSDK_OBJECT
16
uint16 aniFrames;
17
uint16 sfxDestroy;
18
};
19
20
// Entity Class
21
struct EntityExplosion {
22
RSDK_ENTITY
23
Animator animator;
24
int32 planeFilter;
25
};
26
27
// Object Struct
28
extern ObjectExplosion *Explosion;
29
30
// Standard Entity Events
31
void Explosion_Update(void);
32
void Explosion_LateUpdate(void);
33
void Explosion_StaticUpdate(void);
34
void Explosion_Draw(void);
35
void Explosion_Create(void *data);
36
void Explosion_StageLoad(void);
37
#if GAME_INCLUDE_EDITOR
38
void Explosion_EditorDraw(void);
39
void Explosion_EditorLoad(void);
40
#endif
41
void Explosion_Serialize(void);
42
43
// Extra Entity Functions
44
45
#endif //! OBJ_EXPLOSION_H
46
47