Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/FBZ/Propeller.h
338 views
1
#ifndef OBJ_PROPELLER_H
2
#define OBJ_PROPELLER_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectPropeller {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
uint16 sfxFan;
11
};
12
13
// Entity Class
14
struct EntityPropeller {
15
RSDK_ENTITY
16
Hitbox hitboxPlayer;
17
Hitbox hitboxFan;
18
Hitbox hitboxTrigger;
19
bool32 fanEnabled;
20
uint8 activePlayers;
21
Animator animator;
22
};
23
24
// Object Struct
25
extern ObjectPropeller *Propeller;
26
27
// Standard Entity Events
28
void Propeller_Update(void);
29
void Propeller_LateUpdate(void);
30
void Propeller_StaticUpdate(void);
31
void Propeller_Draw(void);
32
void Propeller_Create(void *data);
33
void Propeller_StageLoad(void);
34
#if GAME_INCLUDE_EDITOR
35
void Propeller_EditorDraw(void);
36
void Propeller_EditorLoad(void);
37
#endif
38
void Propeller_Serialize(void);
39
40
// Extra Entity Functions
41
42
#endif //! OBJ_PROPELLER_H
43
44