Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/FBZ/HangPoint.h
338 views
1
#ifndef OBJ_HANGPOINT_H
2
#define OBJ_HANGPOINT_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectHangPoint {
8
RSDK_OBJECT
9
Animator animator;
10
uint16 aniFrames;
11
Hitbox hitboxGrab;
12
};
13
14
// Entity Class
15
struct EntityHangPoint {
16
RSDK_ENTITY
17
uint8 activePlayers;
18
int32 moveDistance[PLAYER_COUNT];
19
int32 playerTimer[PLAYER_COUNT];
20
int32 pullPos;
21
int32 maxVel;
22
int32 length;
23
uint8 speed;
24
};
25
26
// Object Struct
27
extern ObjectHangPoint *HangPoint;
28
29
// Standard Entity Events
30
void HangPoint_Update(void);
31
void HangPoint_LateUpdate(void);
32
void HangPoint_StaticUpdate(void);
33
void HangPoint_Draw(void);
34
void HangPoint_Create(void *data);
35
void HangPoint_StageLoad(void);
36
#if GAME_INCLUDE_EDITOR
37
void HangPoint_EditorDraw(void);
38
void HangPoint_EditorLoad(void);
39
#endif
40
void HangPoint_Serialize(void);
41
42
// Extra Entity Functions
43
void HangPoint_HandlePlayerMovement(EntityHangPoint *self, EntityPlayer *player, int32 playerID);
44
45
#endif //! OBJ_HANGPOINT_H
46
47