Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SPZ/EggTV.h
338 views
1
#ifndef OBJ_EGGTV_H
2
#define OBJ_EGGTV_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectEggTV {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
Animator animator;
11
};
12
13
// Entity Class
14
struct EntityEggTV {
15
RSDK_ENTITY
16
StateMachine(state);
17
Vector2 size;
18
bool32 drawOverTV;
19
int32 scanlineAlpha;
20
Hitbox hitbox;
21
Animator unusedAnimator;
22
};
23
24
// Object Struct
25
extern ObjectEggTV *EggTV;
26
27
// Standard Entity Events
28
void EggTV_Update(void);
29
void EggTV_LateUpdate(void);
30
void EggTV_StaticUpdate(void);
31
void EggTV_Draw(void);
32
void EggTV_Create(void *data);
33
void EggTV_StageLoad(void);
34
#if GAME_INCLUDE_EDITOR
35
void EggTV_EditorDraw(void);
36
void EggTV_EditorLoad(void);
37
#endif
38
void EggTV_Serialize(void);
39
40
// Extra Entity Functions
41
void EggTV_DrawScanlines(void);
42
void EggTV_DrawTV(void);
43
44
#endif //! OBJ_EGGTV_H
45
46