Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Puyo/PuyoScore.h
338 views
1
#ifndef OBJ_PUYOSCORE_H
2
#define OBJ_PUYOSCORE_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectPuyoScore {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityPuyoScore {
14
RSDK_ENTITY
15
StateMachine(state);
16
int32 playerID;
17
bool32 counter;
18
bool32 flashing;
19
int32 score;
20
Animator animator;
21
};
22
23
// Object Struct
24
extern ObjectPuyoScore *PuyoScore;
25
26
// Standard Entity Events
27
void PuyoScore_Update(void);
28
void PuyoScore_LateUpdate(void);
29
void PuyoScore_StaticUpdate(void);
30
void PuyoScore_Draw(void);
31
void PuyoScore_Create(void *data);
32
void PuyoScore_StageLoad(void);
33
#if GAME_INCLUDE_EDITOR
34
void PuyoScore_EditorDraw(void);
35
void PuyoScore_EditorLoad(void);
36
#endif
37
void PuyoScore_Serialize(void);
38
39
// Extra Entity Functions
40
void PuyoScore_DrawScore(int32 score);
41
42
#endif //! OBJ_PUYOSCORE_H
43
44