Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SPZ/Letterboard.h
338 views
1
#ifndef OBJ_LETTERBOARD_H
2
#define OBJ_LETTERBOARD_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectLetterboard {
8
RSDK_OBJECT
9
Hitbox hitboxBoard;
10
uint16 aniFrames;
11
uint16 sfxLetterTurn;
12
uint16 sfxWin;
13
};
14
15
// Entity Class
16
struct EntityLetterboard {
17
RSDK_ENTITY
18
StateMachine(state);
19
bool32 controller;
20
uint8 letterID;
21
int32 spinSpeed;
22
int32 timer;
23
Animator animatorFront;
24
Animator animatorBack;
25
};
26
27
// Object Struct
28
extern ObjectLetterboard *Letterboard;
29
30
// Standard Entity Events
31
void Letterboard_Update(void);
32
void Letterboard_LateUpdate(void);
33
void Letterboard_StaticUpdate(void);
34
void Letterboard_Draw(void);
35
void Letterboard_Create(void *data);
36
void Letterboard_StageLoad(void);
37
#if GAME_INCLUDE_EDITOR
38
void Letterboard_EditorDraw(void);
39
void Letterboard_EditorLoad(void);
40
#endif
41
void Letterboard_Serialize(void);
42
43
// Extra Entity Functions
44
void Letterboard_State_Controller(void);
45
void Letterboard_State_CheckPlayerSpin(void);
46
void Letterboard_State_Spun(void);
47
48
#endif //! OBJ_LETTERBOARD_H
49
50