Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/MMZ/PlaneSeeSaw.h
338 views
1
#ifndef OBJ_PLANESEESAW_H
2
#define OBJ_PLANESEESAW_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectPlaneSeeSaw {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
uint16 sfxSpring;
11
uint16 sfxFlipper;
12
};
13
14
// Entity Class
15
struct EntityPlaneSeeSaw {
16
RSDK_ENTITY
17
StateMachine(state);
18
int32 unused;
19
int32 seeSawPos;
20
Animator platformAnimator;
21
Animator swingAnimator;
22
Animator weightAnimator;
23
};
24
25
// Object Struct
26
extern ObjectPlaneSeeSaw *PlaneSeeSaw;
27
28
// Standard Entity Events
29
void PlaneSeeSaw_Update(void);
30
void PlaneSeeSaw_LateUpdate(void);
31
void PlaneSeeSaw_StaticUpdate(void);
32
void PlaneSeeSaw_Draw(void);
33
void PlaneSeeSaw_Create(void *data);
34
void PlaneSeeSaw_StageLoad(void);
35
#if GAME_INCLUDE_EDITOR
36
void PlaneSeeSaw_EditorDraw(void);
37
void PlaneSeeSaw_EditorLoad(void);
38
#endif
39
void PlaneSeeSaw_Serialize(void);
40
41
// Extra Entity Functions
42
void PlaneSeeSaw_State_WaitForPlayer(void);
43
void PlaneSeeSaw_State_PlayerPushDown(void);
44
void PlaneSeeSaw_State_Launch(void);
45
46
void PlaneSeeSaw_PlayerState_ToBG(void);
47
void PlaneSeeSaw_PlayerState_ToFG(void);
48
49
#endif //! OBJ_PLANESEESAW_H
50
51