// Constructor internal Lump(Stream data, string name, int offset, int length) { // Initialize this.stream = new ClippedStream(data, offset, length); this.offset = offset; this.length = length; // Make name this.name = name.ToUpperInvariant(); }
internal Tile(Stream data, int index, int width, int height, int offsetx, int offsety, int dataoffset, int datalength) { // Initialize this.index = index; this.width = width; this.height = height; this.offsetx = offsetx; this.offsety = offsety; this.stream = new ClippedStream(data, dataoffset, datalength); }