Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Global/InvisibleBlock.h
338 views
1
#ifndef OBJ_INVISIBLEBLOCK_H
2
#define OBJ_INVISIBLEBLOCK_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectInvisibleBlock {
8
RSDK_OBJECT
9
uint16 aniFrames;
10
Animator animator;
11
};
12
13
// Entity Class
14
struct EntityInvisibleBlock {
15
RSDK_ENTITY
16
uint8 width;
17
uint8 height;
18
PlaneFilterTypes planeFilter;
19
bool32 noCrush;
20
bool32 activeNormal;
21
bool32 timeAttackOnly;
22
bool32 noChibi;
23
Hitbox hitbox;
24
};
25
26
// Object Struct
27
extern ObjectInvisibleBlock *InvisibleBlock;
28
29
// Standard Entity Events
30
void InvisibleBlock_Update(void);
31
void InvisibleBlock_LateUpdate(void);
32
void InvisibleBlock_StaticUpdate(void);
33
void InvisibleBlock_Draw(void);
34
void InvisibleBlock_Create(void *data);
35
void InvisibleBlock_StageLoad(void);
36
#if GAME_INCLUDE_EDITOR
37
void InvisibleBlock_EditorDraw(void);
38
void InvisibleBlock_EditorLoad(void);
39
#endif
40
void InvisibleBlock_Serialize(void);
41
42
// Extra Entity Functions
43
void InvisibleBlock_DrawSprites(void);
44
45
#endif //! OBJ_INVISIBLEBLOCK_H
46
47