Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/MMZ/MMZWheel.h
338 views
1
#ifndef OBJ_MMZWHEEL_H
2
#define OBJ_MMZWHEEL_H
3
4
#include "Game.h"
5
6
typedef enum {
7
MMZWHEEL_MOTION_STIFF,
8
MMZWHEEL_MOTION_SMOOTH,
9
} MMZWheelMotionTypes;
10
11
// Object Class
12
struct ObjectMMZWheel {
13
RSDK_OBJECT
14
uint16 aniFrames;
15
};
16
17
// Entity Class
18
struct EntityMMZWheel {
19
RSDK_ENTITY
20
int32 amplitude;
21
uint8 childCount;
22
int32 speed;
23
uint8 motionType;
24
Vector2 center;
25
Vector2 offset;
26
int32 unused;
27
Animator animator;
28
};
29
30
// Object Struct
31
extern ObjectMMZWheel *MMZWheel;
32
33
// Standard Entity Events
34
void MMZWheel_Update(void);
35
void MMZWheel_LateUpdate(void);
36
void MMZWheel_StaticUpdate(void);
37
void MMZWheel_Draw(void);
38
void MMZWheel_Create(void *data);
39
void MMZWheel_StageLoad(void);
40
#if GAME_INCLUDE_EDITOR
41
void MMZWheel_EditorDraw(void);
42
void MMZWheel_EditorLoad(void);
43
#endif
44
void MMZWheel_Serialize(void);
45
46
// Extra Entity Functions
47
48
#endif //! OBJ_MMZWHEEL_H
49
50