public override void Read(BinaryReader reader, Resource resource) { Resource = resource; if (!resource.ContainsBlockType(BlockType.NTRO)) { var kv3 = new BinaryKV3 { Offset = Offset, Size = Size, }; kv3.Read(reader, resource); Data = kv3.Data; BackingData = kv3; } else { var ntro = new NTRO { Offset = Offset, Size = Size, }; ntro.Read(reader, resource); Data = ntro.Output; BackingData = ntro; } }
public override void Read(BinaryReader reader, Resource resource) { base.Read(reader, resource); _layoutContent = resource.GetBlockByType(BlockType.LaCo) as BinaryKV3; }
public override void Read(BinaryReader reader, Resource resource) { base.Read(reader, resource); SourceMap = resource.GetBlockByType(BlockType.SrMa) as BinaryKV3; }