Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/MMZ/ConveyorBelt.h
338 views
1
#ifndef OBJ_CONVEYORBELT_H
2
#define OBJ_CONVEYORBELT_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectConveyorBelt {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityConveyorBelt {
14
RSDK_ENTITY
15
Vector2 size;
16
int32 speed;
17
Animator animator;
18
Hitbox hitbox;
19
};
20
21
// Object Struct
22
extern ObjectConveyorBelt *ConveyorBelt;
23
24
// Standard Entity Events
25
void ConveyorBelt_Update(void);
26
void ConveyorBelt_LateUpdate(void);
27
void ConveyorBelt_StaticUpdate(void);
28
void ConveyorBelt_Draw(void);
29
void ConveyorBelt_Create(void *data);
30
void ConveyorBelt_StageLoad(void);
31
#if GAME_INCLUDE_EDITOR
32
void ConveyorBelt_EditorDraw(void);
33
void ConveyorBelt_EditorLoad(void);
34
#endif
35
void ConveyorBelt_Serialize(void);
36
37
// Extra Entity Functions
38
39
#endif //! OBJ_CONVEYORBELT_H
40
41