Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/FBZ/HangGlider.h
338 views
1
#ifndef OBJ_HANGGLIDER_H
2
#define OBJ_HANGGLIDER_H
3
4
#include "Game.h"
5
6
#if MANIA_USE_PLUS
7
8
// Object Class
9
struct ObjectHangGlider {
10
RSDK_OBJECT
11
Hitbox hitboxUnused;
12
uint16 aniFrames;
13
};
14
15
// Entity Class
16
struct EntityHangGlider {
17
RSDK_ENTITY
18
StateMachine(state);
19
int32 unused1;
20
int32 gravityStrength;
21
int32 unused2;
22
int32 unused3;
23
EntityPlayer *attachedPlayer;
24
Animator sailAnimator;
25
Animator handleBackAnimator;
26
Animator handleFrontAnimator;
27
Animator playerAnimator;
28
};
29
30
// Object Struct
31
extern ObjectHangGlider *HangGlider;
32
33
// Standard Entity Events
34
void HangGlider_Update(void);
35
void HangGlider_LateUpdate(void);
36
void HangGlider_StaticUpdate(void);
37
void HangGlider_Draw(void);
38
void HangGlider_Create(void *data);
39
void HangGlider_StageLoad(void);
40
#if GAME_INCLUDE_EDITOR
41
void HangGlider_EditorDraw(void);
42
void HangGlider_EditorLoad(void);
43
#endif
44
void HangGlider_Serialize(void);
45
46
// Extra Entity Functions
47
void HangGlider_State_CheckGrab(void);
48
void HangGlider_State_Glide(void);
49
50
#endif
51
52
#endif //! OBJ_HANGGLIDER_H
53
54