-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fc2853
commit 57f2d86
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//------------------------------------------------ | ||
//--- 010 Editor v13.0.1 Binary Template | ||
// | ||
// File: | ||
// Authors: | ||
// Version: | ||
// Purpose: | ||
// Category: | ||
// File Mask: | ||
// ID Bytes: | ||
// History: | ||
//------------------------------------------------ | ||
|
||
LittleEndian(); | ||
|
||
local int C_PRM = 0xFF0000; | ||
local int C_HASH = 0xFFFF00; | ||
local int C_NODE = 0x0000FF; | ||
|
||
char magic[6]; | ||
|
||
ushort unk0; | ||
|
||
ushort stringTableOffset; | ||
ushort unk1; | ||
|
||
typedef struct { | ||
ushort tableOffset; | ||
ushort tableCount; | ||
|
||
typedef struct { | ||
ushort materialOffset; | ||
ushort materialCount; | ||
ushort unk; | ||
ushort size; | ||
} Material; | ||
|
||
local uint tmp = FTell(); | ||
FSeek(tableOffset << 2); | ||
|
||
Material materials[tableCount]; | ||
|
||
FSeek(tmp); | ||
} MaterialTable <bgcolor=C_PRM>; | ||
|
||
MaterialTable materialTable; | ||
|