Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SSZ/Constellation.h
338 views
1
#ifndef OBJ_CONSTELLATION_H
2
#define OBJ_CONSTELLATION_H
3
4
#include "Game.h"
5
6
typedef enum {
7
CONSTELLATION_SONIC,
8
CONSTELLATION_VASE,
9
CONSTELLATION_BERRIES,
10
CONSTELLATION_LYRE,
11
CONSTELLATION_HELMET,
12
} ConstellationShapes;
13
14
// Object Class
15
struct ObjectConstellation {
16
RSDK_OBJECT
17
uint16 aniFrames;
18
TileLayer *background1;
19
};
20
21
// Entity Class
22
struct EntityConstellation {
23
RSDK_ENTITY
24
uint8 shape;
25
Vector2 originPos;
26
int32 unused;
27
ScrollInfo *scrollInfo;
28
Animator animator;
29
};
30
31
// Object Struct
32
extern ObjectConstellation *Constellation;
33
34
// Standard Entity Events
35
void Constellation_Update(void);
36
void Constellation_LateUpdate(void);
37
void Constellation_StaticUpdate(void);
38
void Constellation_Draw(void);
39
void Constellation_Create(void *data);
40
void Constellation_StageLoad(void);
41
#if GAME_INCLUDE_EDITOR
42
void Constellation_EditorDraw(void);
43
void Constellation_EditorLoad(void);
44
#endif
45
void Constellation_Serialize(void);
46
47
// Extra Entity Functions
48
void Constellation_SetupInfo(void);
49
50
#endif //! OBJ_CONSTELLATION_H
51
52