Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/FBZ/LightBarrier.h
338 views
1
#ifndef OBJ_LIGHTBARRIER_H
2
#define OBJ_LIGHTBARRIER_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectLightBarrier {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityLightBarrier {
14
RSDK_ENTITY
15
int32 size;
16
bool32 enabled;
17
int32 timer;
18
int32 sprY;
19
int32 barrierAlpha;
20
Hitbox hitboxBarrier;
21
Animator emitterAnimator;
22
Animator barrierAnimator;
23
};
24
25
// Object Struct
26
extern ObjectLightBarrier *LightBarrier;
27
28
// Standard Entity Events
29
void LightBarrier_Update(void);
30
void LightBarrier_LateUpdate(void);
31
void LightBarrier_StaticUpdate(void);
32
void LightBarrier_Draw(void);
33
void LightBarrier_Create(void *data);
34
void LightBarrier_StageLoad(void);
35
#if GAME_INCLUDE_EDITOR
36
void LightBarrier_EditorDraw(void);
37
void LightBarrier_EditorLoad(void);
38
#endif
39
void LightBarrier_Serialize(void);
40
41
// Extra Entity Functions
42
43
#endif //! OBJ_LIGHTBARRIER_H
44
45