Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Cutscene/FXSpinRay.h
338 views
1
#ifndef OBJ_FXSPINRAY_H
2
#define OBJ_FXSPINRAY_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectFXSpinRay {
8
RSDK_OBJECT
9
};
10
11
// Entity Class
12
struct EntityFXSpinRay {
13
RSDK_ENTITY
14
StateMachine(state);
15
int32 timer;
16
int32 spinSpeed;
17
int32 r;
18
int32 g;
19
int32 b;
20
int32 size;
21
Entity *parent;
22
Vector2 offsetPos;
23
Vector2 vertexPos[4];
24
Vector2 vertices[20];
25
Vector2 vertexOffset;
26
};
27
28
// Object Struct
29
extern ObjectFXSpinRay *FXSpinRay;
30
31
// Standard Entity Events
32
void FXSpinRay_Update(void);
33
void FXSpinRay_LateUpdate(void);
34
void FXSpinRay_StaticUpdate(void);
35
void FXSpinRay_Draw(void);
36
void FXSpinRay_Create(void *data);
37
void FXSpinRay_StageLoad(void);
38
#if GAME_INCLUDE_EDITOR
39
void FXSpinRay_EditorDraw(void);
40
void FXSpinRay_EditorLoad(void);
41
#endif
42
void FXSpinRay_Serialize(void);
43
44
// Extra Entity Functions
45
void FXSpinRay_State_FadeIn(void);
46
void FXSpinRay_State_Spinning(void);
47
void FXSpinRay_State_FadeOut(void);
48
49
#endif //! OBJ_FXSPINRAY_H
50
51