Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Cutscene/FXTrail.h
338 views
1
#ifndef OBJ_FXTRAIL_H
2
#define OBJ_FXTRAIL_H
3
4
#include "Game.h"
5
6
// Extras lol
7
#define FXTRAIL_TRACK_COUNT 7
8
9
// Object Class
10
struct ObjectFXTrail {
11
RSDK_OBJECT
12
};
13
14
// Entity Class
15
struct EntityFXTrail {
16
RSDK_ENTITY
17
Entity *parent;
18
Vector2 currentPos;
19
Vector2 statePos[FXTRAIL_TRACK_COUNT];
20
int32 currentRotation;
21
int32 stateRotation[FXTRAIL_TRACK_COUNT];
22
uint8 currentDirection;
23
uint8 stateDirection[FXTRAIL_TRACK_COUNT];
24
uint8 currentVisible;
25
uint8 stateVisible[FXTRAIL_TRACK_COUNT];
26
Animator currentAnim;
27
Animator stateAnim[FXTRAIL_TRACK_COUNT];
28
Animator *animatorPtr;
29
int32 baseAlpha;
30
};
31
32
// Object Struct
33
extern ObjectFXTrail *FXTrail;
34
35
// Standard Entity Events
36
void FXTrail_Update(void);
37
void FXTrail_LateUpdate(void);
38
void FXTrail_StaticUpdate(void);
39
void FXTrail_Draw(void);
40
void FXTrail_Create(void *data);
41
void FXTrail_StageLoad(void);
42
#if GAME_INCLUDE_EDITOR
43
void FXTrail_EditorDraw(void);
44
void FXTrail_EditorLoad(void);
45
#endif
46
void FXTrail_Serialize(void);
47
48
// Extra Entity Functions
49
50
#endif //! OBJ_FXTRAIL_H
51
52