Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/PGZ/PSZEggman.h
338 views
1
#ifndef OBJ_PSZEGGMAN_H
2
#define OBJ_PSZEGGMAN_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectPSZEggman {
8
RSDK_OBJECT
9
uint16 controlFrames;
10
uint16 aniFrames;
11
};
12
13
// Entity Class
14
struct EntityPSZEggman {
15
RSDK_ENTITY
16
StateMachine(state);
17
int32 timer;
18
Vector2 eggmanPos;
19
EntityPhantomRuby *ruby;
20
Animator eggmanAnimator;
21
Animator terminalAnimator;
22
Animator displayAnimator;
23
Animator scanlinesAnimator;
24
};
25
26
// Object Struct
27
extern ObjectPSZEggman *PSZEggman;
28
29
// Standard Entity Events
30
void PSZEggman_Update(void);
31
void PSZEggman_LateUpdate(void);
32
void PSZEggman_StaticUpdate(void);
33
void PSZEggman_Draw(void);
34
void PSZEggman_Create(void *data);
35
void PSZEggman_StageLoad(void);
36
#if GAME_INCLUDE_EDITOR
37
void PSZEggman_EditorDraw(void);
38
void PSZEggman_EditorLoad(void);
39
#endif
40
void PSZEggman_Serialize(void);
41
42
// Extra Entity Functions
43
void PSZEggman_State_TurnRound(void);
44
45
#endif //! OBJ_PSZEGGMAN_H
46
47