Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/OOZ/Valve.h
338 views
1
#ifndef OBJ_VALVE_H
2
#define OBJ_VALVE_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectValve {
8
RSDK_OBJECT
9
Hitbox hitbox;
10
uint16 aniFrames;
11
uint16 sfxClick;
12
};
13
14
// Entity Class
15
struct EntityValve {
16
RSDK_ENTITY
17
Animator valveAnimator;
18
Animator wheelAnimator;
19
};
20
21
// Object Struct
22
extern ObjectValve *Valve;
23
24
// Standard Entity Events
25
void Valve_Update(void);
26
void Valve_LateUpdate(void);
27
void Valve_StaticUpdate(void);
28
void Valve_Draw(void);
29
void Valve_Create(void *data);
30
void Valve_StageLoad(void);
31
#if GAME_INCLUDE_EDITOR
32
void Valve_EditorDraw(void);
33
void Valve_EditorLoad(void);
34
#endif
35
void Valve_Serialize(void);
36
37
// Extra Entity Functions
38
39
#endif //! OBJ_VALVE_H
40
41