"ugh!": "sound_cache_file_gestalt", "uise": "user_interface_sounds_definition", "unic": "multilingual_unicode_string_list", "unit": "unit", "vehc": "vehicle_collection", "vehi": "vehicle", "vtsh": "vertex_shader", "wacd": "gui_widget_animation_collection_definition", "wclr": "gui_widget_color_animation_definition", "weap": "weapon", "wezr": "game_engine_settings_definition", "wfon": "gui_widget_font_animation_definition", "wgan": "gui_widget_animation_definition", "wgtz": "user_interface_globals_definition", "whip": "cellular_automata2d", "wigl": "user_interface_shared_globals_definition", "wind": "wind", "wpos": "gui_widget_position_animation_definition", "wrot": "gui_widget_rotation_animation_definition", "wscl": "gui_widget_scale_animation_definition", "wspr": "gui_widget_sprite_animation_definition", "wtuv": "gui_widget_texture_coordinate_animation_definition", "zone": "cache_file_resource_gestalt", } for tag_cls in h3_tag_class_fcc_to_ext: h3_tag_class_fcc_to_be_int[tag_cls] = fourcc_to_int(tag_cls) h3_tag_class_be_int_to_fcc[fourcc_to_int(tag_cls)] = tag_cls h3_tag_class_fcc_to_le_int[tag_cls] = fourcc_to_int(tag_cls) h3_tag_class_le_int_to_fcc[fourcc_to_int(tag_cls)] = tag_cls
from reclaimer.constants import * from reclaimer.util import fourcc_to_int # maps tag class four character codes(fccs) in # their string encoding to their int encoding. stubbs_tag_class_fcc_to_be_int = {} stubbs_tag_class_fcc_to_le_int = {} # maps tag class four character codes(fccs) in # their int encoding to their string encoding. stubbs_tag_class_be_int_to_fcc = {} stubbs_tag_class_le_int_to_fcc = {} stubbs_tag_class_fcc_to_ext = dict(terr="terrain", vege="vegetation", imef="image_effect", **tag_class_fcc_to_ext) for tag_cls in stubbs_tag_class_fcc_to_ext: stubbs_tag_class_fcc_to_be_int[tag_cls] = fourcc_to_int(tag_cls) stubbs_tag_class_be_int_to_fcc[fourcc_to_int(tag_cls)] = tag_cls stubbs_tag_class_fcc_to_le_int[tag_cls] = fourcc_to_int(tag_cls) stubbs_tag_class_le_int_to_fcc[fourcc_to_int(tag_cls)] = tag_cls