Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Common/Palette.h
338 views
1
#ifndef OBJ_PALETTE_H
2
#define OBJ_PALETTE_H
3
4
#include "Game.h"
5
6
#if MANIA_USE_PLUS
7
8
typedef enum {
9
PALETTE_BANK_0,
10
PALETTE_BANK_1,
11
PALETTE_BANK_2,
12
PALETTE_BANK_3,
13
PALETTE_BANK_4,
14
PALETTE_BANK_5,
15
PALETTE_BANK_6,
16
PALETTE_BANK_7,
17
} PaletteBankIDs;
18
19
// Object Class
20
struct ObjectPalette {
21
RSDK_OBJECT
22
uint16 aniFrames;
23
uint8 count;
24
};
25
26
// Entity Class
27
struct EntityPalette {
28
RSDK_ENTITY
29
int32 state;
30
String paletteFile;
31
uint16 rowFlags;
32
uint8 bankID;
33
bool32 loadOnce;
34
Animator animator;
35
};
36
37
// Object Struct
38
extern ObjectPalette *Palette;
39
40
// Standard Entity Events
41
void Palette_Update(void);
42
void Palette_LateUpdate(void);
43
void Palette_StaticUpdate(void);
44
void Palette_Draw(void);
45
void Palette_Create(void *data);
46
void Palette_StageLoad(void);
47
#if GAME_INCLUDE_EDITOR
48
void Palette_EditorDraw(void);
49
void Palette_EditorLoad(void);
50
#endif
51
void Palette_Serialize(void);
52
#endif
53
54
// Extra Entity Functions
55
56
#endif //! OBJ_PALETTE_H
57
58