Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/CPZ/Syringe.h
338 views
1
#ifndef OBJ_SYRINGE_H
2
#define OBJ_SYRINGE_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectSyringe {
8
RSDK_OBJECT
9
Hitbox hitboxBody;
10
Hitbox hitboxHandle;
11
uint16 aniFrames;
12
uint16 sfxBloop;
13
};
14
15
// Entity Class
16
struct EntitySyringe {
17
RSDK_ENTITY
18
StateMachine(state); // unused
19
int32 type;
20
int32 offsetY;
21
bool32 activated;
22
color color;
23
uint8 tag;
24
Animator containerAnimator;
25
Animator handleAnimator;
26
};
27
28
// Object Struct
29
extern ObjectSyringe *Syringe;
30
31
// Standard Entity Events
32
void Syringe_Update(void);
33
void Syringe_LateUpdate(void);
34
void Syringe_StaticUpdate(void);
35
void Syringe_Draw(void);
36
void Syringe_Create(void *data);
37
void Syringe_StageLoad(void);
38
#if GAME_INCLUDE_EDITOR
39
void Syringe_EditorDraw(void);
40
void Syringe_EditorLoad(void);
41
#endif
42
void Syringe_Serialize(void);
43
44
// Extra Entity Functions
45
46
#endif //! OBJ_SYRINGE_H
47
48