Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SPZ/Funnel.h
338 views
1
#ifndef OBJ_FUNNEL_H
2
#define OBJ_FUNNEL_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectFunnel {
8
RSDK_OBJECT
9
Hitbox hitboxFunnel;
10
uint16 unused;
11
uint16 sfxFunnel;
12
uint16 sfxPimPom;
13
uint16 aniFrames;
14
};
15
16
// Entity Class
17
struct EntityFunnel {
18
RSDK_ENTITY
19
StateMachine(state);
20
uint8 activePlayers;
21
int32 playerAngle[PLAYER_COUNT];
22
int32 playerXVel[PLAYER_COUNT];
23
int32 playerScoreTimer[PLAYER_COUNT];
24
int32 playerYVel[PLAYER_COUNT];
25
int32 playerTimers[PLAYER_COUNT];
26
Animator animator;
27
};
28
29
// Object Struct
30
extern ObjectFunnel *Funnel;
31
32
// Standard Entity Events
33
void Funnel_Update(void);
34
void Funnel_LateUpdate(void);
35
void Funnel_StaticUpdate(void);
36
void Funnel_Draw(void);
37
void Funnel_Create(void *data);
38
void Funnel_StageLoad(void);
39
#if GAME_INCLUDE_EDITOR
40
void Funnel_EditorDraw(void);
41
void Funnel_EditorLoad(void);
42
#endif
43
void Funnel_Serialize(void);
44
45
// Extra Entity Functions
46
void Funnel_State_None(void);
47
48
#endif //! OBJ_FUNNEL_H
49
50