forked from WerWolv/ImHex-Patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCrashlvl.hexpat
75 lines (64 loc) · 1.16 KB
/
Crashlvl.hexpat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#pragma description Crash Bandicoot - Back in Time (fan game) User created flashback tapes level format
#include <type/magic.pat>
#include <std/string.pat>
#include <std/array.pat>
// Crash Bandicoot - Back in Time (fan game) user created tapes
// author AdventureT
struct Header {
type::Magic<"CRASHLVL"> magic;
u8 version;
std::string::SizedString<u8> levelName;
std::string::SizedString<u8> author;
};
enum Music : u32 {
None,
BonusBGM,
CrashCreatorBGM,
MainMenuBGM,
WarpRoomBGM,
Level01BGM,
Level02BGM,
Level03BGM,
Level04BGM,
Level05BGM,
SewerBGM,
EgyptBGM,
NBrioBGM
};
enum Type : u32 {
Unset,
Flashback,
Trial
};
enum Time : u32 {
Night,
Day,
Storm,
Dawn
};
enum Terrain : u32 {
None,
Machines,
Trees,
Waterfall,
Snow,
Fortress,
};
struct Options {
Type type;
Time time;
Terrain terrain;
Music music;
};
struct Object {
std::string::SizedString<u8> objName;
u32 x;
u32 y;
};
struct Objects{
u32 objCount;
std::Array<Object, objCount> objArray;
};
Header header @ 0x0;
Options options @ $;
Objects objects @ $;