Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/UFO/UFO_Decoration.h
338 views
1
#ifndef OBJ_UFO_DECORATION_H
2
#define OBJ_UFO_DECORATION_H
3
4
#include "Game.h"
5
6
typedef enum {
7
UFO_DECOR_TREE,
8
UFO_DECOR_FLOWER1,
9
UFO_DECOR_FLOWER2,
10
UFO_DECOR_FLOWER3,
11
UFO_DECOR_PILLAR1,
12
UFO_DECOR_PILLAR2,
13
UFO_DECOR_BIRD,
14
UFO_DECOR_FISH,
15
} UFO_DecorationTypes;
16
17
// Object Class
18
struct ObjectUFO_Decoration {
19
RSDK_OBJECT
20
Animator unusedAnimator1;
21
int32 drawType;
22
uint16 aniFrames; // unused
23
uint16 modelIndices[8];
24
uint16 sceneIndex;
25
};
26
27
// Entity Class
28
struct EntityUFO_Decoration {
29
RSDK_ENTITY
30
int32 unused1;
31
int32 type;
32
int32 size;
33
int32 height;
34
Matrix unusedMatrix1;
35
Matrix matTransform;
36
Matrix matWorld;
37
Matrix matNormal;
38
Animator animator;
39
};
40
41
// Object Struct
42
extern ObjectUFO_Decoration *UFO_Decoration;
43
44
// Standard Entity Events
45
void UFO_Decoration_Update(void);
46
void UFO_Decoration_LateUpdate(void);
47
void UFO_Decoration_StaticUpdate(void);
48
void UFO_Decoration_Draw(void);
49
void UFO_Decoration_Create(void *data);
50
void UFO_Decoration_StageLoad(void);
51
#if GAME_INCLUDE_EDITOR
52
void UFO_Decoration_EditorDraw(void);
53
void UFO_Decoration_EditorLoad(void);
54
#endif
55
void UFO_Decoration_Serialize(void);
56
57
// Extra Entity Functions
58
59
#endif //! OBJ_UFO_DECORATION_H
60
61