Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Credits/TAEmerald.h
338 views
1
#ifndef OBJ_TAEMERALD_H
2
#define OBJ_TAEMERALD_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectTAEmerald {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityTAEmerald {
14
RSDK_ENTITY
15
StateMachine(state);
16
uint8 color;
17
int32 timer;
18
Vector2 originPos;
19
Animator animator;
20
};
21
22
// Object Struct
23
extern ObjectTAEmerald *TAEmerald;
24
25
// Standard Entity Events
26
void TAEmerald_Update(void);
27
void TAEmerald_LateUpdate(void);
28
void TAEmerald_StaticUpdate(void);
29
void TAEmerald_Draw(void);
30
void TAEmerald_Create(void *data);
31
void TAEmerald_StageLoad(void);
32
#if GAME_INCLUDE_EDITOR
33
void TAEmerald_EditorDraw(void);
34
void TAEmerald_EditorLoad(void);
35
#endif
36
void TAEmerald_Serialize(void);
37
38
// Extra Entity Functions
39
void TAEmerald_State_Oscillate(void);
40
void TAEmerald_State_MoveCircle(void);
41
42
#endif //! OBJ_TAEMERALD_H
43
44