Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SSZ/MSOrb.h
338 views
1
#ifndef OBJ_MSORB_H
2
#define OBJ_MSORB_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectMSOrb {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
Hitbox hitboxOrb;
11
};
12
13
// Entity Class
14
struct EntityMSOrb {
15
RSDK_ENTITY
16
StateMachine(state);
17
StateMachine(stateDraw);
18
Animator animator;
19
int32 unused1;
20
int32 unused2;
21
};
22
23
// Object Struct
24
extern ObjectMSOrb *MSOrb;
25
26
// Standard Entity Events
27
void MSOrb_Update(void);
28
void MSOrb_LateUpdate(void);
29
void MSOrb_StaticUpdate(void);
30
void MSOrb_Draw(void);
31
void MSOrb_Create(void *data);
32
void MSOrb_StageLoad(void);
33
#if GAME_INCLUDE_EDITOR
34
void MSOrb_EditorDraw(void);
35
void MSOrb_EditorLoad(void);
36
#endif
37
void MSOrb_Serialize(void);
38
39
// Extra Entity Functions
40
void MSOrb_CheckPlayerCollisions(void);
41
void MSOrb_State_Orb(void);
42
void MSOrb_Draw_Orb(void);
43
44
#endif //! OBJ_MSORB_H
45
46