Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/PGZ/Ink.h
338 views
1
#ifndef OBJ_INK_H
2
#define OBJ_INK_H
3
4
#include "Game.h"
5
6
typedef enum {
7
INK_C,
8
INK_M,
9
INK_Y,
10
} InkTypes;
11
12
// Object Class
13
struct ObjectInk {
14
RSDK_OBJECT
15
uint8 playerColors[PLAYER_COUNT];
16
uint16 aniFrames;
17
Hitbox hitboxBottleL;
18
Hitbox hitboxBottleR;
19
Hitbox hitboxBottleBottom;
20
};
21
22
// Entity Class
23
struct EntityInk {
24
RSDK_ENTITY
25
uint8 type;
26
uint8 inkedPlayers;
27
Animator bottleAnimator;
28
Animator contentAnimator;
29
Animator splashAnimator;
30
};
31
32
// Object Struct
33
extern ObjectInk *Ink;
34
35
// Standard Entity Events
36
void Ink_Update(void);
37
void Ink_LateUpdate(void);
38
void Ink_StaticUpdate(void);
39
void Ink_Draw(void);
40
void Ink_Create(void *data);
41
void Ink_StageLoad(void);
42
#if GAME_INCLUDE_EDITOR
43
void Ink_EditorDraw(void);
44
void Ink_EditorLoad(void);
45
#endif
46
void Ink_Serialize(void);
47
48
// Extra Entity Functions
49
50
#endif //! OBJ_INK_H
51
52