Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/CPZ/ChemBubble.h
338 views
1
#ifndef OBJ_CHEMBUBBLE_H
2
#define OBJ_CHEMBUBBLE_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectChemBubble {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityChemBubble {
14
RSDK_ENTITY
15
StateMachine(state);
16
int32 timer;
17
int32 amplitude;
18
int32 angleShift;
19
Vector2 startPos;
20
EntityChemicalPool *parent;
21
Animator animator;
22
};
23
24
// Object Struct
25
extern ObjectChemBubble *ChemBubble;
26
27
// Standard Entity Events
28
void ChemBubble_Update(void);
29
void ChemBubble_LateUpdate(void);
30
void ChemBubble_StaticUpdate(void);
31
void ChemBubble_Draw(void);
32
void ChemBubble_Create(void *data);
33
void ChemBubble_StageLoad(void);
34
#if GAME_INCLUDE_EDITOR
35
void ChemBubble_EditorDraw(void);
36
void ChemBubble_EditorLoad(void);
37
#endif
38
void ChemBubble_Serialize(void);
39
40
// Extra Entity Functions
41
void ChemBubble_State_Appear(void);
42
void ChemBubble_State_Rising(void);
43
void ChemBubble_State_Surfaced(void);
44
45
#endif //! OBJ_CHEMBUBBLE_H
46
47