Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/SSZ/FlowerPod.h
338 views
1
#ifndef OBJ_FLOWERPOD_H
2
#define OBJ_FLOWERPOD_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectFlowerPod {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
Hitbox hitboxPod;
11
int32 unused;
12
uint16 sfxExplosion;
13
uint16 sfxTwinkle;
14
};
15
16
// Entity Class
17
struct EntityFlowerPod {
18
RSDK_ENTITY
19
StateMachine(state);
20
int32 timer;
21
Vector2 startPos;
22
Animator stemAnimator;
23
Animator podAnimator;
24
};
25
26
// Object Struct
27
extern ObjectFlowerPod *FlowerPod;
28
29
// Standard Entity Events
30
void FlowerPod_Update(void);
31
void FlowerPod_LateUpdate(void);
32
void FlowerPod_StaticUpdate(void);
33
void FlowerPod_Draw(void);
34
void FlowerPod_Create(void *data);
35
void FlowerPod_StageLoad(void);
36
#if GAME_INCLUDE_EDITOR
37
void FlowerPod_EditorDraw(void);
38
void FlowerPod_EditorLoad(void);
39
#endif
40
void FlowerPod_Serialize(void);
41
42
// Extra Entity Functions
43
void FlowerPod_SpawnSeeds(void);
44
45
void FlowerPod_State_Pod(void);
46
void FlowerPod_State_Exploding(void);
47
void FlowerPod_State_Destroyed(void);
48
void FlowerPod_State_SeedFall(void);
49
void FlowerPod_State_SpawnBeanstalk(void);
50
void FlowerPod_State_FlowerGrow(void);
51
void FlowerPod_State_Flower(void);
52
53
#endif //! OBJ_FLOWERPOD_H
54
55