Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Global/Dust.h
338 views
1
#ifndef OBJ_DUST_H
2
#define OBJ_DUST_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectDust {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityDust {
14
RSDK_ENTITY
15
StateMachine(state);
16
int32 timer;
17
Entity *parent;
18
Animator animator;
19
};
20
21
// Object Struct
22
extern ObjectDust *Dust;
23
24
// Standard Entity Events
25
void Dust_Update(void);
26
void Dust_LateUpdate(void);
27
void Dust_StaticUpdate(void);
28
void Dust_Draw(void);
29
void Dust_Create(void *data);
30
void Dust_StageLoad(void);
31
#if GAME_INCLUDE_EDITOR
32
void Dust_EditorDraw(void);
33
void Dust_EditorLoad(void);
34
#endif
35
void Dust_Serialize(void);
36
37
// Extra Entity Functions
38
void Dust_State_SpinDash(void);
39
void Dust_State_DustTrail(void);
40
void Dust_State_GlideTrail(void);
41
void Dust_State_DustPuff(void);
42
#if MANIA_USE_PLUS
43
void Dust_State_DustPuff_Collide(void);
44
#endif
45
void Dust_State_DustPuff_Friction(void);
46
47
#endif //! OBJ_DUST_H
48
49