-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMeta.bt
More file actions
33 lines (30 loc) · 723 Bytes
/
Meta.bt
File metadata and controls
33 lines (30 loc) · 723 Bytes
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
#ifndef _META
#define _META
#include "NTextureFormat.bt"
typedef struct(FourCC type, uint64 size, uint64 fileStart)
{
local uint64 start <format=hex, hidden=true> = FTell();
switch (type)
{
case "TXTR":
STextureMetaData meta(fileStart);
break;
case "CMDL":
SModelMetaData meta(fileStart);
break;
case "MTRL":
SMaterialMetaData meta(fileStart);
break;
case "ROOM":
SGameAreaMetaData meta(fileStart);
break;
case "LTPB":
SLightProbeMetaData meta(fileStart);
break;
default:
byte data[size];
break;
}
FSeek(start + size);
} Meta <open=true>;
#endif// _META