def pack_from_bsp(self, bsp: BSP) -> None: """Pack files found in BSP data (excluding entities).""" for static_prop in bsp.static_prop_models(): self.pack_file(static_prop, FileType.MODEL) for mat in bsp.read_texture_names(): self.pack_file('materials/{}.vmt'.format(mat.lower()), FileType.MATERIAL)
def pack_from_bsp(self, bsp: BSP) -> None: """Pack files found in BSP data (excluding entities).""" for prop in bsp.static_props(): # Static props obviously only use one skin. self.pack_file(prop.model, FileType.MODEL, skinset={prop.skin}) for mat in bsp.read_texture_names(): self.pack_file('materials/{}.vmt'.format(mat.lower()), FileType.MATERIAL)