Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SSZ/MSFactory.h
338 views
1
#ifndef OBJ_MSFACTORY_H
2
#define OBJ_MSFACTORY_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectMSFactory {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
uint16 sfxMachineActivate;
11
uint16 sfxHullClose;
12
};
13
14
// Entity Class
15
struct EntityMSFactory {
16
RSDK_ENTITY
17
StateMachine(state);
18
int32 timer;
19
Vector2 drawPos;
20
Animator animator;
21
};
22
23
// Object Struct
24
extern ObjectMSFactory *MSFactory;
25
26
// Standard Entity Events
27
void MSFactory_Update(void);
28
void MSFactory_LateUpdate(void);
29
void MSFactory_StaticUpdate(void);
30
void MSFactory_Draw(void);
31
void MSFactory_Create(void *data);
32
void MSFactory_StageLoad(void);
33
#if GAME_INCLUDE_EDITOR
34
void MSFactory_EditorDraw(void);
35
void MSFactory_EditorLoad(void);
36
#endif
37
void MSFactory_Serialize(void);
38
39
// Extra Entity Functions
40
void MSFactory_State_SetupFactory(void);
41
void MSFactory_State_SetupMetalSonic(void);
42
void MSFactory_State_OpeningDoor(void);
43
void MSFactory_State_CreateSilverSonic(void);
44
void MSFactory_State_CloseDoor(void);
45
46
#endif //! OBJ_MSFACTORY_H
47
48