Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Puyo/PuyoAttack.h
338 views
1
#ifndef OBJ_PUYOATTACK_H
2
#define OBJ_PUYOATTACK_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectPuyoAttack {
8
RSDK_OBJECT
9
uint16 sfxAttack;
10
uint16 aniFrames;
11
};
12
13
// Entity Class
14
struct EntityPuyoAttack {
15
RSDK_ENTITY
16
int32 playerID;
17
int32 delay;
18
int32 radius;
19
int32 score;
20
Vector2 targetPos;
21
Animator animator;
22
};
23
24
// Object Struct
25
extern ObjectPuyoAttack *PuyoAttack;
26
27
// Standard Entity Events
28
void PuyoAttack_Update(void);
29
void PuyoAttack_LateUpdate(void);
30
void PuyoAttack_StaticUpdate(void);
31
void PuyoAttack_Draw(void);
32
void PuyoAttack_Create(void *data);
33
void PuyoAttack_StageLoad(void);
34
#if GAME_INCLUDE_EDITOR
35
void PuyoAttack_EditorDraw(void);
36
void PuyoAttack_EditorLoad(void);
37
#endif
38
void PuyoAttack_Serialize(void);
39
40
// Extra Entity Functions
41
42
#endif //! OBJ_PUYOATTACK_H
43
44