Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Unused/Wisp.h
338 views
1
#ifndef OBJ_WISP_H
2
#define OBJ_WISP_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectWisp {
8
RSDK_OBJECT
9
Hitbox hitboxBadnik;
10
uint16 aniFrames;
11
};
12
13
// Entity Class
14
struct EntityWisp {
15
RSDK_ENTITY
16
StateMachine(state);
17
int32 timer;
18
int32 buzzCount;
19
EntityPlayer *target;
20
Vector2 startPos;
21
Animator bodyAnimator;
22
Animator wingAnimator;
23
};
24
25
// Object Entity
26
extern ObjectWisp *Wisp;
27
28
// Standard Entity Events
29
void Wisp_Update(void);
30
void Wisp_LateUpdate(void);
31
void Wisp_StaticUpdate(void);
32
void Wisp_Draw(void);
33
void Wisp_Create(void *data);
34
void Wisp_StageLoad(void);
35
#if GAME_INCLUDE_EDITOR
36
void Wisp_EditorDraw(void);
37
void Wisp_EditorLoad(void);
38
#endif
39
void Wisp_Serialize(void);
40
41
// Extra Entity Functions
42
void Wisp_DebugSpawn(void);
43
void Wisp_DebugDraw(void);
44
45
void Wisp_HandlePlayerInteractions(void);
46
void Wisp_CheckOffScreen(void);
47
48
void Wisp_State_Init(void);
49
void Wisp_State_Idle(void);
50
void Wisp_State_FlyTowardTarget(void);
51
void Wisp_State_FlyAway(void);
52
53
#endif //! OBJ_WISP_H
54
55