Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Common/Decoration.h
338 views
1
#ifndef OBJ_DECORATION_H
2
#define OBJ_DECORATION_H
3
4
#include "Game.h"
5
6
typedef enum {
7
DECORATION_NONE,
8
} DecorationTypes;
9
10
// Object Class
11
struct ObjectDecoration {
12
RSDK_OBJECT
13
uint16 aniFrames;
14
};
15
16
// Entity Class
17
struct EntityDecoration {
18
RSDK_ENTITY
19
Animator animator;
20
uint8 type;
21
int32 rotSpeed;
22
Vector2 repeatTimes;
23
Vector2 repeatSpacing;
24
bool32 additive;
25
};
26
27
// Object Struct
28
extern ObjectDecoration *Decoration;
29
30
// Standard Entity Events
31
void Decoration_Update(void);
32
void Decoration_LateUpdate(void);
33
void Decoration_StaticUpdate(void);
34
void Decoration_Draw(void);
35
void Decoration_Create(void *data);
36
void Decoration_StageLoad(void);
37
#if GAME_INCLUDE_EDITOR
38
void Decoration_EditorDraw(void);
39
void Decoration_EditorLoad(void);
40
#endif
41
void Decoration_Serialize(void);
42
43
// Extra Entity Functions
44
void Decoration_DrawSprite(void);
45
46
#endif //! OBJ_DECORATION_H
47
48