public LODInfoEntry(int APIversion, EventHandler handler, byte level, DataTypeFlags destTexture, IEnumerable <LODAsset> lodAssets) : base(APIversion, handler) { this.level = level; this.destTexture = destTexture; this.lodAssets = new LODAssetList(handler, lodAssets); }
void Parse(Stream s) { BinaryReader r = new BinaryReader(s); level = r.ReadByte(); destTexture = (DataTypeFlags)r.ReadUInt32(); lodAssets = new LODAssetList(handler, s); }
internal void UnParse(Stream s) { BinaryWriter w = new BinaryWriter(s); w.Write(level); w.Write((uint)destTexture); if (lodAssets == null) { lodAssets = new LODAssetList(handler); } lodAssets.UnParse(s); }
public void Parse(Stream s) { BinaryReader r = new BinaryReader(s); this.level = r.ReadByte(); this.unused = r.ReadUInt32(); lodAssetList = new LODAssetList(null, s); byte[] byteList = new byte[r.ReadByte()]; for (int i = 0; i < byteList.Length; i++) { byteList[i] = r.ReadByte(); } lodKeyList = new ByteIndexList(handler, byteList, tgiList); }
public void UnParse(Stream s) { BinaryWriter w = new BinaryWriter(s); w.Write(this.level); w.Write(this.unused); if (this.lodAssetList == null) { this.lodAssetList = new LODAssetList(handler); } this.lodAssetList.UnParse(s); if (this.lodKeyList == null) { this.lodKeyList = new ByteIndexList(handler, new CountedTGIBlockList(handler)); } w.Write((byte)lodKeyList.Count); foreach (byte b in lodKeyList) { w.Write(b); } }
public LODInfoEntry(int APIversion, EventHandler handler) : base(APIversion, handler) { lodAssets = new LODAssetList(handler); }
public LODInfoEntry(EventHandler handler) : base(handler) { lodAssets = new LODAssetList(handler); }