Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/FBZ/Mine.h
338 views
1
#ifndef OBJ_MINE_H
2
#define OBJ_MINE_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectMine {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
Hitbox hitboxMine;
11
uint16 sfxExplosion;
12
};
13
14
// Entity Class
15
struct EntityMine {
16
RSDK_ENTITY
17
int32 timer;
18
Animator animator;
19
};
20
21
// Object Struct
22
extern ObjectMine *Mine;
23
24
// Standard Entity Events
25
void Mine_Update(void);
26
void Mine_LateUpdate(void);
27
void Mine_StaticUpdate(void);
28
void Mine_Draw(void);
29
void Mine_Create(void *data);
30
void Mine_StageLoad(void);
31
#if GAME_INCLUDE_EDITOR
32
void Mine_EditorDraw(void);
33
void Mine_EditorLoad(void);
34
#endif
35
void Mine_Serialize(void);
36
37
// Extra Entity Functions
38
#if MANIA_USE_PLUS
39
void Mine_CheckMightyHit(void);
40
#endif
41
42
#endif //! OBJ_MINE_H
43
44