Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SSZ/Bungee.h
338 views
1
#ifndef OBJ_BUNGEE_H
2
#define OBJ_BUNGEE_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectBungee {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
Animator animator;
11
};
12
13
// Entity Class
14
struct EntityBungee {
15
RSDK_ENTITY
16
Vector2 startPos;
17
Vector2 bungeePos;
18
int32 playerY[PLAYER_COUNT];
19
bool32 hasAttachedPlayer;
20
EntityPlayer *attachedPlayer;
21
int32 stretchForce;
22
int32 deathBoundary[PLAYER_COUNT];
23
uint8 timer;
24
};
25
26
// Object Struct
27
extern ObjectBungee *Bungee;
28
29
// Standard Entity Events
30
void Bungee_Update(void);
31
void Bungee_LateUpdate(void);
32
void Bungee_StaticUpdate(void);
33
void Bungee_Draw(void);
34
void Bungee_Create(void *data);
35
void Bungee_StageLoad(void);
36
#if GAME_INCLUDE_EDITOR
37
void Bungee_EditorDraw(void);
38
void Bungee_EditorLoad(void);
39
#endif
40
void Bungee_Serialize(void);
41
42
// Extra Entity Functions
43
44
#endif //! OBJ_BUNGEE_H
45
46