// Default constructor: disassemble texture public unsafe Texture(byte *byteptr_t, int offset, int size, string _TPK, Database.Underground1 db) { this.Database = db; this._located_at = offset; this._size_of_block = size; this._parent_TPK = _TPK; this.PaletteOffset = 0; this._padding = 1; this.Disassemble(byteptr_t + this._located_at); }
// Default constructor: create new texture from file. public Texture(string CName, string _TPK, string filename, Database.Underground1 db) { this.Database = db; this._collection_name = CName; this._parent_TPK = _TPK; this.BinKey = Bin.Hash(CName); this.PaletteOffset = 0; this._padding = 1; this.Initialize(filename); }
// Default constructor: disassemble suninfo public unsafe SunInfo(IntPtr byteptr_t, string CName, Database.Underground1 db) { this.Database = db; this._collection_name = CName; this.SUNLAYER1 = new SunLayer(); this.SUNLAYER2 = new SunLayer(); this.SUNLAYER3 = new SunLayer(); this.SUNLAYER4 = new SunLayer(); this.SUNLAYER5 = new SunLayer(); this.SUNLAYER6 = new SunLayer(); this.Disassemble((byte *)byteptr_t); }
// Default constructor: create new suninfo public SunInfo(string CName, Database.Underground1 db) { this.Database = db; this.CollectionName = CName; this.SUNLAYER1 = new SunLayer(); this.SUNLAYER2 = new SunLayer(); this.SUNLAYER3 = new SunLayer(); this.SUNLAYER4 = new SunLayer(); this.SUNLAYER5 = new SunLayer(); this.SUNLAYER6 = new SunLayer(); Map.BinKeys[Bin.Hash(CName)] = CName; }
// Default constructor: disassemble frontend group public FNGroup(byte[] data, Database.Underground1 db) { this.Database = db; this.Disassemble(data); }
// Default constructor: disassemble material public unsafe Material(IntPtr byteptr_t, string CName, Database.Underground1 db) { this.Database = db; this._collection_name = CName; this.Disassemble((byte *)byteptr_t); }
// Default constructor: create new material public Material(string CName, Database.Underground1 db) { this.Database = db; this.CollectionName = CName; Map.BinKeys[Bin.Hash(CName)] = CName; }
// Default constructor: disassemble string block public unsafe STRBlock(byte *strptr, byte *labptr, int strlen, int lablen, Database.Underground1 db) { this.Database = db; this.Disassemble(strptr, strlen); this.DisperseLabels(labptr, lablen); }