Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/UFO/UFO_HUD.h
338 views
1
#ifndef OBJ_UFO_HUD_H
2
#define OBJ_UFO_HUD_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectUFO_HUD {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityUFO_HUD {
14
RSDK_ENTITY
15
bool32 showRingCount;
16
int32 timer;
17
uint8 machPaletteBank;
18
Animator hudAnimator;
19
Animator numbersAnimator;
20
Animator machAnimator;
21
Animator stripeAnimator;
22
};
23
24
// Object Struct
25
extern ObjectUFO_HUD *UFO_HUD;
26
27
// Standard Entity Events
28
void UFO_HUD_Update(void);
29
void UFO_HUD_LateUpdate(void);
30
void UFO_HUD_StaticUpdate(void);
31
void UFO_HUD_Draw(void);
32
void UFO_HUD_Create(void *data);
33
void UFO_HUD_StageLoad(void);
34
#if GAME_INCLUDE_EDITOR
35
void UFO_HUD_EditorDraw(void);
36
void UFO_HUD_EditorLoad(void);
37
#endif
38
void UFO_HUD_Serialize(void);
39
40
// Extra Entity Functions
41
void UFO_HUD_CheckLevelUp(void);
42
void UFO_HUD_LevelUpMach(void);
43
void UFO_HUD_DrawNumbers(Vector2 *drawPos, int32 value);
44
45
#endif //! OBJ_UFO_HUD_H
46
47