def __init__(self, name, size, memview): assert name == b"MINA" super().__init__(name, size, memview) strlength = unpack_uint32(self._data, 0) self.res_name = self._data[4 : 4 + strlength] self.animation_data = self._data[4 + strlength :]
def __init__(self, name, size, memview): assert name == b"TXET" super().__init__(name, size, memview, section_offset=0x54) self.res_name = self._header[0x00:0x10] self.width = unpack_uint32(self._header, 0x10) self.height = unpack_uint32(self._header, 0x14) self.unknown1 = unpack_uint32(self._header, 0x18) self.unknown2 = unpack_uint32(self._header, 0x1C) self.tex_type = self._header[0x20:0x28] self.draw_type = self._header[0x28:0x30] # draw type is usually A8R8G8B8 in BW1 self.unknowns = [unpack_uint32(self._header, 0x30 + i * 4) for i in range(8)]
def __init__(self, name, size, memview): assert name == b"FEQT" super().__init__(name, size, memview) strlength = unpack_uint32(self._data, 0) self.res_name = self._data[4 : 4 + strlength] self.particle_data = self._data[4 + strlength :]
def __init__(self, name, size, memview): assert name == b"DNOS" strlength = unpack_uint32(memview, offset=0) offset = 4 + strlength super().__init__(name, size, memview, section_offset=offset) self.filename = self._header[4 : 4 + strlength]
def __init__(self, name, size, memview): assert name == b"LDOM" strlength = unpack_uint32(memview, 0) super().__init__(name, size, memview, section_offset=4 + strlength) assert self.entries[0].name == b"LDOM" and len(self.entries) == 1 # self.entries[0] = self.modeldata = self.entries[0].as_section(cls=ModelSubsection) self.res_name = self._header[4 : 4 + strlength]
def get_rxet_size(header): return 4 + unpack_uint32(header, 0)
def __init__(self, name, size, memview): super().__init__(name, size, memview) strlength = unpack_uint32(self._data, 0) self.res_name = self._data[4 : 4 + strlength] self.script_data = self._data[4 + strlength :]
def __init__(self, name, size, memview): assert name == b"HFSB" super().__init__(name, size, memview, section_offset=4) self.count = unpack_uint32(self._header, 0x00)