public CombinedTextureLayersBlock(TNAMBlock textureNameBlock, List <TLAYBlock> textureBlocks, List <OLAYBlock> objectBlocks = null, DatFile dataFile = null) { this.TextureNameBlock = textureNameBlock; this.textureBlocks = textureBlocks ?? throw new ArgumentNullException(nameof(textureBlocks)); this.objectBlocks = objectBlocks; this.dataFileRef = dataFile; }
public TLAYBlock(BinaryReader r, TNAMBlock textureBlock) { TextureNameBlock = textureBlock; _ = r.ReadInt32(); LayerNumber = r.ReadInt32(); Width = r.ReadInt32(); Height = r.ReadInt32(); UnknownField1 = r.ReadInt32(); UnknownField2 = r.ReadInt32(); RawTileTextureIDs = new List <byte>(r.ReadBytes(Width * Height * sizeof(UInt16))); }