Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/GHZ/CorkscrewPath.h
338 views
1
#ifndef OBJ_CORKSCREWPATH_H
2
#define OBJ_CORKSCREWPATH_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectCorkscrewPath {
8
RSDK_OBJECT
9
TABLE(int32 frameTable[24], { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13 });
10
uint16 aniFrames; // probably editor-only
11
};
12
13
// Entity Class
14
struct EntityCorkscrewPath {
15
RSDK_ENTITY
16
int32 period;
17
int32 xSize; // length to the (left/right) edges from the center
18
int32 amplitude;
19
int32 activePlayers;
20
Animator animator; // also probably editor-only
21
};
22
23
// Object Struct
24
extern ObjectCorkscrewPath *CorkscrewPath;
25
26
// Standard Entity Events
27
void CorkscrewPath_Update(void);
28
void CorkscrewPath_LateUpdate(void);
29
void CorkscrewPath_StaticUpdate(void);
30
void CorkscrewPath_Draw(void);
31
void CorkscrewPath_Create(void *data);
32
void CorkscrewPath_StageLoad(void);
33
#if GAME_INCLUDE_EDITOR
34
void CorkscrewPath_EditorDraw(void);
35
void CorkscrewPath_EditorLoad(void);
36
#endif
37
void CorkscrewPath_Serialize(void);
38
39
// Extra Entity Functions
40
41
#endif //! OBJ_CORKSCREWPATH_H
42
43