-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPeltLayer.cs
More file actions
40 lines (37 loc) · 1.07 KB
/
PeltLayer.cs
File metadata and controls
40 lines (37 loc) · 1.07 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace TS4SimRipper
{
public class PeltLayer
{
uint version;
uint unknown;
float sortOrder;
byte usage;
uint nameKey;
ulong textureKey;
ulong thumbnailKey;
CASP.PartTag[] categoryTags;
public ulong TextureKey { get { return this.textureKey; } }
public PeltLayer(BinaryReader br)
{
br.BaseStream.Position = 0;
this.version = br.ReadUInt32();
this.unknown = br.ReadUInt32();
this.sortOrder = br.ReadSingle();
this.usage = br.ReadByte();
this.nameKey = br.ReadUInt32();
this.textureKey = br.ReadUInt64();
this.thumbnailKey = br.ReadUInt64();
uint tagCount = br.ReadUInt32();
categoryTags = new CASP.PartTag[tagCount];
for (int i = 0; i < tagCount; i++)
{
categoryTags[i] = new CASP.PartTag(br, 4);
}
}
}
}