-
Notifications
You must be signed in to change notification settings - Fork 21
/
metadataV6.h
58 lines (49 loc) · 1.31 KB
/
metadataV6.h
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
struct FunctionCallArgV6 {
char name[STRING_SIZE];
char type[STRING_SIZE];
};
struct EventArgV6 {
char name[STRING_SIZE];
char args[COLLECTION_SIZE][STRING_SIZE];
char documentation[COLLECTION_SIZE][STRING_SIZE];
};
struct CallV6 {
char name[STRING_SIZE];
FunctionCallArgV6 args[STRING_SIZE];
char documentation[COLLECTION_SIZE][STRING_SIZE];
};
struct FuncTypeV6 {
// 0 - plain, 1 - map, 2 - doublemap
unsigned int type;
char hasher[STRING_SIZE];
char key1[STRING_SIZE];
char key2[STRING_SIZE];
char value[STRING_SIZE];
char key2hasher[STRING_SIZE];
bool isLinked;
};
struct StorageV6 {
char name[STRING_SIZE];
// 0 - Optional, 1 - Default
unsigned char modifier;
FuncTypeV6 type;
char fallback[STRING_SIZE];
char documentation[COLLECTION_SIZE][STRING_SIZE];
};
struct ConstV6 {
char name[STRING_SIZE];
char type[STRING_SIZE];
char value[STRING_SIZE];
char documentation[COLLECTION_SIZE][STRING_SIZE];
};
struct ModuleV6 {
char name[STRING_SIZE];
char prefix[STRING_SIZE];
unique_ptr<StorageV6> storage[COLLECTION_SIZE];
unique_ptr<CallV6> call[COLLECTION_SIZE];
unique_ptr<EventArgV6> ev[COLLECTION_SIZE];
ConstV6 cons[COLLECTION_SIZE];
};
struct MDV6 {
unique_ptr<ModuleV6> module[COLLECTION_SIZE];
};