Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/CPZ/Reagent.h
338 views
1
#ifndef OBJ_REAGENT_H
2
#define OBJ_REAGENT_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectReagent {
8
RSDK_OBJECT
9
Hitbox hitbox;
10
uint16 aniFrames;
11
uint16 sfxLand;
12
};
13
14
// Entity Class
15
struct EntityReagent {
16
RSDK_ENTITY
17
StateMachine(state);
18
int32 type;
19
int32 timer;
20
Vector2 originPos;
21
int32 r;
22
int32 g;
23
int32 b;
24
Animator animator;
25
};
26
27
// Object Struct
28
extern ObjectReagent *Reagent;
29
30
// Standard Entity Events
31
void Reagent_Update(void);
32
void Reagent_LateUpdate(void);
33
void Reagent_StaticUpdate(void);
34
void Reagent_Draw(void);
35
void Reagent_Create(void *data);
36
void Reagent_StageLoad(void);
37
#if GAME_INCLUDE_EDITOR
38
void Reagent_EditorDraw(void);
39
void Reagent_EditorLoad(void);
40
#endif
41
void Reagent_Serialize(void);
42
43
// Extra Entity Functions
44
void Reagent_State_CheckPoolCollisions(void);
45
void Reagent_State_ChangingPoolType(void);
46
47
#endif //! OBJ_REAGENT_H
48
49