Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SPZ/PopcornKernel.h
338 views
1
#ifndef OBJ_POPCORNKERNEL_H
2
#define OBJ_POPCORNKERNEL_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectPopcornKernel {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
};
11
12
// Entity Class
13
struct EntityPopcornKernel {
14
RSDK_ENTITY
15
StateMachine(state);
16
int32 unused1;
17
int32 angleVel;
18
int32 gravityStrength;
19
int32 maxY;
20
Vector2 bounds;
21
Animator animator;
22
};
23
24
// Object Struct
25
extern ObjectPopcornKernel *PopcornKernel;
26
27
// Standard Entity Events
28
void PopcornKernel_Update(void);
29
void PopcornKernel_LateUpdate(void);
30
void PopcornKernel_StaticUpdate(void);
31
void PopcornKernel_Draw(void);
32
void PopcornKernel_Create(void *data);
33
void PopcornKernel_StageLoad(void);
34
#if GAME_INCLUDE_EDITOR
35
void PopcornKernel_EditorDraw(void);
36
void PopcornKernel_EditorLoad(void);
37
#endif
38
void PopcornKernel_Serialize(void);
39
40
// Extra Entity Functions
41
void PopcornKernel_State_BounceAround(void);
42
void PopcornKernel_State_RiseUp(void);
43
void PopcornKernel_State_FallDown(void);
44
45
#endif //! OBJ_POPCORNKERNEL_H
46
47