Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/UFO/UFO_Message.h
338 views
1
#ifndef OBJ_UFO_MESSAGE_H
2
#define OBJ_UFO_MESSAGE_H
3
4
#include "Game.h"
5
6
typedef enum {
7
UFO_MESSAGE_CATCHUFO,
8
UFO_MESSAGE_ESCAPETIME,
9
UFO_MESSAGE_COURSEOUT,
10
UFO_MESSAGE_TIMEOVER,
11
} UFO_MessageTypes;
12
13
// Object Class
14
struct ObjectUFO_Message {
15
RSDK_OBJECT
16
uint16 aniFrames;
17
};
18
19
// Entity Class
20
struct EntityUFO_Message {
21
RSDK_ENTITY
22
StateMachine(state);
23
int32 displayTime;
24
int32 timer;
25
Animator leftAnimator;
26
Animator rightAnimator;
27
int32 unused1;
28
int32 unused2;
29
};
30
31
// Object Struct
32
extern ObjectUFO_Message *UFO_Message;
33
34
// Standard Entity Events
35
void UFO_Message_Update(void);
36
void UFO_Message_LateUpdate(void);
37
void UFO_Message_StaticUpdate(void);
38
void UFO_Message_Draw(void);
39
void UFO_Message_Create(void *data);
40
void UFO_Message_StageLoad(void);
41
#if GAME_INCLUDE_EDITOR
42
void UFO_Message_EditorDraw(void);
43
void UFO_Message_EditorLoad(void);
44
#endif
45
void UFO_Message_Serialize(void);
46
47
// Extra Entity Functions
48
void UFO_Message_State_Appear(void);
49
void UFO_Message_State_ShowMsg(void);
50
void UFO_Message_State_Exit(void);
51
52
#endif //! OBJ_UFO_MESSAGE_H
53
54