Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Common/BGSwitch.h
338 views
1
#ifndef OBJ_BGSWITCH_H
2
#define OBJ_BGSWITCH_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectBGSwitch {
8
RSDK_OBJECT
9
int32 screenID;
10
int32 layerIDs[8];
11
StateMachine(switchCallback[8]);
12
uint16 aniFrames;
13
};
14
15
// Entity Class
16
struct EntityBGSwitch {
17
RSDK_ENTITY
18
Vector2 size;
19
uint8 bgID;
20
Animator animator;
21
};
22
23
// Object Struct
24
extern ObjectBGSwitch *BGSwitch;
25
26
// Standard Entity Events
27
void BGSwitch_Update(void);
28
void BGSwitch_LateUpdate(void);
29
void BGSwitch_StaticUpdate(void);
30
void BGSwitch_Draw(void);
31
void BGSwitch_Create(void *data);
32
void BGSwitch_StageLoad(void);
33
#if GAME_INCLUDE_EDITOR
34
void BGSwitch_EditorDraw(void);
35
void BGSwitch_EditorLoad(void);
36
#endif
37
void BGSwitch_Serialize(void);
38
39
// Extra Entity Functions
40
41
#endif //! OBJ_BGSWITCH_H
42
43