-
Notifications
You must be signed in to change notification settings - Fork 21
/
metadataV4.h
46 lines (39 loc) · 1.02 KB
/
metadataV4.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
struct FunctionCallArgV4 {
char name[STRING_SIZE];
char type[STRING_SIZE];
};
struct EventArgV4 {
char name[STRING_SIZE];
char args[COLLECTION_SIZE][STRING_SIZE];
char documentation[COLLECTION_SIZE][STRING_SIZE];
};
struct CallV4 {
char name[STRING_SIZE];
FunctionCallArgV4 args[STRING_SIZE];
char documentation[COLLECTION_SIZE][STRING_SIZE];
};
struct FuncTypeV4 {
// 0 - plain, 1 - map
unsigned int type;
unsigned int hasher;
char key1[STRING_SIZE];
char key2[STRING_SIZE];
};
struct StorageV4 {
char name[STRING_SIZE];
// 0 - Optional, 1 - Default
unsigned char modifier;
FuncTypeV4 type;
char fallback[STRING_SIZE];
char documentation[COLLECTION_SIZE][STRING_SIZE];
};
struct ModuleV4 {
char name[STRING_SIZE];
char prefix[STRING_SIZE];
unique_ptr<StorageV4> storage[COLLECTION_SIZE];
unique_ptr<CallV4> call[COLLECTION_SIZE];
unique_ptr<EventArgV4> ev[COLLECTION_SIZE];
};
struct MDV4 {
unique_ptr<ModuleV4> module[COLLECTION_SIZE];
};