From 49e935a9ff4392e44ab71f5aa7f6066bb78c6b10 Mon Sep 17 00:00:00 2001 From: Gtker Date: Sun, 16 Oct 2022 23:09:26 +0200 Subject: [PATCH] Add From<> for compatible types for PrimaryKeys --- rxml/src/rust_printer/mod.rs | 45 ++++++++++++------- rxml/src/types.rs | 10 ++++- wow_dbc/CHANGELOG.md | 2 +- wow_dbc/src/tbc_tables/animation_data.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/area_poi.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/area_table.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/area_trigger.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/attack_anim_kits.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/auction_house.rs | 28 ++++++++++++ .../src/tbc_tables/bank_bag_slot_prices.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/battlemaster_list.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/camera_shakes.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/cfg_categories.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/cfg_configs.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/char_hair_geosets.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/char_hair_textures.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/char_sections.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/char_start_outfit.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/char_titles.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/chat_channels.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/chat_profanity.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/chr_classes.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/chr_races.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/cinematic_camera.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/cinematic_sequences.rs | 28 ++++++++++++ .../src/tbc_tables/creature_display_info.rs | 28 ++++++++++++ .../tbc_tables/creature_display_info_extra.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/creature_family.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/creature_model_data.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/creature_sound_data.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/creature_spell_data.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/creature_type.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/death_thud_lookups.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/declined_word.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/declined_word_cases.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/durability_costs.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/durability_quality.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/emotes.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/emotes_text.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/emotes_text_data.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/emotes_text_sound.rs | 28 ++++++++++++ .../src/tbc_tables/environmental_damage.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/exhaustion.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/faction.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/faction_group.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/faction_template.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/footprint_textures.rs | 28 ++++++++++++ .../src/tbc_tables/footstep_terrain_lookup.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/game_object_art_kit.rs | 28 ++++++++++++ .../tbc_tables/game_object_display_info.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/game_tips.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/gem_properties.rs | 28 ++++++++++++ .../tbc_tables/gm_survey_current_survey.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/gm_survey_questions.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/gm_survey_surveys.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/gm_ticket_category.rs | 28 ++++++++++++ .../src/tbc_tables/ground_effect_doodad.rs | 28 ++++++++++++ .../src/tbc_tables/ground_effect_texture.rs | 28 ++++++++++++ .../src/tbc_tables/helmet_geoset_vis_data.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_bag_family.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_cond_ext_costs.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_display_info.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_extended_cost.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_group_sounds.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_pet_food.rs | 28 ++++++++++++ .../src/tbc_tables/item_random_properties.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_random_suffix.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_set.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_visual_effects.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/item_visuals.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/language_words.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/languages.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/lfg_dungeons.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/light.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/light_float_band.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/light_int_band.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/light_params.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/light_skybox.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/liquid_type.rs | 28 ++++++++++++ .../tbc_tables/loading_screen_taxi_splines.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/loading_screens.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/lock.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/lock_type.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/mail_template.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/map.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/material.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/name_gen.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/names_profanity.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/names_reserved.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/npc_sounds.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/package.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/page_text_material.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/particle_color.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/pet_loyalty.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/pet_personality.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/petition_type.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/quest_info.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/quest_sort.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/rand_prop_points.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/resistances.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/server_messages.rs | 28 ++++++++++++ .../src/tbc_tables/sheathe_sound_lookups.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/skill_costs_data.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/skill_line.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/skill_line_ability.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/skill_line_category.rs | 28 ++++++++++++ .../src/tbc_tables/skill_race_class_info.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/skill_tiers.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/sound_ambience.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/sound_entries.rs | 28 ++++++++++++ .../tbc_tables/sound_provider_preferences.rs | 28 ++++++++++++ .../tbc_tables/sound_sample_preferences.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/sound_water_type.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spam_messages.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_cast_times.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_category.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_chain_effects.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_dispel_type.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_duration.rs | 28 ++++++++++++ .../tbc_tables/spell_effect_camera_shakes.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_focus_object.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_icon.rs | 28 ++++++++++++ .../src/tbc_tables/spell_item_enchantment.rs | 28 ++++++++++++ .../spell_item_enchantment_condition.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_mechanic.rs | 28 ++++++++++++ .../src/tbc_tables/spell_missile_motion.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_radius.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_range.rs | 28 ++++++++++++ .../src/tbc_tables/spell_shapeshift_form.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_visual.rs | 28 ++++++++++++ .../tbc_tables/spell_visual_effect_name.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/spell_visual_kit.rs | 28 ++++++++++++ .../spell_visual_precast_transitions.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/stable_slot_prices.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/startup_strings.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/stationery.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/string_lookups.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/summon_properties.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/talent.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/talent_tab.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/taxi_nodes.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/taxi_path.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/taxi_path_node.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/terrain_type_sounds.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/totem_category.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/transport_animation.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/transport_physics.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/ui_sound_lookups.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/unit_blood.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/unit_blood_levels.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/video_hardware.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/vocal_ui_sounds.rs | 28 ++++++++++++ .../src/tbc_tables/weapon_impact_sounds.rs | 28 ++++++++++++ .../src/tbc_tables/weapon_swing_sounds2.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/weather.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/wmo_area_table.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/world_map_area.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/world_map_continent.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/world_map_overlay.rs | 28 ++++++++++++ .../src/tbc_tables/world_map_transforms.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/world_safe_locs.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/world_state_ui.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/wow_error_strings.rs | 28 ++++++++++++ .../src/tbc_tables/zone_intro_music_table.rs | 28 ++++++++++++ wow_dbc/src/tbc_tables/zone_music.rs | 28 ++++++++++++ wow_dbc/src/vanilla_tables/animation_data.rs | 14 ++++++ wow_dbc/src/vanilla_tables/area_poi.rs | 14 ++++++ wow_dbc/src/vanilla_tables/area_table.rs | 14 ++++++ wow_dbc/src/vanilla_tables/area_trigger.rs | 14 ++++++ .../src/vanilla_tables/attack_anim_kits.rs | 14 ++++++ .../src/vanilla_tables/attack_anim_types.rs | 14 ++++++ wow_dbc/src/vanilla_tables/auction_house.rs | 14 ++++++ .../vanilla_tables/bank_bag_slot_prices.rs | 14 ++++++ wow_dbc/src/vanilla_tables/camera_shakes.rs | 14 ++++++ wow_dbc/src/vanilla_tables/cfg_configs.rs | 14 ++++++ .../src/vanilla_tables/char_hair_geosets.rs | 14 ++++++ .../src/vanilla_tables/char_hair_textures.rs | 14 ++++++ wow_dbc/src/vanilla_tables/char_sections.rs | 14 ++++++ .../src/vanilla_tables/char_start_outfit.rs | 14 ++++++ .../character_create_cameras.rs | 14 ++++++ wow_dbc/src/vanilla_tables/chat_channels.rs | 14 ++++++ wow_dbc/src/vanilla_tables/chat_profanity.rs | 14 ++++++ wow_dbc/src/vanilla_tables/chr_classes.rs | 14 ++++++ wow_dbc/src/vanilla_tables/chr_races.rs | 14 ++++++ .../src/vanilla_tables/cinematic_camera.rs | 14 ++++++ .../src/vanilla_tables/cinematic_sequences.rs | 14 ++++++ .../vanilla_tables/creature_display_info.rs | 14 ++++++ .../creature_display_info_extra.rs | 14 ++++++ wow_dbc/src/vanilla_tables/creature_family.rs | 14 ++++++ .../src/vanilla_tables/creature_model_data.rs | 14 ++++++ .../src/vanilla_tables/creature_sound_data.rs | 14 ++++++ .../src/vanilla_tables/creature_spell_data.rs | 14 ++++++ wow_dbc/src/vanilla_tables/creature_type.rs | 14 ++++++ .../src/vanilla_tables/death_thud_lookups.rs | 14 ++++++ .../src/vanilla_tables/durability_costs.rs | 14 ++++++ .../src/vanilla_tables/durability_quality.rs | 14 ++++++ wow_dbc/src/vanilla_tables/emotes.rs | 14 ++++++ wow_dbc/src/vanilla_tables/emotes_text.rs | 14 ++++++ .../src/vanilla_tables/emotes_text_data.rs | 14 ++++++ .../src/vanilla_tables/emotes_text_sound.rs | 14 ++++++ .../vanilla_tables/environmental_damage.rs | 14 ++++++ wow_dbc/src/vanilla_tables/exhaustion.rs | 14 ++++++ wow_dbc/src/vanilla_tables/faction.rs | 14 ++++++ wow_dbc/src/vanilla_tables/faction_group.rs | 14 ++++++ .../src/vanilla_tables/faction_template.rs | 14 ++++++ .../src/vanilla_tables/footprint_textures.rs | 14 ++++++ .../vanilla_tables/footstep_terrain_lookup.rs | 14 ++++++ .../src/vanilla_tables/game_object_art_kit.rs | 14 ++++++ .../game_object_display_info.rs | 14 ++++++ wow_dbc/src/vanilla_tables/game_tips.rs | 14 ++++++ .../src/vanilla_tables/gm_survey_questions.rs | 14 ++++++ .../src/vanilla_tables/gm_survey_surveys.rs | 14 ++++++ .../src/vanilla_tables/gm_ticket_category.rs | 14 ++++++ .../vanilla_tables/ground_effect_doodad.rs | 14 ++++++ .../vanilla_tables/ground_effect_texture.rs | 14 ++++++ .../vanilla_tables/helmet_geoset_vis_data.rs | 14 ++++++ wow_dbc/src/vanilla_tables/item_bag_family.rs | 14 ++++++ wow_dbc/src/vanilla_tables/item_class.rs | 14 ++++++ .../src/vanilla_tables/item_display_info.rs | 14 ++++++ .../src/vanilla_tables/item_group_sounds.rs | 14 ++++++ wow_dbc/src/vanilla_tables/item_pet_food.rs | 14 ++++++ .../vanilla_tables/item_random_properties.rs | 14 ++++++ wow_dbc/src/vanilla_tables/item_set.rs | 28 ++++++++++++ .../src/vanilla_tables/item_visual_effects.rs | 14 ++++++ wow_dbc/src/vanilla_tables/item_visuals.rs | 14 ++++++ wow_dbc/src/vanilla_tables/language_words.rs | 14 ++++++ wow_dbc/src/vanilla_tables/languages.rs | 14 ++++++ wow_dbc/src/vanilla_tables/lfg_dungeons.rs | 14 ++++++ wow_dbc/src/vanilla_tables/light.rs | 14 ++++++ .../src/vanilla_tables/light_float_band.rs | 14 ++++++ wow_dbc/src/vanilla_tables/light_int_band.rs | 14 ++++++ wow_dbc/src/vanilla_tables/light_params.rs | 14 ++++++ wow_dbc/src/vanilla_tables/light_skybox.rs | 14 ++++++ wow_dbc/src/vanilla_tables/liquid_type.rs | 14 ++++++ .../loading_screen_taxi_splines.rs | 14 ++++++ wow_dbc/src/vanilla_tables/loading_screens.rs | 14 ++++++ wow_dbc/src/vanilla_tables/lock.rs | 14 ++++++ wow_dbc/src/vanilla_tables/lock_type.rs | 14 ++++++ wow_dbc/src/vanilla_tables/mail_template.rs | 14 ++++++ wow_dbc/src/vanilla_tables/map.rs | 14 ++++++ wow_dbc/src/vanilla_tables/material.rs | 14 ++++++ wow_dbc/src/vanilla_tables/name_gen.rs | 14 ++++++ wow_dbc/src/vanilla_tables/names_profanity.rs | 14 ++++++ wow_dbc/src/vanilla_tables/names_reserved.rs | 14 ++++++ wow_dbc/src/vanilla_tables/npc_sounds.rs | 14 ++++++ wow_dbc/src/vanilla_tables/package.rs | 14 ++++++ .../src/vanilla_tables/page_text_material.rs | 14 ++++++ wow_dbc/src/vanilla_tables/pet_loyalty.rs | 14 ++++++ wow_dbc/src/vanilla_tables/pet_personality.rs | 14 ++++++ wow_dbc/src/vanilla_tables/quest_info.rs | 14 ++++++ wow_dbc/src/vanilla_tables/quest_sort.rs | 14 ++++++ wow_dbc/src/vanilla_tables/resistances.rs | 14 ++++++ wow_dbc/src/vanilla_tables/server_messages.rs | 14 ++++++ .../vanilla_tables/sheathe_sound_lookups.rs | 14 ++++++ .../src/vanilla_tables/skill_costs_data.rs | 14 ++++++ wow_dbc/src/vanilla_tables/skill_line.rs | 14 ++++++ .../src/vanilla_tables/skill_line_ability.rs | 14 ++++++ .../src/vanilla_tables/skill_line_category.rs | 14 ++++++ .../vanilla_tables/skill_race_class_info.rs | 14 ++++++ wow_dbc/src/vanilla_tables/skill_tiers.rs | 14 ++++++ wow_dbc/src/vanilla_tables/sound_ambience.rs | 14 ++++++ .../sound_character_macro_lines.rs | 14 ++++++ wow_dbc/src/vanilla_tables/sound_entries.rs | 14 ++++++ .../sound_provider_preferences.rs | 14 ++++++ .../sound_sample_preferences.rs | 14 ++++++ .../src/vanilla_tables/sound_water_type.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spam_messages.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell.rs | 14 ++++++ .../src/vanilla_tables/spell_aura_names.rs | 14 ++++++ .../src/vanilla_tables/spell_cast_times.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell_category.rs | 14 ++++++ .../src/vanilla_tables/spell_chain_effects.rs | 14 ++++++ .../src/vanilla_tables/spell_dispel_type.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell_duration.rs | 14 ++++++ .../spell_effect_camera_shakes.rs | 14 ++++++ .../src/vanilla_tables/spell_effect_names.rs | 14 ++++++ .../src/vanilla_tables/spell_focus_object.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell_icon.rs | 14 ++++++ .../vanilla_tables/spell_item_enchantment.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell_mechanic.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell_radius.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell_range.rs | 14 ++++++ .../vanilla_tables/spell_shapeshift_form.rs | 14 ++++++ wow_dbc/src/vanilla_tables/spell_visual.rs | 14 ++++++ .../spell_visual_effect_name.rs | 14 ++++++ .../src/vanilla_tables/spell_visual_kit.rs | 14 ++++++ .../spell_visual_precast_transitions.rs | 14 ++++++ .../src/vanilla_tables/stable_slot_prices.rs | 14 ++++++ wow_dbc/src/vanilla_tables/startup_strings.rs | 14 ++++++ wow_dbc/src/vanilla_tables/stationery.rs | 14 ++++++ wow_dbc/src/vanilla_tables/string_lookups.rs | 14 ++++++ wow_dbc/src/vanilla_tables/talent.rs | 14 ++++++ wow_dbc/src/vanilla_tables/talent_tab.rs | 14 ++++++ wow_dbc/src/vanilla_tables/taxi_nodes.rs | 14 ++++++ wow_dbc/src/vanilla_tables/taxi_path.rs | 14 ++++++ wow_dbc/src/vanilla_tables/taxi_path_node.rs | 14 ++++++ wow_dbc/src/vanilla_tables/terrain_type.rs | 14 ++++++ .../src/vanilla_tables/terrain_type_sounds.rs | 14 ++++++ .../src/vanilla_tables/transport_animation.rs | 14 ++++++ .../src/vanilla_tables/ui_sound_lookups.rs | 14 ++++++ wow_dbc/src/vanilla_tables/unit_blood.rs | 14 ++++++ .../src/vanilla_tables/unit_blood_levels.rs | 14 ++++++ wow_dbc/src/vanilla_tables/video_hardware.rs | 14 ++++++ wow_dbc/src/vanilla_tables/vocal_ui_sounds.rs | 14 ++++++ .../vanilla_tables/weapon_impact_sounds.rs | 14 ++++++ .../vanilla_tables/weapon_swing_sounds2.rs | 14 ++++++ wow_dbc/src/vanilla_tables/wmo_area_table.rs | 14 ++++++ wow_dbc/src/vanilla_tables/world_map_area.rs | 14 ++++++ .../src/vanilla_tables/world_map_continent.rs | 14 ++++++ .../src/vanilla_tables/world_map_overlay.rs | 14 ++++++ wow_dbc/src/vanilla_tables/world_safe_locs.rs | 14 ++++++ wow_dbc/src/vanilla_tables/world_state_ui.rs | 14 ++++++ .../src/vanilla_tables/wow_error_strings.rs | 14 ++++++ .../vanilla_tables/zone_intro_music_table.rs | 14 ++++++ wow_dbc/src/vanilla_tables/zone_music.rs | 14 ++++++ wow_dbc/src/wrath_tables/achievement.rs | 28 ++++++++++++ .../src/wrath_tables/achievement_category.rs | 28 ++++++++++++ .../src/wrath_tables/achievement_criteria.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/animation_data.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/area_group.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/area_poi.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/area_table.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/area_trigger.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/attack_anim_kits.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/auction_house.rs | 28 ++++++++++++ .../src/wrath_tables/bank_bag_slot_prices.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/banned_add_ons.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/barber_shop_style.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/battlemaster_list.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/camera_shakes.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/cfg_categories.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/cfg_configs.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/char_hair_geosets.rs | 28 ++++++++++++ .../src/wrath_tables/char_hair_textures.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/char_sections.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/char_start_outfit.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/char_titles.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/chat_channels.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/chat_profanity.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/chr_classes.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/chr_races.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/cinematic_camera.rs | 28 ++++++++++++ .../src/wrath_tables/cinematic_sequences.rs | 28 ++++++++++++ .../src/wrath_tables/creature_display_info.rs | 28 ++++++++++++ .../creature_display_info_extra.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/creature_family.rs | 28 ++++++++++++ .../src/wrath_tables/creature_model_data.rs | 28 ++++++++++++ .../wrath_tables/creature_movement_info.rs | 28 ++++++++++++ .../src/wrath_tables/creature_sound_data.rs | 28 ++++++++++++ .../src/wrath_tables/creature_spell_data.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/creature_type.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/currency_category.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/currency_types.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/dance_moves.rs | 28 ++++++++++++ .../src/wrath_tables/death_thud_lookups.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/declined_word.rs | 28 ++++++++++++ .../src/wrath_tables/declined_word_cases.rs | 28 ++++++++++++ .../wrath_tables/destructible_model_data.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/dungeon_encounter.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/dungeon_map.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/dungeon_map_chunk.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/durability_costs.rs | 28 ++++++++++++ .../src/wrath_tables/durability_quality.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/emotes.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/emotes_text.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/emotes_text_data.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/emotes_text_sound.rs | 28 ++++++++++++ .../src/wrath_tables/environmental_damage.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/exhaustion.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/faction.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/faction_group.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/faction_template.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/file_data.rs | 28 ++++++++++++ .../src/wrath_tables/footprint_textures.rs | 28 ++++++++++++ .../wrath_tables/footstep_terrain_lookup.rs | 28 ++++++++++++ .../src/wrath_tables/game_object_art_kit.rs | 28 ++++++++++++ .../wrath_tables/game_object_display_info.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/game_tips.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/gem_properties.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/glyph_properties.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/glyph_slot.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/gm_survey_answers.rs | 28 ++++++++++++ .../wrath_tables/gm_survey_current_survey.rs | 28 ++++++++++++ .../src/wrath_tables/gm_survey_questions.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/gm_survey_surveys.rs | 28 ++++++++++++ .../src/wrath_tables/gm_ticket_category.rs | 28 ++++++++++++ .../src/wrath_tables/ground_effect_doodad.rs | 28 ++++++++++++ .../src/wrath_tables/ground_effect_texture.rs | 28 ++++++++++++ .../gt_oct_class_combat_rating_scalar.rs | 28 ++++++++++++ .../wrath_tables/helmet_geoset_vis_data.rs | 28 ++++++++++++ .../src/wrath_tables/holiday_descriptions.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/holiday_names.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/holidays.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/item.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/item_bag_family.rs | 28 ++++++++++++ .../src/wrath_tables/item_cond_ext_costs.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/item_display_info.rs | 28 ++++++++++++ .../src/wrath_tables/item_extended_cost.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/item_group_sounds.rs | 28 ++++++++++++ .../src/wrath_tables/item_limit_category.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/item_pet_food.rs | 28 ++++++++++++ .../src/wrath_tables/item_purchase_group.rs | 28 ++++++++++++ .../wrath_tables/item_random_properties.rs | 28 ++++++++++++ .../src/wrath_tables/item_random_suffix.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/item_set.rs | 28 ++++++++++++ .../src/wrath_tables/item_visual_effects.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/item_visuals.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/language_words.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/languages.rs | 28 ++++++++++++ .../src/wrath_tables/lfg_dungeon_expansion.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/lfg_dungeon_group.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/lfg_dungeons.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/light.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/light_float_band.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/light_int_band.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/light_params.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/light_skybox.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/liquid_material.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/liquid_type.rs | 28 ++++++++++++ .../loading_screen_taxi_splines.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/loading_screens.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/lock.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/lock_type.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/mail_template.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/map.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/map_difficulty.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/material.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/movie.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/movie_variation.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/name_gen.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/names_profanity.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/names_reserved.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/npc_sounds.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/object_effect.rs | 28 ++++++++++++ .../src/wrath_tables/object_effect_group.rs | 28 ++++++++++++ .../wrath_tables/object_effect_modifier.rs | 28 ++++++++++++ .../src/wrath_tables/object_effect_package.rs | 28 ++++++++++++ .../object_effect_package_elem.rs | 28 ++++++++++++ .../src/wrath_tables/override_spell_data.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/package.rs | 28 ++++++++++++ .../src/wrath_tables/page_text_material.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/particle_color.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/pet_personality.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/petition_type.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/power_display.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/pvp_difficulty.rs | 28 ++++++++++++ .../src/wrath_tables/quest_faction_reward.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/quest_info.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/quest_sort.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/quest_xp.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/rand_prop_points.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/resistances.rs | 28 ++++++++++++ .../wrath_tables/scaling_stat_distribution.rs | 28 ++++++++++++ .../src/wrath_tables/scaling_stat_values.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/screen_effect.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/server_messages.rs | 28 ++++++++++++ .../src/wrath_tables/sheathe_sound_lookups.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/skill_costs_data.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/skill_line.rs | 28 ++++++++++++ .../src/wrath_tables/skill_line_ability.rs | 28 ++++++++++++ .../src/wrath_tables/skill_line_category.rs | 28 ++++++++++++ .../src/wrath_tables/skill_race_class_info.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/skill_tiers.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/sound_ambience.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/sound_emitters.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/sound_entries.rs | 28 ++++++++++++ .../wrath_tables/sound_entries_advanced.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/sound_filter.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/sound_filter_elem.rs | 28 ++++++++++++ .../sound_provider_preferences.rs | 28 ++++++++++++ .../wrath_tables/sound_sample_preferences.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/sound_water_type.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spam_messages.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_cast_times.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_category.rs | 28 ++++++++++++ .../src/wrath_tables/spell_chain_effects.rs | 28 ++++++++++++ .../spell_description_variables.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_difficulty.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_dispel_type.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_duration.rs | 28 ++++++++++++ .../spell_effect_camera_shakes.rs | 28 ++++++++++++ .../src/wrath_tables/spell_focus_object.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_icon.rs | 28 ++++++++++++ .../wrath_tables/spell_item_enchantment.rs | 28 ++++++++++++ .../spell_item_enchantment_condition.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_mechanic.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_missile.rs | 28 ++++++++++++ .../src/wrath_tables/spell_missile_motion.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_radius.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_range.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_rune_cost.rs | 28 ++++++++++++ .../src/wrath_tables/spell_shapeshift_form.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_visual.rs | 28 ++++++++++++ .../wrath_tables/spell_visual_effect_name.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/spell_visual_kit.rs | 28 ++++++++++++ .../spell_visual_kit_area_model.rs | 28 ++++++++++++ .../spell_visual_kit_model_attach.rs | 28 ++++++++++++ .../spell_visual_precast_transitions.rs | 28 ++++++++++++ .../src/wrath_tables/stable_slot_prices.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/startup_strings.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/stationery.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/string_lookups.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/summon_properties.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/talent.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/talent_tab.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/taxi_nodes.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/taxi_path.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/taxi_path_node.rs | 28 ++++++++++++ .../wrath_tables/team_contribution_points.rs | 28 ++++++++++++ .../src/wrath_tables/terrain_type_sounds.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/totem_category.rs | 28 ++++++++++++ .../src/wrath_tables/transport_animation.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/transport_physics.rs | 28 ++++++++++++ .../src/wrath_tables/transport_rotation.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/ui_sound_lookups.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/unit_blood.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/unit_blood_levels.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/vehicle.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/vehicle_seat.rs | 28 ++++++++++++ .../src/wrath_tables/vehicle_ui_ind_seat.rs | 28 ++++++++++++ .../src/wrath_tables/vehicle_ui_indicator.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/video_hardware.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/vocal_ui_sounds.rs | 28 ++++++++++++ .../src/wrath_tables/weapon_impact_sounds.rs | 28 ++++++++++++ .../src/wrath_tables/weapon_swing_sounds2.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/weather.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/wmo_area_table.rs | 28 ++++++++++++ .../src/wrath_tables/world_chunk_sounds.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/world_map_area.rs | 28 ++++++++++++ .../src/wrath_tables/world_map_continent.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/world_map_overlay.rs | 28 ++++++++++++ .../src/wrath_tables/world_map_transforms.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/world_safe_locs.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/world_state_ui.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/wow_error_strings.rs | 28 ++++++++++++ .../wrath_tables/zone_intro_music_table.rs | 28 ++++++++++++ wow_dbc/src/wrath_tables/zone_music.rs | 28 ++++++++++++ 540 files changed, 12989 insertions(+), 18 deletions(-) diff --git a/rxml/src/rust_printer/mod.rs b/rxml/src/rust_printer/mod.rs index 7941063..727eeff 100644 --- a/rxml/src/rust_printer/mod.rs +++ b/rxml/src/rust_printer/mod.rs @@ -139,11 +139,9 @@ fn create_row(s: &mut Writer, d: &DbcDescription, o: &Objects) { } fn create_primary_keys(s: &mut Writer, d: &DbcDescription) { - for key in d.primary_keys() { - let native_ty = match key.ty() { - Type::PrimaryKey { ty, .. } => ty.rust_str(), - _ => unreachable!(), - }; + for (key, ty) in d.primary_keys() { + let native_ty = ty.rust_str(); + if not_pascal_case_name(d.name()) { s.wln("#[allow(non_camel_case_types)]"); } @@ -161,17 +159,34 @@ fn create_primary_keys(s: &mut Writer, d: &DbcDescription) { ); }); - s.bodyn( - format!( - "impl From<{native_ty}> for {primary_key}", - primary_key = key.ty().rust_str() - ), - |s| { - s.bodyn(format!("fn from(v: {native_ty}) -> Self"), |s| { + create_primary_key_froms(s, key, ty); + } +} + +fn create_primary_key_froms(s: &mut Writer, key: &Field, ty: &Type) { + let primary_key = key.ty().rust_str(); + + let from_tys = match ty { + Type::I8 => [Type::I8].as_slice(), + Type::I16 => [Type::I8, Type::I16, Type::U8].as_slice(), + Type::I32 => [Type::I8, Type::I16, Type::I32, Type::U8, Type::U16].as_slice(), + Type::U8 => [Type::U8].as_slice(), + Type::U16 => [Type::U8, Type::U16].as_slice(), + Type::U32 => [Type::U8, Type::U16, Type::U32].as_slice(), + _ => unreachable!("invalid primary key"), + }; + + for t in from_tys { + let t = t.rust_str(); + s.bodyn(format!("impl From<{t}> for {primary_key}",), |s| { + s.bodyn(format!("fn from(v: {t}) -> Self"), |s| { + if t == ty.rust_str() { s.wln("Self::new(v)"); - }); - }, - ); + } else { + s.wln("Self::new(v.into())"); + } + }); + }); } } diff --git a/rxml/src/types.rs b/rxml/src/types.rs index a5f3ccb..c127971 100644 --- a/rxml/src/types.rs +++ b/rxml/src/types.rs @@ -34,10 +34,16 @@ impl DbcDescription { &self.flags } - pub fn primary_keys(&self) -> Vec<&Field> { + pub fn primary_keys(&self) -> Vec<(&Field, &Type)> { self.fields .iter() - .filter(|a| matches!(a.ty(), Type::PrimaryKey { .. })) + .filter_map(|a| { + if let Type::PrimaryKey { ty, .. } = a.ty() { + Some((a, ty.as_ref())) + } else { + None + } + }) .collect() } diff --git a/wow_dbc/CHANGELOG.md b/wow_dbc/CHANGELOG.md index c420b79..23ac81a 100644 --- a/wow_dbc/CHANGELOG.md +++ b/wow_dbc/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added * `Hash`, `PartialOrd`, `Ord`, `Default` traits for types that support it. -* `From<{native_ty}` for primary keys. +* `From<{native_ty}` and all integer types with a `From<{native_ty}>` for primary keys. ### Changed diff --git a/wow_dbc/src/tbc_tables/animation_data.rs b/wow_dbc/src/tbc_tables/animation_data.rs index 86dfc83..d692114 100644 --- a/wow_dbc/src/tbc_tables/animation_data.rs +++ b/wow_dbc/src/tbc_tables/animation_data.rs @@ -185,6 +185,20 @@ impl AnimationDataKey { } +impl From for AnimationDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AnimationDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AnimationDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -192,6 +206,20 @@ impl From for AnimationDataKey { } +impl From for AnimationDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AnimationDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AnimationDataRow { pub id: AnimationDataKey, diff --git a/wow_dbc/src/tbc_tables/area_poi.rs b/wow_dbc/src/tbc_tables/area_poi.rs index f11c90f..62bec7b 100644 --- a/wow_dbc/src/tbc_tables/area_poi.rs +++ b/wow_dbc/src/tbc_tables/area_poi.rs @@ -213,6 +213,20 @@ impl AreaPOIKey { } +impl From for AreaPOIKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaPOIKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaPOIKey { fn from(v: i32) -> Self { Self::new(v) @@ -220,6 +234,20 @@ impl From for AreaPOIKey { } +impl From for AreaPOIKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaPOIKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct AreaPOIRow { pub id: AreaPOIKey, diff --git a/wow_dbc/src/tbc_tables/area_table.rs b/wow_dbc/src/tbc_tables/area_table.rs index 448ea55..5db46e8 100644 --- a/wow_dbc/src/tbc_tables/area_table.rs +++ b/wow_dbc/src/tbc_tables/area_table.rs @@ -248,6 +248,20 @@ impl AreaTableKey { } +impl From for AreaTableKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTableKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaTableKey { fn from(v: i32) -> Self { Self::new(v) @@ -255,6 +269,20 @@ impl From for AreaTableKey { } +impl From for AreaTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct AreaTableRow { pub id: AreaTableKey, diff --git a/wow_dbc/src/tbc_tables/area_trigger.rs b/wow_dbc/src/tbc_tables/area_trigger.rs index cdd969a..0c375cd 100644 --- a/wow_dbc/src/tbc_tables/area_trigger.rs +++ b/wow_dbc/src/tbc_tables/area_trigger.rs @@ -162,6 +162,20 @@ impl AreaTriggerKey { } +impl From for AreaTriggerKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTriggerKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaTriggerKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for AreaTriggerKey { } +impl From for AreaTriggerKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTriggerKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct AreaTriggerRow { pub id: AreaTriggerKey, diff --git a/wow_dbc/src/tbc_tables/attack_anim_kits.rs b/wow_dbc/src/tbc_tables/attack_anim_kits.rs index 31f3a08..6c0ed66 100644 --- a/wow_dbc/src/tbc_tables/attack_anim_kits.rs +++ b/wow_dbc/src/tbc_tables/attack_anim_kits.rs @@ -137,6 +137,20 @@ impl AttackAnimKitsKey { } +impl From for AttackAnimKitsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AttackAnimKitsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AttackAnimKitsKey { fn from(v: i32) -> Self { Self::new(v) @@ -144,6 +158,20 @@ impl From for AttackAnimKitsKey { } +impl From for AttackAnimKitsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AttackAnimKitsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AttackAnimKitsRow { pub id: AttackAnimKitsKey, diff --git a/wow_dbc/src/tbc_tables/auction_house.rs b/wow_dbc/src/tbc_tables/auction_house.rs index 559d99d..b2b5795 100644 --- a/wow_dbc/src/tbc_tables/auction_house.rs +++ b/wow_dbc/src/tbc_tables/auction_house.rs @@ -164,6 +164,20 @@ impl AuctionHouseKey { } +impl From for AuctionHouseKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AuctionHouseKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AuctionHouseKey { fn from(v: i32) -> Self { Self::new(v) @@ -171,6 +185,20 @@ impl From for AuctionHouseKey { } +impl From for AuctionHouseKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AuctionHouseKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AuctionHouseRow { pub id: AuctionHouseKey, diff --git a/wow_dbc/src/tbc_tables/bank_bag_slot_prices.rs b/wow_dbc/src/tbc_tables/bank_bag_slot_prices.rs index 6f348fe..0334bfc 100644 --- a/wow_dbc/src/tbc_tables/bank_bag_slot_prices.rs +++ b/wow_dbc/src/tbc_tables/bank_bag_slot_prices.rs @@ -116,6 +116,20 @@ impl BankBagSlotPricesKey { } +impl From for BankBagSlotPricesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BankBagSlotPricesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for BankBagSlotPricesKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for BankBagSlotPricesKey { } +impl From for BankBagSlotPricesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BankBagSlotPricesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct BankBagSlotPricesRow { pub id: BankBagSlotPricesKey, diff --git a/wow_dbc/src/tbc_tables/battlemaster_list.rs b/wow_dbc/src/tbc_tables/battlemaster_list.rs index d5a067f..41d6bc0 100644 --- a/wow_dbc/src/tbc_tables/battlemaster_list.rs +++ b/wow_dbc/src/tbc_tables/battlemaster_list.rs @@ -201,6 +201,20 @@ impl BattlemasterListKey { } +impl From for BattlemasterListKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BattlemasterListKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for BattlemasterListKey { fn from(v: i32) -> Self { Self::new(v) @@ -208,6 +222,20 @@ impl From for BattlemasterListKey { } +impl From for BattlemasterListKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BattlemasterListKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct BattlemasterListRow { pub id: BattlemasterListKey, diff --git a/wow_dbc/src/tbc_tables/camera_shakes.rs b/wow_dbc/src/tbc_tables/camera_shakes.rs index 346f94e..ea3a9f0 100644 --- a/wow_dbc/src/tbc_tables/camera_shakes.rs +++ b/wow_dbc/src/tbc_tables/camera_shakes.rs @@ -158,6 +158,20 @@ impl CameraShakesKey { } +impl From for CameraShakesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CameraShakesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CameraShakesKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for CameraShakesKey { } +impl From for CameraShakesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CameraShakesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CameraShakesRow { pub id: CameraShakesKey, diff --git a/wow_dbc/src/tbc_tables/cfg_categories.rs b/wow_dbc/src/tbc_tables/cfg_categories.rs index a80c683..b013f7b 100644 --- a/wow_dbc/src/tbc_tables/cfg_categories.rs +++ b/wow_dbc/src/tbc_tables/cfg_categories.rs @@ -165,6 +165,20 @@ impl Cfg_CategoriesKey { } +impl From for Cfg_CategoriesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_CategoriesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Cfg_CategoriesKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for Cfg_CategoriesKey { } +impl From for Cfg_CategoriesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_CategoriesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Cfg_CategoriesRow { diff --git a/wow_dbc/src/tbc_tables/cfg_configs.rs b/wow_dbc/src/tbc_tables/cfg_configs.rs index 1bf475d..b865012 100644 --- a/wow_dbc/src/tbc_tables/cfg_configs.rs +++ b/wow_dbc/src/tbc_tables/cfg_configs.rs @@ -132,6 +132,20 @@ impl Cfg_ConfigsKey { } +impl From for Cfg_ConfigsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_ConfigsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Cfg_ConfigsKey { fn from(v: i32) -> Self { Self::new(v) @@ -139,6 +153,20 @@ impl From for Cfg_ConfigsKey { } +impl From for Cfg_ConfigsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_ConfigsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Cfg_ConfigsRow { diff --git a/wow_dbc/src/tbc_tables/char_hair_geosets.rs b/wow_dbc/src/tbc_tables/char_hair_geosets.rs index 8f518bd..aab9681 100644 --- a/wow_dbc/src/tbc_tables/char_hair_geosets.rs +++ b/wow_dbc/src/tbc_tables/char_hair_geosets.rs @@ -145,6 +145,20 @@ impl CharHairGeosetsKey { } +impl From for CharHairGeosetsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairGeosetsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharHairGeosetsKey { fn from(v: i32) -> Self { Self::new(v) @@ -152,6 +166,20 @@ impl From for CharHairGeosetsKey { } +impl From for CharHairGeosetsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairGeosetsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharHairGeosetsRow { pub id: CharHairGeosetsKey, diff --git a/wow_dbc/src/tbc_tables/char_hair_textures.rs b/wow_dbc/src/tbc_tables/char_hair_textures.rs index 4684efa..127b197 100644 --- a/wow_dbc/src/tbc_tables/char_hair_textures.rs +++ b/wow_dbc/src/tbc_tables/char_hair_textures.rs @@ -159,6 +159,20 @@ impl CharHairTexturesKey { } +impl From for CharHairTexturesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairTexturesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharHairTexturesKey { fn from(v: i32) -> Self { Self::new(v) @@ -166,6 +180,20 @@ impl From for CharHairTexturesKey { } +impl From for CharHairTexturesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairTexturesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharHairTexturesRow { pub id: CharHairTexturesKey, diff --git a/wow_dbc/src/tbc_tables/char_sections.rs b/wow_dbc/src/tbc_tables/char_sections.rs index c3c0ca4..9c6b737 100644 --- a/wow_dbc/src/tbc_tables/char_sections.rs +++ b/wow_dbc/src/tbc_tables/char_sections.rs @@ -210,6 +210,20 @@ impl CharSectionsKey { } +impl From for CharSectionsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharSectionsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharSectionsKey { fn from(v: i32) -> Self { Self::new(v) @@ -217,6 +231,20 @@ impl From for CharSectionsKey { } +impl From for CharSectionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharSectionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharSectionsRow { pub id: CharSectionsKey, diff --git a/wow_dbc/src/tbc_tables/char_start_outfit.rs b/wow_dbc/src/tbc_tables/char_start_outfit.rs index 88ed00f..24572da 100644 --- a/wow_dbc/src/tbc_tables/char_start_outfit.rs +++ b/wow_dbc/src/tbc_tables/char_start_outfit.rs @@ -169,6 +169,20 @@ impl CharStartOutfitKey { } +impl From for CharStartOutfitKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharStartOutfitKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharStartOutfitKey { fn from(v: i32) -> Self { Self::new(v) @@ -176,6 +190,20 @@ impl From for CharStartOutfitKey { } +impl From for CharStartOutfitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharStartOutfitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharStartOutfitRow { pub id: CharStartOutfitKey, diff --git a/wow_dbc/src/tbc_tables/char_titles.rs b/wow_dbc/src/tbc_tables/char_titles.rs index 67f6626..8e847ca 100644 --- a/wow_dbc/src/tbc_tables/char_titles.rs +++ b/wow_dbc/src/tbc_tables/char_titles.rs @@ -165,6 +165,20 @@ impl CharTitlesKey { } +impl From for CharTitlesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharTitlesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharTitlesKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for CharTitlesKey { } +impl From for CharTitlesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharTitlesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharTitlesRow { pub id: CharTitlesKey, diff --git a/wow_dbc/src/tbc_tables/chat_channels.rs b/wow_dbc/src/tbc_tables/chat_channels.rs index 7fd5568..2a04e35 100644 --- a/wow_dbc/src/tbc_tables/chat_channels.rs +++ b/wow_dbc/src/tbc_tables/chat_channels.rs @@ -165,6 +165,20 @@ impl ChatChannelsKey { } +impl From for ChatChannelsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatChannelsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChatChannelsKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for ChatChannelsKey { } +impl From for ChatChannelsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatChannelsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChatChannelsRow { pub id: ChatChannelsKey, diff --git a/wow_dbc/src/tbc_tables/chat_profanity.rs b/wow_dbc/src/tbc_tables/chat_profanity.rs index bafc88b..46b4ec8 100644 --- a/wow_dbc/src/tbc_tables/chat_profanity.rs +++ b/wow_dbc/src/tbc_tables/chat_profanity.rs @@ -157,6 +157,20 @@ impl ChatProfanityKey { } +impl From for ChatProfanityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatProfanityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChatProfanityKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for ChatProfanityKey { } +impl From for ChatProfanityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatProfanityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChatProfanityRow { pub id: ChatProfanityKey, diff --git a/wow_dbc/src/tbc_tables/chr_classes.rs b/wow_dbc/src/tbc_tables/chr_classes.rs index 4938691..390bb60 100644 --- a/wow_dbc/src/tbc_tables/chr_classes.rs +++ b/wow_dbc/src/tbc_tables/chr_classes.rs @@ -224,6 +224,20 @@ impl ChrClassesKey { } +impl From for ChrClassesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrClassesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChrClassesKey { fn from(v: i32) -> Self { Self::new(v) @@ -231,6 +245,20 @@ impl From for ChrClassesKey { } +impl From for ChrClassesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrClassesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChrClassesRow { pub id: ChrClassesKey, diff --git a/wow_dbc/src/tbc_tables/chr_races.rs b/wow_dbc/src/tbc_tables/chr_races.rs index cc9d56f..169e344 100644 --- a/wow_dbc/src/tbc_tables/chr_races.rs +++ b/wow_dbc/src/tbc_tables/chr_races.rs @@ -340,6 +340,20 @@ impl ChrRacesKey { } +impl From for ChrRacesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrRacesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChrRacesKey { fn from(v: i32) -> Self { Self::new(v) @@ -347,6 +361,20 @@ impl From for ChrRacesKey { } +impl From for ChrRacesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrRacesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct ChrRacesRow { pub id: ChrRacesKey, diff --git a/wow_dbc/src/tbc_tables/cinematic_camera.rs b/wow_dbc/src/tbc_tables/cinematic_camera.rs index a34fbf2..e44ce26 100644 --- a/wow_dbc/src/tbc_tables/cinematic_camera.rs +++ b/wow_dbc/src/tbc_tables/cinematic_camera.rs @@ -175,6 +175,20 @@ impl CinematicCameraKey { } +impl From for CinematicCameraKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicCameraKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CinematicCameraKey { fn from(v: i32) -> Self { Self::new(v) @@ -182,6 +196,20 @@ impl From for CinematicCameraKey { } +impl From for CinematicCameraKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicCameraKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CinematicCameraRow { pub id: CinematicCameraKey, diff --git a/wow_dbc/src/tbc_tables/cinematic_sequences.rs b/wow_dbc/src/tbc_tables/cinematic_sequences.rs index eb766e8..5d90744 100644 --- a/wow_dbc/src/tbc_tables/cinematic_sequences.rs +++ b/wow_dbc/src/tbc_tables/cinematic_sequences.rs @@ -127,6 +127,20 @@ impl CinematicSequencesKey { } +impl From for CinematicSequencesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicSequencesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CinematicSequencesKey { fn from(v: i32) -> Self { Self::new(v) @@ -134,6 +148,20 @@ impl From for CinematicSequencesKey { } +impl From for CinematicSequencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicSequencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CinematicSequencesRow { pub id: CinematicSequencesKey, diff --git a/wow_dbc/src/tbc_tables/creature_display_info.rs b/wow_dbc/src/tbc_tables/creature_display_info.rs index b46e95f..1c94de3 100644 --- a/wow_dbc/src/tbc_tables/creature_display_info.rs +++ b/wow_dbc/src/tbc_tables/creature_display_info.rs @@ -254,6 +254,20 @@ impl CreatureDisplayInfoKey { } +impl From for CreatureDisplayInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureDisplayInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -261,6 +275,20 @@ impl From for CreatureDisplayInfoKey { } +impl From for CreatureDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureDisplayInfoRow { pub id: CreatureDisplayInfoKey, diff --git a/wow_dbc/src/tbc_tables/creature_display_info_extra.rs b/wow_dbc/src/tbc_tables/creature_display_info_extra.rs index 9e4f470..f29ea56 100644 --- a/wow_dbc/src/tbc_tables/creature_display_info_extra.rs +++ b/wow_dbc/src/tbc_tables/creature_display_info_extra.rs @@ -217,6 +217,20 @@ impl CreatureDisplayInfoExtraKey { } +impl From for CreatureDisplayInfoExtraKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoExtraKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureDisplayInfoExtraKey { fn from(v: i32) -> Self { Self::new(v) @@ -224,6 +238,20 @@ impl From for CreatureDisplayInfoExtraKey { } +impl From for CreatureDisplayInfoExtraKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoExtraKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CreatureDisplayInfoExtraRow { pub id: CreatureDisplayInfoExtraKey, diff --git a/wow_dbc/src/tbc_tables/creature_family.rs b/wow_dbc/src/tbc_tables/creature_family.rs index b59aac1..e8de9d0 100644 --- a/wow_dbc/src/tbc_tables/creature_family.rs +++ b/wow_dbc/src/tbc_tables/creature_family.rs @@ -205,6 +205,20 @@ impl CreatureFamilyKey { } +impl From for CreatureFamilyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureFamilyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureFamilyKey { fn from(v: i32) -> Self { Self::new(v) @@ -212,6 +226,20 @@ impl From for CreatureFamilyKey { } +impl From for CreatureFamilyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureFamilyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureFamilyRow { pub id: CreatureFamilyKey, diff --git a/wow_dbc/src/tbc_tables/creature_model_data.rs b/wow_dbc/src/tbc_tables/creature_model_data.rs index 57a0231..efe50c4 100644 --- a/wow_dbc/src/tbc_tables/creature_model_data.rs +++ b/wow_dbc/src/tbc_tables/creature_model_data.rs @@ -276,6 +276,20 @@ impl CreatureModelDataKey { } +impl From for CreatureModelDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureModelDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureModelDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -283,6 +297,20 @@ impl From for CreatureModelDataKey { } +impl From for CreatureModelDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureModelDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureModelDataRow { pub id: CreatureModelDataKey, diff --git a/wow_dbc/src/tbc_tables/creature_sound_data.rs b/wow_dbc/src/tbc_tables/creature_sound_data.rs index befeb4e..77c142b 100644 --- a/wow_dbc/src/tbc_tables/creature_sound_data.rs +++ b/wow_dbc/src/tbc_tables/creature_sound_data.rs @@ -320,6 +320,20 @@ impl CreatureSoundDataKey { } +impl From for CreatureSoundDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSoundDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureSoundDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -327,6 +341,20 @@ impl From for CreatureSoundDataKey { } +impl From for CreatureSoundDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSoundDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureSoundDataRow { pub id: CreatureSoundDataKey, diff --git a/wow_dbc/src/tbc_tables/creature_spell_data.rs b/wow_dbc/src/tbc_tables/creature_spell_data.rs index 9781892..2b3806e 100644 --- a/wow_dbc/src/tbc_tables/creature_spell_data.rs +++ b/wow_dbc/src/tbc_tables/creature_spell_data.rs @@ -129,6 +129,20 @@ impl CreatureSpellDataKey { } +impl From for CreatureSpellDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSpellDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureSpellDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -136,6 +150,20 @@ impl From for CreatureSpellDataKey { } +impl From for CreatureSpellDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSpellDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CreatureSpellDataRow { pub id: CreatureSpellDataKey, diff --git a/wow_dbc/src/tbc_tables/creature_type.rs b/wow_dbc/src/tbc_tables/creature_type.rs index 9bf4824..bd345bc 100644 --- a/wow_dbc/src/tbc_tables/creature_type.rs +++ b/wow_dbc/src/tbc_tables/creature_type.rs @@ -149,6 +149,20 @@ impl CreatureTypeKey { } +impl From for CreatureTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -156,6 +170,20 @@ impl From for CreatureTypeKey { } +impl From for CreatureTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CreatureTypeRow { pub id: CreatureTypeKey, diff --git a/wow_dbc/src/tbc_tables/death_thud_lookups.rs b/wow_dbc/src/tbc_tables/death_thud_lookups.rs index ff66a09..591d153 100644 --- a/wow_dbc/src/tbc_tables/death_thud_lookups.rs +++ b/wow_dbc/src/tbc_tables/death_thud_lookups.rs @@ -139,6 +139,20 @@ impl DeathThudLookupsKey { } +impl From for DeathThudLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeathThudLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DeathThudLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -146,6 +160,20 @@ impl From for DeathThudLookupsKey { } +impl From for DeathThudLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeathThudLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DeathThudLookupsRow { pub id: DeathThudLookupsKey, diff --git a/wow_dbc/src/tbc_tables/declined_word.rs b/wow_dbc/src/tbc_tables/declined_word.rs index c249fd9..101297f 100644 --- a/wow_dbc/src/tbc_tables/declined_word.rs +++ b/wow_dbc/src/tbc_tables/declined_word.rs @@ -150,6 +150,20 @@ impl DeclinedWordKey { } +impl From for DeclinedWordKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DeclinedWordKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for DeclinedWordKey { } +impl From for DeclinedWordKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DeclinedWordRow { pub id: DeclinedWordKey, diff --git a/wow_dbc/src/tbc_tables/declined_word_cases.rs b/wow_dbc/src/tbc_tables/declined_word_cases.rs index f54a063..9923ec1 100644 --- a/wow_dbc/src/tbc_tables/declined_word_cases.rs +++ b/wow_dbc/src/tbc_tables/declined_word_cases.rs @@ -165,6 +165,20 @@ impl DeclinedWordCasesKey { } +impl From for DeclinedWordCasesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordCasesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DeclinedWordCasesKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for DeclinedWordCasesKey { } +impl From for DeclinedWordCasesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordCasesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DeclinedWordCasesRow { pub id: DeclinedWordCasesKey, diff --git a/wow_dbc/src/tbc_tables/durability_costs.rs b/wow_dbc/src/tbc_tables/durability_costs.rs index 7a616ce..abcd233 100644 --- a/wow_dbc/src/tbc_tables/durability_costs.rs +++ b/wow_dbc/src/tbc_tables/durability_costs.rs @@ -129,6 +129,20 @@ impl DurabilityCostsKey { } +impl From for DurabilityCostsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityCostsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DurabilityCostsKey { fn from(v: i32) -> Self { Self::new(v) @@ -136,6 +150,20 @@ impl From for DurabilityCostsKey { } +impl From for DurabilityCostsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityCostsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DurabilityCostsRow { pub id: DurabilityCostsKey, diff --git a/wow_dbc/src/tbc_tables/durability_quality.rs b/wow_dbc/src/tbc_tables/durability_quality.rs index fc731b9..6fc4835 100644 --- a/wow_dbc/src/tbc_tables/durability_quality.rs +++ b/wow_dbc/src/tbc_tables/durability_quality.rs @@ -116,6 +116,20 @@ impl DurabilityQualityKey { } +impl From for DurabilityQualityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityQualityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DurabilityQualityKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for DurabilityQualityKey { } +impl From for DurabilityQualityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityQualityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct DurabilityQualityRow { pub id: DurabilityQualityKey, diff --git a/wow_dbc/src/tbc_tables/emotes.rs b/wow_dbc/src/tbc_tables/emotes.rs index f1f16c6..cde8118 100644 --- a/wow_dbc/src/tbc_tables/emotes.rs +++ b/wow_dbc/src/tbc_tables/emotes.rs @@ -187,6 +187,20 @@ impl EmotesKey { } +impl From for EmotesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesKey { fn from(v: i32) -> Self { Self::new(v) @@ -194,6 +208,20 @@ impl From for EmotesKey { } +impl From for EmotesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesRow { pub id: EmotesKey, diff --git a/wow_dbc/src/tbc_tables/emotes_text.rs b/wow_dbc/src/tbc_tables/emotes_text.rs index b352c15..7dcba8b 100644 --- a/wow_dbc/src/tbc_tables/emotes_text.rs +++ b/wow_dbc/src/tbc_tables/emotes_text.rs @@ -168,6 +168,20 @@ impl EmotesTextKey { } +impl From for EmotesTextKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextKey { fn from(v: i32) -> Self { Self::new(v) @@ -175,6 +189,20 @@ impl From for EmotesTextKey { } +impl From for EmotesTextKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesTextRow { pub id: EmotesTextKey, diff --git a/wow_dbc/src/tbc_tables/emotes_text_data.rs b/wow_dbc/src/tbc_tables/emotes_text_data.rs index 41cd26e..f5c502a 100644 --- a/wow_dbc/src/tbc_tables/emotes_text_data.rs +++ b/wow_dbc/src/tbc_tables/emotes_text_data.rs @@ -142,6 +142,20 @@ impl EmotesTextDataKey { } +impl From for EmotesTextDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for EmotesTextDataKey { } +impl From for EmotesTextDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesTextDataRow { pub id: EmotesTextDataKey, diff --git a/wow_dbc/src/tbc_tables/emotes_text_sound.rs b/wow_dbc/src/tbc_tables/emotes_text_sound.rs index 3396ac9..bdb220c 100644 --- a/wow_dbc/src/tbc_tables/emotes_text_sound.rs +++ b/wow_dbc/src/tbc_tables/emotes_text_sound.rs @@ -140,6 +140,20 @@ impl EmotesTextSoundKey { } +impl From for EmotesTextSoundKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextSoundKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextSoundKey { fn from(v: i32) -> Self { Self::new(v) @@ -147,6 +161,20 @@ impl From for EmotesTextSoundKey { } +impl From for EmotesTextSoundKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextSoundKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesTextSoundRow { pub id: EmotesTextSoundKey, diff --git a/wow_dbc/src/tbc_tables/environmental_damage.rs b/wow_dbc/src/tbc_tables/environmental_damage.rs index ae9ebc1..6f68826 100644 --- a/wow_dbc/src/tbc_tables/environmental_damage.rs +++ b/wow_dbc/src/tbc_tables/environmental_damage.rs @@ -124,6 +124,20 @@ impl EnvironmentalDamageKey { } +impl From for EnvironmentalDamageKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EnvironmentalDamageKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EnvironmentalDamageKey { fn from(v: i32) -> Self { Self::new(v) @@ -131,6 +145,20 @@ impl From for EnvironmentalDamageKey { } +impl From for EnvironmentalDamageKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EnvironmentalDamageKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EnvironmentalDamageRow { pub id: EnvironmentalDamageKey, diff --git a/wow_dbc/src/tbc_tables/exhaustion.rs b/wow_dbc/src/tbc_tables/exhaustion.rs index 1464ccc..534741c 100644 --- a/wow_dbc/src/tbc_tables/exhaustion.rs +++ b/wow_dbc/src/tbc_tables/exhaustion.rs @@ -177,6 +177,20 @@ impl ExhaustionKey { } +impl From for ExhaustionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ExhaustionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ExhaustionKey { fn from(v: i32) -> Self { Self::new(v) @@ -184,6 +198,20 @@ impl From for ExhaustionKey { } +impl From for ExhaustionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ExhaustionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct ExhaustionRow { pub id: ExhaustionKey, diff --git a/wow_dbc/src/tbc_tables/faction.rs b/wow_dbc/src/tbc_tables/faction.rs index a9bd5a0..059693f 100644 --- a/wow_dbc/src/tbc_tables/faction.rs +++ b/wow_dbc/src/tbc_tables/faction.rs @@ -205,6 +205,20 @@ impl FactionKey { } +impl From for FactionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionKey { fn from(v: i32) -> Self { Self::new(v) @@ -212,6 +226,20 @@ impl From for FactionKey { } +impl From for FactionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FactionRow { pub id: FactionKey, diff --git a/wow_dbc/src/tbc_tables/faction_group.rs b/wow_dbc/src/tbc_tables/faction_group.rs index 2480387..491b777 100644 --- a/wow_dbc/src/tbc_tables/faction_group.rs +++ b/wow_dbc/src/tbc_tables/faction_group.rs @@ -167,6 +167,20 @@ impl FactionGroupKey { } +impl From for FactionGroupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionGroupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionGroupKey { fn from(v: i32) -> Self { Self::new(v) @@ -174,6 +188,20 @@ impl From for FactionGroupKey { } +impl From for FactionGroupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionGroupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FactionGroupRow { pub id: FactionGroupKey, diff --git a/wow_dbc/src/tbc_tables/faction_template.rs b/wow_dbc/src/tbc_tables/faction_template.rs index 3c1c0e3..e1adcb6 100644 --- a/wow_dbc/src/tbc_tables/faction_template.rs +++ b/wow_dbc/src/tbc_tables/faction_template.rs @@ -166,6 +166,20 @@ impl FactionTemplateKey { } +impl From for FactionTemplateKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionTemplateKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionTemplateKey { fn from(v: i32) -> Self { Self::new(v) @@ -173,6 +187,20 @@ impl From for FactionTemplateKey { } +impl From for FactionTemplateKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionTemplateKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FactionTemplateRow { pub id: FactionTemplateKey, diff --git a/wow_dbc/src/tbc_tables/footprint_textures.rs b/wow_dbc/src/tbc_tables/footprint_textures.rs index e82a65f..e0fc531 100644 --- a/wow_dbc/src/tbc_tables/footprint_textures.rs +++ b/wow_dbc/src/tbc_tables/footprint_textures.rs @@ -150,6 +150,20 @@ impl FootprintTexturesKey { } +impl From for FootprintTexturesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootprintTexturesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FootprintTexturesKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for FootprintTexturesKey { } +impl From for FootprintTexturesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootprintTexturesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FootprintTexturesRow { pub id: FootprintTexturesKey, diff --git a/wow_dbc/src/tbc_tables/footstep_terrain_lookup.rs b/wow_dbc/src/tbc_tables/footstep_terrain_lookup.rs index 9fa7103..dd48682 100644 --- a/wow_dbc/src/tbc_tables/footstep_terrain_lookup.rs +++ b/wow_dbc/src/tbc_tables/footstep_terrain_lookup.rs @@ -138,6 +138,20 @@ impl FootstepTerrainLookupKey { } +impl From for FootstepTerrainLookupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootstepTerrainLookupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FootstepTerrainLookupKey { fn from(v: i32) -> Self { Self::new(v) @@ -145,6 +159,20 @@ impl From for FootstepTerrainLookupKey { } +impl From for FootstepTerrainLookupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootstepTerrainLookupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FootstepTerrainLookupRow { pub id: FootstepTerrainLookupKey, diff --git a/wow_dbc/src/tbc_tables/game_object_art_kit.rs b/wow_dbc/src/tbc_tables/game_object_art_kit.rs index c748d67..e2e56f3 100644 --- a/wow_dbc/src/tbc_tables/game_object_art_kit.rs +++ b/wow_dbc/src/tbc_tables/game_object_art_kit.rs @@ -202,6 +202,20 @@ impl GameObjectArtKitKey { } +impl From for GameObjectArtKitKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectArtKitKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameObjectArtKitKey { fn from(v: i32) -> Self { Self::new(v) @@ -209,6 +223,20 @@ impl From for GameObjectArtKitKey { } +impl From for GameObjectArtKitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectArtKitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GameObjectArtKitRow { pub id: GameObjectArtKitKey, diff --git a/wow_dbc/src/tbc_tables/game_object_display_info.rs b/wow_dbc/src/tbc_tables/game_object_display_info.rs index 2b125ba..5fcef51 100644 --- a/wow_dbc/src/tbc_tables/game_object_display_info.rs +++ b/wow_dbc/src/tbc_tables/game_object_display_info.rs @@ -180,6 +180,20 @@ impl GameObjectDisplayInfoKey { } +impl From for GameObjectDisplayInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectDisplayInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameObjectDisplayInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -187,6 +201,20 @@ impl From for GameObjectDisplayInfoKey { } +impl From for GameObjectDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct GameObjectDisplayInfoRow { pub id: GameObjectDisplayInfoKey, diff --git a/wow_dbc/src/tbc_tables/game_tips.rs b/wow_dbc/src/tbc_tables/game_tips.rs index 1e6e537..eed1db9 100644 --- a/wow_dbc/src/tbc_tables/game_tips.rs +++ b/wow_dbc/src/tbc_tables/game_tips.rs @@ -142,6 +142,20 @@ impl GameTipsKey { } +impl From for GameTipsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameTipsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameTipsKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for GameTipsKey { } +impl From for GameTipsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameTipsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GameTipsRow { pub id: GameTipsKey, diff --git a/wow_dbc/src/tbc_tables/gem_properties.rs b/wow_dbc/src/tbc_tables/gem_properties.rs index 8fd6424..bf83cc8 100644 --- a/wow_dbc/src/tbc_tables/gem_properties.rs +++ b/wow_dbc/src/tbc_tables/gem_properties.rs @@ -138,6 +138,20 @@ impl GemPropertiesKey { } +impl From for GemPropertiesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GemPropertiesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GemPropertiesKey { fn from(v: i32) -> Self { Self::new(v) @@ -145,6 +159,20 @@ impl From for GemPropertiesKey { } +impl From for GemPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GemPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GemPropertiesRow { pub id: GemPropertiesKey, diff --git a/wow_dbc/src/tbc_tables/gm_survey_current_survey.rs b/wow_dbc/src/tbc_tables/gm_survey_current_survey.rs index 30a69dc..669462f 100644 --- a/wow_dbc/src/tbc_tables/gm_survey_current_survey.rs +++ b/wow_dbc/src/tbc_tables/gm_survey_current_survey.rs @@ -116,6 +116,20 @@ impl GMSurveyCurrentSurveyKey { } +impl From for GMSurveyCurrentSurveyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyCurrentSurveyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveyCurrentSurveyKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for GMSurveyCurrentSurveyKey { } +impl From for GMSurveyCurrentSurveyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyCurrentSurveyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMSurveyCurrentSurveyRow { pub id: GMSurveyCurrentSurveyKey, diff --git a/wow_dbc/src/tbc_tables/gm_survey_questions.rs b/wow_dbc/src/tbc_tables/gm_survey_questions.rs index cbd465e..710290f 100644 --- a/wow_dbc/src/tbc_tables/gm_survey_questions.rs +++ b/wow_dbc/src/tbc_tables/gm_survey_questions.rs @@ -142,6 +142,20 @@ impl GMSurveyQuestionsKey { } +impl From for GMSurveyQuestionsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyQuestionsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveyQuestionsKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for GMSurveyQuestionsKey { } +impl From for GMSurveyQuestionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyQuestionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMSurveyQuestionsRow { pub id: GMSurveyQuestionsKey, diff --git a/wow_dbc/src/tbc_tables/gm_survey_surveys.rs b/wow_dbc/src/tbc_tables/gm_survey_surveys.rs index f3f1ac4..649984d 100644 --- a/wow_dbc/src/tbc_tables/gm_survey_surveys.rs +++ b/wow_dbc/src/tbc_tables/gm_survey_surveys.rs @@ -119,6 +119,20 @@ impl GMSurveySurveysKey { } +impl From for GMSurveySurveysKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveySurveysKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveySurveysKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for GMSurveySurveysKey { } +impl From for GMSurveySurveysKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveySurveysKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMSurveySurveysRow { pub id: GMSurveySurveysKey, diff --git a/wow_dbc/src/tbc_tables/gm_ticket_category.rs b/wow_dbc/src/tbc_tables/gm_ticket_category.rs index 8d1f278..d2b6a01 100644 --- a/wow_dbc/src/tbc_tables/gm_ticket_category.rs +++ b/wow_dbc/src/tbc_tables/gm_ticket_category.rs @@ -142,6 +142,20 @@ impl GMTicketCategoryKey { } +impl From for GMTicketCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMTicketCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMTicketCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for GMTicketCategoryKey { } +impl From for GMTicketCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMTicketCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMTicketCategoryRow { pub id: GMTicketCategoryKey, diff --git a/wow_dbc/src/tbc_tables/ground_effect_doodad.rs b/wow_dbc/src/tbc_tables/ground_effect_doodad.rs index 240e107..3e90579 100644 --- a/wow_dbc/src/tbc_tables/ground_effect_doodad.rs +++ b/wow_dbc/src/tbc_tables/ground_effect_doodad.rs @@ -157,6 +157,20 @@ impl GroundEffectDoodadKey { } +impl From for GroundEffectDoodadKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectDoodadKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GroundEffectDoodadKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for GroundEffectDoodadKey { } +impl From for GroundEffectDoodadKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectDoodadKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GroundEffectDoodadRow { pub id: GroundEffectDoodadKey, diff --git a/wow_dbc/src/tbc_tables/ground_effect_texture.rs b/wow_dbc/src/tbc_tables/ground_effect_texture.rs index f60c39b..83cf2c3 100644 --- a/wow_dbc/src/tbc_tables/ground_effect_texture.rs +++ b/wow_dbc/src/tbc_tables/ground_effect_texture.rs @@ -133,6 +133,20 @@ impl GroundEffectTextureKey { } +impl From for GroundEffectTextureKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectTextureKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GroundEffectTextureKey { fn from(v: i32) -> Self { Self::new(v) @@ -140,6 +154,20 @@ impl From for GroundEffectTextureKey { } +impl From for GroundEffectTextureKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectTextureKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GroundEffectTextureRow { pub id: GroundEffectTextureKey, diff --git a/wow_dbc/src/tbc_tables/helmet_geoset_vis_data.rs b/wow_dbc/src/tbc_tables/helmet_geoset_vis_data.rs index 53585ec..dfe6421 100644 --- a/wow_dbc/src/tbc_tables/helmet_geoset_vis_data.rs +++ b/wow_dbc/src/tbc_tables/helmet_geoset_vis_data.rs @@ -119,6 +119,20 @@ impl HelmetGeosetVisDataKey { } +impl From for HelmetGeosetVisDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HelmetGeosetVisDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for HelmetGeosetVisDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for HelmetGeosetVisDataKey { } +impl From for HelmetGeosetVisDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HelmetGeosetVisDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct HelmetGeosetVisDataRow { pub id: HelmetGeosetVisDataKey, diff --git a/wow_dbc/src/tbc_tables/item.rs b/wow_dbc/src/tbc_tables/item.rs index 26576c4..26fd998 100644 --- a/wow_dbc/src/tbc_tables/item.rs +++ b/wow_dbc/src/tbc_tables/item.rs @@ -130,6 +130,20 @@ impl ItemKey { } +impl From for ItemKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemKey { fn from(v: i32) -> Self { Self::new(v) @@ -137,6 +151,20 @@ impl From for ItemKey { } +impl From for ItemKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemRow { pub id: ItemKey, diff --git a/wow_dbc/src/tbc_tables/item_bag_family.rs b/wow_dbc/src/tbc_tables/item_bag_family.rs index e5eb442..7ac5a83 100644 --- a/wow_dbc/src/tbc_tables/item_bag_family.rs +++ b/wow_dbc/src/tbc_tables/item_bag_family.rs @@ -142,6 +142,20 @@ impl ItemBagFamilyKey { } +impl From for ItemBagFamilyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemBagFamilyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemBagFamilyKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for ItemBagFamilyKey { } +impl From for ItemBagFamilyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemBagFamilyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemBagFamilyRow { pub id: ItemBagFamilyKey, diff --git a/wow_dbc/src/tbc_tables/item_cond_ext_costs.rs b/wow_dbc/src/tbc_tables/item_cond_ext_costs.rs index 5805d2e..62c59b4 100644 --- a/wow_dbc/src/tbc_tables/item_cond_ext_costs.rs +++ b/wow_dbc/src/tbc_tables/item_cond_ext_costs.rs @@ -131,6 +131,20 @@ impl ItemCondExtCostsKey { } +impl From for ItemCondExtCostsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemCondExtCostsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemCondExtCostsKey { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for ItemCondExtCostsKey { } +impl From for ItemCondExtCostsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemCondExtCostsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemCondExtCostsRow { pub id: ItemCondExtCostsKey, diff --git a/wow_dbc/src/tbc_tables/item_display_info.rs b/wow_dbc/src/tbc_tables/item_display_info.rs index 2501481..413b1d2 100644 --- a/wow_dbc/src/tbc_tables/item_display_info.rs +++ b/wow_dbc/src/tbc_tables/item_display_info.rs @@ -329,6 +329,20 @@ impl ItemDisplayInfoKey { } +impl From for ItemDisplayInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemDisplayInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemDisplayInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -336,6 +350,20 @@ impl From for ItemDisplayInfoKey { } +impl From for ItemDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemDisplayInfoRow { pub id: ItemDisplayInfoKey, diff --git a/wow_dbc/src/tbc_tables/item_extended_cost.rs b/wow_dbc/src/tbc_tables/item_extended_cost.rs index 6d7c518..3033087 100644 --- a/wow_dbc/src/tbc_tables/item_extended_cost.rs +++ b/wow_dbc/src/tbc_tables/item_extended_cost.rs @@ -150,6 +150,20 @@ impl ItemExtendedCostKey { } +impl From for ItemExtendedCostKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemExtendedCostKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemExtendedCostKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for ItemExtendedCostKey { } +impl From for ItemExtendedCostKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemExtendedCostKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemExtendedCostRow { pub id: ItemExtendedCostKey, diff --git a/wow_dbc/src/tbc_tables/item_group_sounds.rs b/wow_dbc/src/tbc_tables/item_group_sounds.rs index 09f882a..582731f 100644 --- a/wow_dbc/src/tbc_tables/item_group_sounds.rs +++ b/wow_dbc/src/tbc_tables/item_group_sounds.rs @@ -119,6 +119,20 @@ impl ItemGroupSoundsKey { } +impl From for ItemGroupSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemGroupSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemGroupSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for ItemGroupSoundsKey { } +impl From for ItemGroupSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemGroupSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemGroupSoundsRow { pub id: ItemGroupSoundsKey, diff --git a/wow_dbc/src/tbc_tables/item_pet_food.rs b/wow_dbc/src/tbc_tables/item_pet_food.rs index 3edbd82..8aba716 100644 --- a/wow_dbc/src/tbc_tables/item_pet_food.rs +++ b/wow_dbc/src/tbc_tables/item_pet_food.rs @@ -142,6 +142,20 @@ impl ItemPetFoodKey { } +impl From for ItemPetFoodKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemPetFoodKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemPetFoodKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for ItemPetFoodKey { } +impl From for ItemPetFoodKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemPetFoodKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemPetFoodRow { pub id: ItemPetFoodKey, diff --git a/wow_dbc/src/tbc_tables/item_random_properties.rs b/wow_dbc/src/tbc_tables/item_random_properties.rs index a4ed55c..0df9531 100644 --- a/wow_dbc/src/tbc_tables/item_random_properties.rs +++ b/wow_dbc/src/tbc_tables/item_random_properties.rs @@ -170,6 +170,20 @@ impl ItemRandomPropertiesKey { } +impl From for ItemRandomPropertiesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomPropertiesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemRandomPropertiesKey { fn from(v: i32) -> Self { Self::new(v) @@ -177,6 +191,20 @@ impl From for ItemRandomPropertiesKey { } +impl From for ItemRandomPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemRandomPropertiesRow { pub id: ItemRandomPropertiesKey, diff --git a/wow_dbc/src/tbc_tables/item_random_suffix.rs b/wow_dbc/src/tbc_tables/item_random_suffix.rs index 9bcf789..6a456af 100644 --- a/wow_dbc/src/tbc_tables/item_random_suffix.rs +++ b/wow_dbc/src/tbc_tables/item_random_suffix.rs @@ -180,6 +180,20 @@ impl ItemRandomSuffixKey { } +impl From for ItemRandomSuffixKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomSuffixKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemRandomSuffixKey { fn from(v: i32) -> Self { Self::new(v) @@ -187,6 +201,20 @@ impl From for ItemRandomSuffixKey { } +impl From for ItemRandomSuffixKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomSuffixKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemRandomSuffixRow { pub id: ItemRandomSuffixKey, diff --git a/wow_dbc/src/tbc_tables/item_set.rs b/wow_dbc/src/tbc_tables/item_set.rs index 35770ea..cf2aa6d 100644 --- a/wow_dbc/src/tbc_tables/item_set.rs +++ b/wow_dbc/src/tbc_tables/item_set.rs @@ -187,6 +187,20 @@ impl ItemSetKey { } +impl From for ItemSetKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemSetKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemSetKey { fn from(v: i32) -> Self { Self::new(v) @@ -194,6 +208,20 @@ impl From for ItemSetKey { } +impl From for ItemSetKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemSetKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemSetRow { pub id: ItemSetKey, diff --git a/wow_dbc/src/tbc_tables/item_visual_effects.rs b/wow_dbc/src/tbc_tables/item_visual_effects.rs index 1b3ac2e..34ae170 100644 --- a/wow_dbc/src/tbc_tables/item_visual_effects.rs +++ b/wow_dbc/src/tbc_tables/item_visual_effects.rs @@ -150,6 +150,20 @@ impl ItemVisualEffectsKey { } +impl From for ItemVisualEffectsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualEffectsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemVisualEffectsKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for ItemVisualEffectsKey { } +impl From for ItemVisualEffectsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualEffectsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemVisualEffectsRow { pub id: ItemVisualEffectsKey, diff --git a/wow_dbc/src/tbc_tables/item_visuals.rs b/wow_dbc/src/tbc_tables/item_visuals.rs index ce82d82..fc8e071 100644 --- a/wow_dbc/src/tbc_tables/item_visuals.rs +++ b/wow_dbc/src/tbc_tables/item_visuals.rs @@ -119,6 +119,20 @@ impl ItemVisualsKey { } +impl From for ItemVisualsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemVisualsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for ItemVisualsKey { } +impl From for ItemVisualsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemVisualsRow { pub id: ItemVisualsKey, diff --git a/wow_dbc/src/tbc_tables/language_words.rs b/wow_dbc/src/tbc_tables/language_words.rs index 736b422..4418c7a 100644 --- a/wow_dbc/src/tbc_tables/language_words.rs +++ b/wow_dbc/src/tbc_tables/language_words.rs @@ -158,6 +158,20 @@ impl LanguageWordsKey { } +impl From for LanguageWordsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguageWordsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LanguageWordsKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for LanguageWordsKey { } +impl From for LanguageWordsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguageWordsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LanguageWordsRow { pub id: LanguageWordsKey, diff --git a/wow_dbc/src/tbc_tables/languages.rs b/wow_dbc/src/tbc_tables/languages.rs index b3493cc..8de6b83 100644 --- a/wow_dbc/src/tbc_tables/languages.rs +++ b/wow_dbc/src/tbc_tables/languages.rs @@ -142,6 +142,20 @@ impl LanguagesKey { } +impl From for LanguagesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguagesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LanguagesKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for LanguagesKey { } +impl From for LanguagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LanguagesRow { pub id: LanguagesKey, diff --git a/wow_dbc/src/tbc_tables/lfg_dungeons.rs b/wow_dbc/src/tbc_tables/lfg_dungeons.rs index db83479..db92a9c 100644 --- a/wow_dbc/src/tbc_tables/lfg_dungeons.rs +++ b/wow_dbc/src/tbc_tables/lfg_dungeons.rs @@ -196,6 +196,20 @@ impl LFGDungeonsKey { } +impl From for LFGDungeonsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LFGDungeonsKey { fn from(v: i32) -> Self { Self::new(v) @@ -203,6 +217,20 @@ impl From for LFGDungeonsKey { } +impl From for LFGDungeonsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LFGDungeonsRow { pub id: LFGDungeonsKey, diff --git a/wow_dbc/src/tbc_tables/light.rs b/wow_dbc/src/tbc_tables/light.rs index dcab5be..84d1212 100644 --- a/wow_dbc/src/tbc_tables/light.rs +++ b/wow_dbc/src/tbc_tables/light.rs @@ -151,6 +151,20 @@ impl LightKey { } +impl From for LightKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightKey { fn from(v: i32) -> Self { Self::new(v) @@ -158,6 +172,20 @@ impl From for LightKey { } +impl From for LightKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LightRow { pub id: LightKey, diff --git a/wow_dbc/src/tbc_tables/light_float_band.rs b/wow_dbc/src/tbc_tables/light_float_band.rs index ce326e4..09c30c7 100644 --- a/wow_dbc/src/tbc_tables/light_float_band.rs +++ b/wow_dbc/src/tbc_tables/light_float_band.rs @@ -136,6 +136,20 @@ impl LightFloatBandKey { } +impl From for LightFloatBandKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightFloatBandKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightFloatBandKey { fn from(v: i32) -> Self { Self::new(v) @@ -143,6 +157,20 @@ impl From for LightFloatBandKey { } +impl From for LightFloatBandKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightFloatBandKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LightFloatBandRow { pub id: LightFloatBandKey, diff --git a/wow_dbc/src/tbc_tables/light_int_band.rs b/wow_dbc/src/tbc_tables/light_int_band.rs index ff9e3e4..339563e 100644 --- a/wow_dbc/src/tbc_tables/light_int_band.rs +++ b/wow_dbc/src/tbc_tables/light_int_band.rs @@ -136,6 +136,20 @@ impl LightIntBandKey { } +impl From for LightIntBandKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightIntBandKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightIntBandKey { fn from(v: i32) -> Self { Self::new(v) @@ -143,6 +157,20 @@ impl From for LightIntBandKey { } +impl From for LightIntBandKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightIntBandKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LightIntBandRow { pub id: LightIntBandKey, diff --git a/wow_dbc/src/tbc_tables/light_params.rs b/wow_dbc/src/tbc_tables/light_params.rs index 8ddc6eb..487ec36 100644 --- a/wow_dbc/src/tbc_tables/light_params.rs +++ b/wow_dbc/src/tbc_tables/light_params.rs @@ -166,6 +166,20 @@ impl LightParamsKey { } +impl From for LightParamsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightParamsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightParamsKey { fn from(v: i32) -> Self { Self::new(v) @@ -173,6 +187,20 @@ impl From for LightParamsKey { } +impl From for LightParamsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightParamsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LightParamsRow { pub id: LightParamsKey, diff --git a/wow_dbc/src/tbc_tables/light_skybox.rs b/wow_dbc/src/tbc_tables/light_skybox.rs index cf6d425..04e7a25 100644 --- a/wow_dbc/src/tbc_tables/light_skybox.rs +++ b/wow_dbc/src/tbc_tables/light_skybox.rs @@ -157,6 +157,20 @@ impl LightSkyboxKey { } +impl From for LightSkyboxKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightSkyboxKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightSkyboxKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for LightSkyboxKey { } +impl From for LightSkyboxKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightSkyboxKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LightSkyboxRow { pub id: LightSkyboxKey, diff --git a/wow_dbc/src/tbc_tables/liquid_type.rs b/wow_dbc/src/tbc_tables/liquid_type.rs index 430fb3f..5d27bd3 100644 --- a/wow_dbc/src/tbc_tables/liquid_type.rs +++ b/wow_dbc/src/tbc_tables/liquid_type.rs @@ -165,6 +165,20 @@ impl LiquidTypeKey { } +impl From for LiquidTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LiquidTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LiquidTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for LiquidTypeKey { } +impl From for LiquidTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LiquidTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LiquidTypeRow { pub id: LiquidTypeKey, diff --git a/wow_dbc/src/tbc_tables/loading_screen_taxi_splines.rs b/wow_dbc/src/tbc_tables/loading_screen_taxi_splines.rs index 69df884..bddf52d 100644 --- a/wow_dbc/src/tbc_tables/loading_screen_taxi_splines.rs +++ b/wow_dbc/src/tbc_tables/loading_screen_taxi_splines.rs @@ -144,6 +144,20 @@ impl LoadingScreenTaxiSplinesKey { } +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LoadingScreenTaxiSplinesKey { fn from(v: i32) -> Self { Self::new(v) @@ -151,6 +165,20 @@ impl From for LoadingScreenTaxiSplinesKey { } +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LoadingScreenTaxiSplinesRow { pub id: LoadingScreenTaxiSplinesKey, diff --git a/wow_dbc/src/tbc_tables/loading_screens.rs b/wow_dbc/src/tbc_tables/loading_screens.rs index 642fa26..bca30c1 100644 --- a/wow_dbc/src/tbc_tables/loading_screens.rs +++ b/wow_dbc/src/tbc_tables/loading_screens.rs @@ -168,6 +168,20 @@ impl LoadingScreensKey { } +impl From for LoadingScreensKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreensKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LoadingScreensKey { fn from(v: i32) -> Self { Self::new(v) @@ -175,6 +189,20 @@ impl From for LoadingScreensKey { } +impl From for LoadingScreensKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreensKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LoadingScreensRow { pub id: LoadingScreensKey, diff --git a/wow_dbc/src/tbc_tables/lock.rs b/wow_dbc/src/tbc_tables/lock.rs index 03bc6fc..a11e192 100644 --- a/wow_dbc/src/tbc_tables/lock.rs +++ b/wow_dbc/src/tbc_tables/lock.rs @@ -149,6 +149,20 @@ impl LockKey { } +impl From for LockKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LockKey { fn from(v: i32) -> Self { Self::new(v) @@ -156,6 +170,20 @@ impl From for LockKey { } +impl From for LockKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LockRow { pub id: LockKey, diff --git a/wow_dbc/src/tbc_tables/lock_type.rs b/wow_dbc/src/tbc_tables/lock_type.rs index e83a260..c2f336f 100644 --- a/wow_dbc/src/tbc_tables/lock_type.rs +++ b/wow_dbc/src/tbc_tables/lock_type.rs @@ -178,6 +178,20 @@ impl LockTypeKey { } +impl From for LockTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LockTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -185,6 +199,20 @@ impl From for LockTypeKey { } +impl From for LockTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LockTypeRow { pub id: LockTypeKey, diff --git a/wow_dbc/src/tbc_tables/mail_template.rs b/wow_dbc/src/tbc_tables/mail_template.rs index 1617a30..54aac83 100644 --- a/wow_dbc/src/tbc_tables/mail_template.rs +++ b/wow_dbc/src/tbc_tables/mail_template.rs @@ -151,6 +151,20 @@ impl MailTemplateKey { } +impl From for MailTemplateKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MailTemplateKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MailTemplateKey { fn from(v: i32) -> Self { Self::new(v) @@ -158,6 +172,20 @@ impl From for MailTemplateKey { } +impl From for MailTemplateKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MailTemplateKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MailTemplateRow { pub id: MailTemplateKey, diff --git a/wow_dbc/src/tbc_tables/map.rs b/wow_dbc/src/tbc_tables/map.rs index 4cdf8ec..6542533 100644 --- a/wow_dbc/src/tbc_tables/map.rs +++ b/wow_dbc/src/tbc_tables/map.rs @@ -350,6 +350,20 @@ impl MapKey { } +impl From for MapKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MapKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MapKey { fn from(v: i32) -> Self { Self::new(v) @@ -357,6 +371,20 @@ impl From for MapKey { } +impl From for MapKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MapKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct MapRow { pub id: MapKey, diff --git a/wow_dbc/src/tbc_tables/material.rs b/wow_dbc/src/tbc_tables/material.rs index 2dafba6..b3a0208 100644 --- a/wow_dbc/src/tbc_tables/material.rs +++ b/wow_dbc/src/tbc_tables/material.rs @@ -137,6 +137,20 @@ impl MaterialKey { } +impl From for MaterialKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MaterialKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MaterialKey { fn from(v: i32) -> Self { Self::new(v) @@ -144,6 +158,20 @@ impl From for MaterialKey { } +impl From for MaterialKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MaterialKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MaterialRow { pub id: MaterialKey, diff --git a/wow_dbc/src/tbc_tables/name_gen.rs b/wow_dbc/src/tbc_tables/name_gen.rs index 81acbb6..409784b 100644 --- a/wow_dbc/src/tbc_tables/name_gen.rs +++ b/wow_dbc/src/tbc_tables/name_gen.rs @@ -165,6 +165,20 @@ impl NameGenKey { } +impl From for NameGenKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NameGenKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NameGenKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for NameGenKey { } +impl From for NameGenKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NameGenKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NameGenRow { pub id: NameGenKey, diff --git a/wow_dbc/src/tbc_tables/names_profanity.rs b/wow_dbc/src/tbc_tables/names_profanity.rs index 3b2be61..fe47e97 100644 --- a/wow_dbc/src/tbc_tables/names_profanity.rs +++ b/wow_dbc/src/tbc_tables/names_profanity.rs @@ -157,6 +157,20 @@ impl NamesProfanityKey { } +impl From for NamesProfanityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesProfanityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NamesProfanityKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for NamesProfanityKey { } +impl From for NamesProfanityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesProfanityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NamesProfanityRow { pub id: NamesProfanityKey, diff --git a/wow_dbc/src/tbc_tables/names_reserved.rs b/wow_dbc/src/tbc_tables/names_reserved.rs index 627f2c8..9bd8693 100644 --- a/wow_dbc/src/tbc_tables/names_reserved.rs +++ b/wow_dbc/src/tbc_tables/names_reserved.rs @@ -157,6 +157,20 @@ impl NamesReservedKey { } +impl From for NamesReservedKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesReservedKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NamesReservedKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for NamesReservedKey { } +impl From for NamesReservedKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesReservedKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NamesReservedRow { pub id: NamesReservedKey, diff --git a/wow_dbc/src/tbc_tables/npc_sounds.rs b/wow_dbc/src/tbc_tables/npc_sounds.rs index 77f2607..f125dd3 100644 --- a/wow_dbc/src/tbc_tables/npc_sounds.rs +++ b/wow_dbc/src/tbc_tables/npc_sounds.rs @@ -119,6 +119,20 @@ impl NPCSoundsKey { } +impl From for NPCSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NPCSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NPCSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for NPCSoundsKey { } +impl From for NPCSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NPCSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NPCSoundsRow { pub id: NPCSoundsKey, diff --git a/wow_dbc/src/tbc_tables/package.rs b/wow_dbc/src/tbc_tables/package.rs index 1005dd8..740355d 100644 --- a/wow_dbc/src/tbc_tables/package.rs +++ b/wow_dbc/src/tbc_tables/package.rs @@ -167,6 +167,20 @@ impl PackageKey { } +impl From for PackageKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PackageKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PackageKey { fn from(v: i32) -> Self { Self::new(v) @@ -174,6 +188,20 @@ impl From for PackageKey { } +impl From for PackageKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PackageKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PackageRow { pub id: PackageKey, diff --git a/wow_dbc/src/tbc_tables/page_text_material.rs b/wow_dbc/src/tbc_tables/page_text_material.rs index 52dba7b..031954c 100644 --- a/wow_dbc/src/tbc_tables/page_text_material.rs +++ b/wow_dbc/src/tbc_tables/page_text_material.rs @@ -150,6 +150,20 @@ impl PageTextMaterialKey { } +impl From for PageTextMaterialKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PageTextMaterialKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PageTextMaterialKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for PageTextMaterialKey { } +impl From for PageTextMaterialKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PageTextMaterialKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PageTextMaterialRow { pub id: PageTextMaterialKey, diff --git a/wow_dbc/src/tbc_tables/particle_color.rs b/wow_dbc/src/tbc_tables/particle_color.rs index e463cb0..80444b2 100644 --- a/wow_dbc/src/tbc_tables/particle_color.rs +++ b/wow_dbc/src/tbc_tables/particle_color.rs @@ -139,6 +139,20 @@ impl ParticleColorKey { } +impl From for ParticleColorKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ParticleColorKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ParticleColorKey { fn from(v: i32) -> Self { Self::new(v) @@ -146,6 +160,20 @@ impl From for ParticleColorKey { } +impl From for ParticleColorKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ParticleColorKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ParticleColorRow { pub id: ParticleColorKey, diff --git a/wow_dbc/src/tbc_tables/pet_loyalty.rs b/wow_dbc/src/tbc_tables/pet_loyalty.rs index 3149e57..fac0450 100644 --- a/wow_dbc/src/tbc_tables/pet_loyalty.rs +++ b/wow_dbc/src/tbc_tables/pet_loyalty.rs @@ -142,6 +142,20 @@ impl PetLoyaltyKey { } +impl From for PetLoyaltyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetLoyaltyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PetLoyaltyKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for PetLoyaltyKey { } +impl From for PetLoyaltyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetLoyaltyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PetLoyaltyRow { pub id: PetLoyaltyKey, diff --git a/wow_dbc/src/tbc_tables/pet_personality.rs b/wow_dbc/src/tbc_tables/pet_personality.rs index b3ceac0..b87561e 100644 --- a/wow_dbc/src/tbc_tables/pet_personality.rs +++ b/wow_dbc/src/tbc_tables/pet_personality.rs @@ -172,6 +172,20 @@ impl PetPersonalityKey { } +impl From for PetPersonalityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetPersonalityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PetPersonalityKey { fn from(v: i32) -> Self { Self::new(v) @@ -179,6 +193,20 @@ impl From for PetPersonalityKey { } +impl From for PetPersonalityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetPersonalityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct PetPersonalityRow { pub id: PetPersonalityKey, diff --git a/wow_dbc/src/tbc_tables/petition_type.rs b/wow_dbc/src/tbc_tables/petition_type.rs index d64ddd3..6d13db7 100644 --- a/wow_dbc/src/tbc_tables/petition_type.rs +++ b/wow_dbc/src/tbc_tables/petition_type.rs @@ -157,6 +157,20 @@ impl PetitionTypeKey { } +impl From for PetitionTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetitionTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PetitionTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for PetitionTypeKey { } +impl From for PetitionTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetitionTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PetitionTypeRow { pub id: PetitionTypeKey, diff --git a/wow_dbc/src/tbc_tables/quest_info.rs b/wow_dbc/src/tbc_tables/quest_info.rs index d8c5174..dcc1387 100644 --- a/wow_dbc/src/tbc_tables/quest_info.rs +++ b/wow_dbc/src/tbc_tables/quest_info.rs @@ -142,6 +142,20 @@ impl QuestInfoKey { } +impl From for QuestInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for QuestInfoKey { } +impl From for QuestInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct QuestInfoRow { pub id: QuestInfoKey, diff --git a/wow_dbc/src/tbc_tables/quest_sort.rs b/wow_dbc/src/tbc_tables/quest_sort.rs index 16f71ad..7ebeb8a 100644 --- a/wow_dbc/src/tbc_tables/quest_sort.rs +++ b/wow_dbc/src/tbc_tables/quest_sort.rs @@ -142,6 +142,20 @@ impl QuestSortKey { } +impl From for QuestSortKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestSortKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestSortKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for QuestSortKey { } +impl From for QuestSortKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestSortKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct QuestSortRow { pub id: QuestSortKey, diff --git a/wow_dbc/src/tbc_tables/rand_prop_points.rs b/wow_dbc/src/tbc_tables/rand_prop_points.rs index 1012fab..7c5bbaa 100644 --- a/wow_dbc/src/tbc_tables/rand_prop_points.rs +++ b/wow_dbc/src/tbc_tables/rand_prop_points.rs @@ -139,6 +139,20 @@ impl RandPropPointsKey { } +impl From for RandPropPointsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for RandPropPointsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for RandPropPointsKey { fn from(v: i32) -> Self { Self::new(v) @@ -146,6 +160,20 @@ impl From for RandPropPointsKey { } +impl From for RandPropPointsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for RandPropPointsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct RandPropPointsRow { pub id: RandPropPointsKey, diff --git a/wow_dbc/src/tbc_tables/resistances.rs b/wow_dbc/src/tbc_tables/resistances.rs index 7ff3de6..a3945d2 100644 --- a/wow_dbc/src/tbc_tables/resistances.rs +++ b/wow_dbc/src/tbc_tables/resistances.rs @@ -156,6 +156,20 @@ impl ResistancesKey { } +impl From for ResistancesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ResistancesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ResistancesKey { fn from(v: i32) -> Self { Self::new(v) @@ -163,6 +177,20 @@ impl From for ResistancesKey { } +impl From for ResistancesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ResistancesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ResistancesRow { pub id: ResistancesKey, diff --git a/wow_dbc/src/tbc_tables/server_messages.rs b/wow_dbc/src/tbc_tables/server_messages.rs index 1f02cb9..8075332 100644 --- a/wow_dbc/src/tbc_tables/server_messages.rs +++ b/wow_dbc/src/tbc_tables/server_messages.rs @@ -142,6 +142,20 @@ impl ServerMessagesKey { } +impl From for ServerMessagesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ServerMessagesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ServerMessagesKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for ServerMessagesKey { } +impl From for ServerMessagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ServerMessagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ServerMessagesRow { pub id: ServerMessagesKey, diff --git a/wow_dbc/src/tbc_tables/sheathe_sound_lookups.rs b/wow_dbc/src/tbc_tables/sheathe_sound_lookups.rs index 3254b95..f12b38e 100644 --- a/wow_dbc/src/tbc_tables/sheathe_sound_lookups.rs +++ b/wow_dbc/src/tbc_tables/sheathe_sound_lookups.rs @@ -152,6 +152,20 @@ impl SheatheSoundLookupsKey { } +impl From for SheatheSoundLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SheatheSoundLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SheatheSoundLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -159,6 +173,20 @@ impl From for SheatheSoundLookupsKey { } +impl From for SheatheSoundLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SheatheSoundLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SheatheSoundLookupsRow { pub id: SheatheSoundLookupsKey, diff --git a/wow_dbc/src/tbc_tables/skill_costs_data.rs b/wow_dbc/src/tbc_tables/skill_costs_data.rs index 2d85b90..f6197c1 100644 --- a/wow_dbc/src/tbc_tables/skill_costs_data.rs +++ b/wow_dbc/src/tbc_tables/skill_costs_data.rs @@ -126,6 +126,20 @@ impl SkillCostsDataKey { } +impl From for SkillCostsDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillCostsDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillCostsDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -133,6 +147,20 @@ impl From for SkillCostsDataKey { } +impl From for SkillCostsDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillCostsDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillCostsDataRow { pub id: SkillCostsDataKey, diff --git a/wow_dbc/src/tbc_tables/skill_line.rs b/wow_dbc/src/tbc_tables/skill_line.rs index 550eab1..ce7d46c 100644 --- a/wow_dbc/src/tbc_tables/skill_line.rs +++ b/wow_dbc/src/tbc_tables/skill_line.rs @@ -174,6 +174,20 @@ impl SkillLineKey { } +impl From for SkillLineKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineKey { fn from(v: i32) -> Self { Self::new(v) @@ -181,6 +195,20 @@ impl From for SkillLineKey { } +impl From for SkillLineKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillLineRow { pub id: SkillLineKey, diff --git a/wow_dbc/src/tbc_tables/skill_line_ability.rs b/wow_dbc/src/tbc_tables/skill_line_ability.rs index 770043c..d6bc122 100644 --- a/wow_dbc/src/tbc_tables/skill_line_ability.rs +++ b/wow_dbc/src/tbc_tables/skill_line_ability.rs @@ -205,6 +205,20 @@ impl SkillLineAbilityKey { } +impl From for SkillLineAbilityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineAbilityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineAbilityKey { fn from(v: i32) -> Self { Self::new(v) @@ -212,6 +226,20 @@ impl From for SkillLineAbilityKey { } +impl From for SkillLineAbilityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineAbilityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillLineAbilityRow { pub id: SkillLineAbilityKey, diff --git a/wow_dbc/src/tbc_tables/skill_line_category.rs b/wow_dbc/src/tbc_tables/skill_line_category.rs index db66bf7..0509eb9 100644 --- a/wow_dbc/src/tbc_tables/skill_line_category.rs +++ b/wow_dbc/src/tbc_tables/skill_line_category.rs @@ -149,6 +149,20 @@ impl SkillLineCategoryKey { } +impl From for SkillLineCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -156,6 +170,20 @@ impl From for SkillLineCategoryKey { } +impl From for SkillLineCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillLineCategoryRow { pub id: SkillLineCategoryKey, diff --git a/wow_dbc/src/tbc_tables/skill_race_class_info.rs b/wow_dbc/src/tbc_tables/skill_race_class_info.rs index a4db295..9054726 100644 --- a/wow_dbc/src/tbc_tables/skill_race_class_info.rs +++ b/wow_dbc/src/tbc_tables/skill_race_class_info.rs @@ -160,6 +160,20 @@ impl SkillRaceClassInfoKey { } +impl From for SkillRaceClassInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillRaceClassInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillRaceClassInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -167,6 +181,20 @@ impl From for SkillRaceClassInfoKey { } +impl From for SkillRaceClassInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillRaceClassInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillRaceClassInfoRow { pub id: SkillRaceClassInfoKey, diff --git a/wow_dbc/src/tbc_tables/skill_tiers.rs b/wow_dbc/src/tbc_tables/skill_tiers.rs index ab7c428..9793626 100644 --- a/wow_dbc/src/tbc_tables/skill_tiers.rs +++ b/wow_dbc/src/tbc_tables/skill_tiers.rs @@ -129,6 +129,20 @@ impl SkillTiersKey { } +impl From for SkillTiersKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillTiersKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillTiersKey { fn from(v: i32) -> Self { Self::new(v) @@ -136,6 +150,20 @@ impl From for SkillTiersKey { } +impl From for SkillTiersKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillTiersKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillTiersRow { pub id: SkillTiersKey, diff --git a/wow_dbc/src/tbc_tables/sound_ambience.rs b/wow_dbc/src/tbc_tables/sound_ambience.rs index 3b71106..31338c4 100644 --- a/wow_dbc/src/tbc_tables/sound_ambience.rs +++ b/wow_dbc/src/tbc_tables/sound_ambience.rs @@ -119,6 +119,20 @@ impl SoundAmbienceKey { } +impl From for SoundAmbienceKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundAmbienceKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundAmbienceKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for SoundAmbienceKey { } +impl From for SoundAmbienceKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundAmbienceKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SoundAmbienceRow { pub id: SoundAmbienceKey, diff --git a/wow_dbc/src/tbc_tables/sound_entries.rs b/wow_dbc/src/tbc_tables/sound_entries.rs index e88b56d..47a0c3b 100644 --- a/wow_dbc/src/tbc_tables/sound_entries.rs +++ b/wow_dbc/src/tbc_tables/sound_entries.rs @@ -255,6 +255,20 @@ impl SoundEntriesKey { } +impl From for SoundEntriesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEntriesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundEntriesKey { fn from(v: i32) -> Self { Self::new(v) @@ -262,6 +276,20 @@ impl From for SoundEntriesKey { } +impl From for SoundEntriesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEntriesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundEntriesRow { pub id: SoundEntriesKey, diff --git a/wow_dbc/src/tbc_tables/sound_provider_preferences.rs b/wow_dbc/src/tbc_tables/sound_provider_preferences.rs index 6a00b31..be11e2e 100644 --- a/wow_dbc/src/tbc_tables/sound_provider_preferences.rs +++ b/wow_dbc/src/tbc_tables/sound_provider_preferences.rs @@ -304,6 +304,20 @@ impl SoundProviderPreferencesKey { } +impl From for SoundProviderPreferencesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundProviderPreferencesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundProviderPreferencesKey { fn from(v: i32) -> Self { Self::new(v) @@ -311,6 +325,20 @@ impl From for SoundProviderPreferencesKey { } +impl From for SoundProviderPreferencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundProviderPreferencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundProviderPreferencesRow { pub id: SoundProviderPreferencesKey, diff --git a/wow_dbc/src/tbc_tables/sound_sample_preferences.rs b/wow_dbc/src/tbc_tables/sound_sample_preferences.rs index 1ad4741..f92f1d4 100644 --- a/wow_dbc/src/tbc_tables/sound_sample_preferences.rs +++ b/wow_dbc/src/tbc_tables/sound_sample_preferences.rs @@ -221,6 +221,20 @@ impl SoundSamplePreferencesKey { } +impl From for SoundSamplePreferencesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundSamplePreferencesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundSamplePreferencesKey { fn from(v: i32) -> Self { Self::new(v) @@ -228,6 +242,20 @@ impl From for SoundSamplePreferencesKey { } +impl From for SoundSamplePreferencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundSamplePreferencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundSamplePreferencesRow { pub id: SoundSamplePreferencesKey, diff --git a/wow_dbc/src/tbc_tables/sound_water_type.rs b/wow_dbc/src/tbc_tables/sound_water_type.rs index 4c5d633..36fcb4e 100644 --- a/wow_dbc/src/tbc_tables/sound_water_type.rs +++ b/wow_dbc/src/tbc_tables/sound_water_type.rs @@ -131,6 +131,20 @@ impl SoundWaterTypeKey { } +impl From for SoundWaterTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundWaterTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundWaterTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for SoundWaterTypeKey { } +impl From for SoundWaterTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundWaterTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SoundWaterTypeRow { pub id: SoundWaterTypeKey, diff --git a/wow_dbc/src/tbc_tables/spam_messages.rs b/wow_dbc/src/tbc_tables/spam_messages.rs index 157be28..d69cb7f 100644 --- a/wow_dbc/src/tbc_tables/spam_messages.rs +++ b/wow_dbc/src/tbc_tables/spam_messages.rs @@ -150,6 +150,20 @@ impl SpamMessagesKey { } +impl From for SpamMessagesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpamMessagesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpamMessagesKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for SpamMessagesKey { } +impl From for SpamMessagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpamMessagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpamMessagesRow { pub id: SpamMessagesKey, diff --git a/wow_dbc/src/tbc_tables/spell.rs b/wow_dbc/src/tbc_tables/spell.rs index c9b8544..9be81e1 100644 --- a/wow_dbc/src/tbc_tables/spell.rs +++ b/wow_dbc/src/tbc_tables/spell.rs @@ -878,6 +878,20 @@ impl SpellKey { } +impl From for SpellKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellKey { fn from(v: i32) -> Self { Self::new(v) @@ -885,6 +899,20 @@ impl From for SpellKey { } +impl From for SpellKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellRow { pub id: SpellKey, diff --git a/wow_dbc/src/tbc_tables/spell_cast_times.rs b/wow_dbc/src/tbc_tables/spell_cast_times.rs index 299e6a8..d0f42cf 100644 --- a/wow_dbc/src/tbc_tables/spell_cast_times.rs +++ b/wow_dbc/src/tbc_tables/spell_cast_times.rs @@ -130,6 +130,20 @@ impl SpellCastTimesKey { } +impl From for SpellCastTimesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCastTimesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellCastTimesKey { fn from(v: i32) -> Self { Self::new(v) @@ -137,6 +151,20 @@ impl From for SpellCastTimesKey { } +impl From for SpellCastTimesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCastTimesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellCastTimesRow { pub id: SpellCastTimesKey, diff --git a/wow_dbc/src/tbc_tables/spell_category.rs b/wow_dbc/src/tbc_tables/spell_category.rs index 69ce245..139a9bf 100644 --- a/wow_dbc/src/tbc_tables/spell_category.rs +++ b/wow_dbc/src/tbc_tables/spell_category.rs @@ -116,6 +116,20 @@ impl SpellCategoryKey { } +impl From for SpellCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for SpellCategoryKey { } +impl From for SpellCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellCategoryRow { pub id: SpellCategoryKey, diff --git a/wow_dbc/src/tbc_tables/spell_chain_effects.rs b/wow_dbc/src/tbc_tables/spell_chain_effects.rs index a42cd51..340edaa 100644 --- a/wow_dbc/src/tbc_tables/spell_chain_effects.rs +++ b/wow_dbc/src/tbc_tables/spell_chain_effects.rs @@ -476,6 +476,20 @@ impl SpellChainEffectsKey { } +impl From for SpellChainEffectsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellChainEffectsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellChainEffectsKey { fn from(v: i32) -> Self { Self::new(v) @@ -483,6 +497,20 @@ impl From for SpellChainEffectsKey { } +impl From for SpellChainEffectsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellChainEffectsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellChainEffectsRow { pub id: SpellChainEffectsKey, diff --git a/wow_dbc/src/tbc_tables/spell_dispel_type.rs b/wow_dbc/src/tbc_tables/spell_dispel_type.rs index 5c0e137..50fe35c 100644 --- a/wow_dbc/src/tbc_tables/spell_dispel_type.rs +++ b/wow_dbc/src/tbc_tables/spell_dispel_type.rs @@ -174,6 +174,20 @@ impl SpellDispelTypeKey { } +impl From for SpellDispelTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDispelTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDispelTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -181,6 +195,20 @@ impl From for SpellDispelTypeKey { } +impl From for SpellDispelTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDispelTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellDispelTypeRow { pub id: SpellDispelTypeKey, diff --git a/wow_dbc/src/tbc_tables/spell_duration.rs b/wow_dbc/src/tbc_tables/spell_duration.rs index 2f4350b..8fa250d 100644 --- a/wow_dbc/src/tbc_tables/spell_duration.rs +++ b/wow_dbc/src/tbc_tables/spell_duration.rs @@ -130,6 +130,20 @@ impl SpellDurationKey { } +impl From for SpellDurationKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDurationKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDurationKey { fn from(v: i32) -> Self { Self::new(v) @@ -137,6 +151,20 @@ impl From for SpellDurationKey { } +impl From for SpellDurationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDurationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellDurationRow { pub id: SpellDurationKey, diff --git a/wow_dbc/src/tbc_tables/spell_effect_camera_shakes.rs b/wow_dbc/src/tbc_tables/spell_effect_camera_shakes.rs index 7a09b57..0c5a634 100644 --- a/wow_dbc/src/tbc_tables/spell_effect_camera_shakes.rs +++ b/wow_dbc/src/tbc_tables/spell_effect_camera_shakes.rs @@ -119,6 +119,20 @@ impl SpellEffectCameraShakesKey { } +impl From for SpellEffectCameraShakesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellEffectCameraShakesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellEffectCameraShakesKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for SpellEffectCameraShakesKey { } +impl From for SpellEffectCameraShakesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellEffectCameraShakesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellEffectCameraShakesRow { pub id: SpellEffectCameraShakesKey, diff --git a/wow_dbc/src/tbc_tables/spell_focus_object.rs b/wow_dbc/src/tbc_tables/spell_focus_object.rs index 990b245..f66aa81 100644 --- a/wow_dbc/src/tbc_tables/spell_focus_object.rs +++ b/wow_dbc/src/tbc_tables/spell_focus_object.rs @@ -142,6 +142,20 @@ impl SpellFocusObjectKey { } +impl From for SpellFocusObjectKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellFocusObjectKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellFocusObjectKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for SpellFocusObjectKey { } +impl From for SpellFocusObjectKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellFocusObjectKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellFocusObjectRow { pub id: SpellFocusObjectKey, diff --git a/wow_dbc/src/tbc_tables/spell_icon.rs b/wow_dbc/src/tbc_tables/spell_icon.rs index c2cf6cd..cd401f8 100644 --- a/wow_dbc/src/tbc_tables/spell_icon.rs +++ b/wow_dbc/src/tbc_tables/spell_icon.rs @@ -150,6 +150,20 @@ impl SpellIconKey { } +impl From for SpellIconKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellIconKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellIconKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for SpellIconKey { } +impl From for SpellIconKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellIconKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellIconRow { pub id: SpellIconKey, diff --git a/wow_dbc/src/tbc_tables/spell_item_enchantment.rs b/wow_dbc/src/tbc_tables/spell_item_enchantment.rs index ce317fa..c99ae4b 100644 --- a/wow_dbc/src/tbc_tables/spell_item_enchantment.rs +++ b/wow_dbc/src/tbc_tables/spell_item_enchantment.rs @@ -212,6 +212,20 @@ impl SpellItemEnchantmentKey { } +impl From for SpellItemEnchantmentKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellItemEnchantmentKey { fn from(v: i32) -> Self { Self::new(v) @@ -219,6 +233,20 @@ impl From for SpellItemEnchantmentKey { } +impl From for SpellItemEnchantmentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellItemEnchantmentRow { pub id: SpellItemEnchantmentKey, diff --git a/wow_dbc/src/tbc_tables/spell_item_enchantment_condition.rs b/wow_dbc/src/tbc_tables/spell_item_enchantment_condition.rs index 9c1c9e8..2f46575 100644 --- a/wow_dbc/src/tbc_tables/spell_item_enchantment_condition.rs +++ b/wow_dbc/src/tbc_tables/spell_item_enchantment_condition.rs @@ -197,6 +197,20 @@ impl SpellItemEnchantmentConditionKey { } +impl From for SpellItemEnchantmentConditionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentConditionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellItemEnchantmentConditionKey { fn from(v: i32) -> Self { Self::new(v) @@ -204,6 +218,20 @@ impl From for SpellItemEnchantmentConditionKey { } +impl From for SpellItemEnchantmentConditionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentConditionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellItemEnchantmentConditionRow { pub id: SpellItemEnchantmentConditionKey, diff --git a/wow_dbc/src/tbc_tables/spell_mechanic.rs b/wow_dbc/src/tbc_tables/spell_mechanic.rs index ef953f2..9ce26f8 100644 --- a/wow_dbc/src/tbc_tables/spell_mechanic.rs +++ b/wow_dbc/src/tbc_tables/spell_mechanic.rs @@ -142,6 +142,20 @@ impl SpellMechanicKey { } +impl From for SpellMechanicKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMechanicKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellMechanicKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for SpellMechanicKey { } +impl From for SpellMechanicKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMechanicKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellMechanicRow { pub id: SpellMechanicKey, diff --git a/wow_dbc/src/tbc_tables/spell_missile_motion.rs b/wow_dbc/src/tbc_tables/spell_missile_motion.rs index f368db2..283547f 100644 --- a/wow_dbc/src/tbc_tables/spell_missile_motion.rs +++ b/wow_dbc/src/tbc_tables/spell_missile_motion.rs @@ -182,6 +182,20 @@ impl SpellMissileMotionKey { } +impl From for SpellMissileMotionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMissileMotionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellMissileMotionKey { fn from(v: i32) -> Self { Self::new(v) @@ -189,6 +203,20 @@ impl From for SpellMissileMotionKey { } +impl From for SpellMissileMotionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMissileMotionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellMissileMotionRow { pub id: SpellMissileMotionKey, diff --git a/wow_dbc/src/tbc_tables/spell_radius.rs b/wow_dbc/src/tbc_tables/spell_radius.rs index f96fce3..06eb61b 100644 --- a/wow_dbc/src/tbc_tables/spell_radius.rs +++ b/wow_dbc/src/tbc_tables/spell_radius.rs @@ -130,6 +130,20 @@ impl SpellRadiusKey { } +impl From for SpellRadiusKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRadiusKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellRadiusKey { fn from(v: i32) -> Self { Self::new(v) @@ -137,6 +151,20 @@ impl From for SpellRadiusKey { } +impl From for SpellRadiusKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRadiusKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellRadiusRow { pub id: SpellRadiusKey, diff --git a/wow_dbc/src/tbc_tables/spell_range.rs b/wow_dbc/src/tbc_tables/spell_range.rs index 88f8c27..0e24cc6 100644 --- a/wow_dbc/src/tbc_tables/spell_range.rs +++ b/wow_dbc/src/tbc_tables/spell_range.rs @@ -172,6 +172,20 @@ impl SpellRangeKey { } +impl From for SpellRangeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRangeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellRangeKey { fn from(v: i32) -> Self { Self::new(v) @@ -179,6 +193,20 @@ impl From for SpellRangeKey { } +impl From for SpellRangeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRangeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellRangeRow { pub id: SpellRangeKey, diff --git a/wow_dbc/src/tbc_tables/spell_shapeshift_form.rs b/wow_dbc/src/tbc_tables/spell_shapeshift_form.rs index 86bd7a3..64c364d 100644 --- a/wow_dbc/src/tbc_tables/spell_shapeshift_form.rs +++ b/wow_dbc/src/tbc_tables/spell_shapeshift_form.rs @@ -199,6 +199,20 @@ impl SpellShapeshiftFormKey { } +impl From for SpellShapeshiftFormKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellShapeshiftFormKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellShapeshiftFormKey { fn from(v: i32) -> Self { Self::new(v) @@ -206,6 +220,20 @@ impl From for SpellShapeshiftFormKey { } +impl From for SpellShapeshiftFormKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellShapeshiftFormKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellShapeshiftFormRow { pub id: SpellShapeshiftFormKey, diff --git a/wow_dbc/src/tbc_tables/spell_visual.rs b/wow_dbc/src/tbc_tables/spell_visual.rs index 20079ff..72779ad 100644 --- a/wow_dbc/src/tbc_tables/spell_visual.rs +++ b/wow_dbc/src/tbc_tables/spell_visual.rs @@ -279,6 +279,20 @@ impl SpellVisualKey { } +impl From for SpellVisualKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKey { fn from(v: i32) -> Self { Self::new(v) @@ -286,6 +300,20 @@ impl From for SpellVisualKey { } +impl From for SpellVisualKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellVisualRow { pub id: SpellVisualKey, diff --git a/wow_dbc/src/tbc_tables/spell_visual_effect_name.rs b/wow_dbc/src/tbc_tables/spell_visual_effect_name.rs index d6dd045..4264d0d 100644 --- a/wow_dbc/src/tbc_tables/spell_visual_effect_name.rs +++ b/wow_dbc/src/tbc_tables/spell_visual_effect_name.rs @@ -182,6 +182,20 @@ impl SpellVisualEffectNameKey { } +impl From for SpellVisualEffectNameKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualEffectNameKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualEffectNameKey { fn from(v: i32) -> Self { Self::new(v) @@ -189,6 +203,20 @@ impl From for SpellVisualEffectNameKey { } +impl From for SpellVisualEffectNameKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualEffectNameKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellVisualEffectNameRow { pub id: SpellVisualEffectNameKey, diff --git a/wow_dbc/src/tbc_tables/spell_visual_kit.rs b/wow_dbc/src/tbc_tables/spell_visual_kit.rs index c92aac3..aaa42c1 100644 --- a/wow_dbc/src/tbc_tables/spell_visual_kit.rs +++ b/wow_dbc/src/tbc_tables/spell_visual_kit.rs @@ -270,6 +270,20 @@ impl SpellVisualKitKey { } +impl From for SpellVisualKitKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKitKey { fn from(v: i32) -> Self { Self::new(v) @@ -277,6 +291,20 @@ impl From for SpellVisualKitKey { } +impl From for SpellVisualKitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellVisualKitRow { pub id: SpellVisualKitKey, diff --git a/wow_dbc/src/tbc_tables/spell_visual_precast_transitions.rs b/wow_dbc/src/tbc_tables/spell_visual_precast_transitions.rs index 02f9fcb..83326f0 100644 --- a/wow_dbc/src/tbc_tables/spell_visual_precast_transitions.rs +++ b/wow_dbc/src/tbc_tables/spell_visual_precast_transitions.rs @@ -168,6 +168,20 @@ impl SpellVisualPrecastTransitionsKey { } +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualPrecastTransitionsKey { fn from(v: i32) -> Self { Self::new(v) @@ -175,6 +189,20 @@ impl From for SpellVisualPrecastTransitionsKey { } +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellVisualPrecastTransitionsRow { pub id: SpellVisualPrecastTransitionsKey, diff --git a/wow_dbc/src/tbc_tables/stable_slot_prices.rs b/wow_dbc/src/tbc_tables/stable_slot_prices.rs index 48b15ba..ef96351 100644 --- a/wow_dbc/src/tbc_tables/stable_slot_prices.rs +++ b/wow_dbc/src/tbc_tables/stable_slot_prices.rs @@ -116,6 +116,20 @@ impl StableSlotPricesKey { } +impl From for StableSlotPricesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StableSlotPricesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for StableSlotPricesKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for StableSlotPricesKey { } +impl From for StableSlotPricesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StableSlotPricesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct StableSlotPricesRow { pub id: StableSlotPricesKey, diff --git a/wow_dbc/src/tbc_tables/startup_strings.rs b/wow_dbc/src/tbc_tables/startup_strings.rs index 199ffe3..fede3d6 100644 --- a/wow_dbc/src/tbc_tables/startup_strings.rs +++ b/wow_dbc/src/tbc_tables/startup_strings.rs @@ -162,6 +162,20 @@ impl Startup_StringsKey { } +impl From for Startup_StringsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Startup_StringsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Startup_StringsKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for Startup_StringsKey { } +impl From for Startup_StringsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Startup_StringsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Startup_StringsRow { diff --git a/wow_dbc/src/tbc_tables/stationery.rs b/wow_dbc/src/tbc_tables/stationery.rs index 37ad5b9..198265a 100644 --- a/wow_dbc/src/tbc_tables/stationery.rs +++ b/wow_dbc/src/tbc_tables/stationery.rs @@ -165,6 +165,20 @@ impl StationeryKey { } +impl From for StationeryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StationeryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for StationeryKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for StationeryKey { } +impl From for StationeryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StationeryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct StationeryRow { pub id: StationeryKey, diff --git a/wow_dbc/src/tbc_tables/string_lookups.rs b/wow_dbc/src/tbc_tables/string_lookups.rs index bc3c7aa..bd6bb0a 100644 --- a/wow_dbc/src/tbc_tables/string_lookups.rs +++ b/wow_dbc/src/tbc_tables/string_lookups.rs @@ -150,6 +150,20 @@ impl StringLookupsKey { } +impl From for StringLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StringLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for StringLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for StringLookupsKey { } +impl From for StringLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StringLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct StringLookupsRow { pub id: StringLookupsKey, diff --git a/wow_dbc/src/tbc_tables/summon_properties.rs b/wow_dbc/src/tbc_tables/summon_properties.rs index 20872a4..dc0a2d2 100644 --- a/wow_dbc/src/tbc_tables/summon_properties.rs +++ b/wow_dbc/src/tbc_tables/summon_properties.rs @@ -145,6 +145,20 @@ impl SummonPropertiesKey { } +impl From for SummonPropertiesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SummonPropertiesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SummonPropertiesKey { fn from(v: i32) -> Self { Self::new(v) @@ -152,6 +166,20 @@ impl From for SummonPropertiesKey { } +impl From for SummonPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SummonPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SummonPropertiesRow { pub id: SummonPropertiesKey, diff --git a/wow_dbc/src/tbc_tables/talent.rs b/wow_dbc/src/tbc_tables/talent.rs index e59d644..970d8c3 100644 --- a/wow_dbc/src/tbc_tables/talent.rs +++ b/wow_dbc/src/tbc_tables/talent.rs @@ -175,6 +175,20 @@ impl TalentKey { } +impl From for TalentKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TalentKey { fn from(v: i32) -> Self { Self::new(v) @@ -182,6 +196,20 @@ impl From for TalentKey { } +impl From for TalentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TalentRow { pub id: TalentKey, diff --git a/wow_dbc/src/tbc_tables/talent_tab.rs b/wow_dbc/src/tbc_tables/talent_tab.rs index 2332f85..4065f74 100644 --- a/wow_dbc/src/tbc_tables/talent_tab.rs +++ b/wow_dbc/src/tbc_tables/talent_tab.rs @@ -189,6 +189,20 @@ impl TalentTabKey { } +impl From for TalentTabKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentTabKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TalentTabKey { fn from(v: i32) -> Self { Self::new(v) @@ -196,6 +210,20 @@ impl From for TalentTabKey { } +impl From for TalentTabKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentTabKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TalentTabRow { pub id: TalentTabKey, diff --git a/wow_dbc/src/tbc_tables/taxi_nodes.rs b/wow_dbc/src/tbc_tables/taxi_nodes.rs index a2af2f6..4be7932 100644 --- a/wow_dbc/src/tbc_tables/taxi_nodes.rs +++ b/wow_dbc/src/tbc_tables/taxi_nodes.rs @@ -170,6 +170,20 @@ impl TaxiNodesKey { } +impl From for TaxiNodesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiNodesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiNodesKey { fn from(v: i32) -> Self { Self::new(v) @@ -177,6 +191,20 @@ impl From for TaxiNodesKey { } +impl From for TaxiNodesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiNodesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TaxiNodesRow { pub id: TaxiNodesKey, diff --git a/wow_dbc/src/tbc_tables/taxi_path.rs b/wow_dbc/src/tbc_tables/taxi_path.rs index 25612af..976f0d2 100644 --- a/wow_dbc/src/tbc_tables/taxi_path.rs +++ b/wow_dbc/src/tbc_tables/taxi_path.rs @@ -131,6 +131,20 @@ impl TaxiPathKey { } +impl From for TaxiPathKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiPathKey { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for TaxiPathKey { } +impl From for TaxiPathKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TaxiPathRow { pub id: TaxiPathKey, diff --git a/wow_dbc/src/tbc_tables/taxi_path_node.rs b/wow_dbc/src/tbc_tables/taxi_path_node.rs index 9c71e00..79f5de1 100644 --- a/wow_dbc/src/tbc_tables/taxi_path_node.rs +++ b/wow_dbc/src/tbc_tables/taxi_path_node.rs @@ -170,6 +170,20 @@ impl TaxiPathNodeKey { } +impl From for TaxiPathNodeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathNodeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiPathNodeKey { fn from(v: i32) -> Self { Self::new(v) @@ -177,6 +191,20 @@ impl From for TaxiPathNodeKey { } +impl From for TaxiPathNodeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathNodeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TaxiPathNodeRow { pub id: TaxiPathNodeKey, diff --git a/wow_dbc/src/tbc_tables/terrain_type_sounds.rs b/wow_dbc/src/tbc_tables/terrain_type_sounds.rs index b5e9789..9a73603 100644 --- a/wow_dbc/src/tbc_tables/terrain_type_sounds.rs +++ b/wow_dbc/src/tbc_tables/terrain_type_sounds.rs @@ -109,6 +109,20 @@ impl TerrainTypeSoundsKey { } +impl From for TerrainTypeSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TerrainTypeSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TerrainTypeSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -116,6 +130,20 @@ impl From for TerrainTypeSoundsKey { } +impl From for TerrainTypeSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TerrainTypeSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TerrainTypeSoundsRow { pub id: TerrainTypeSoundsKey, diff --git a/wow_dbc/src/tbc_tables/totem_category.rs b/wow_dbc/src/tbc_tables/totem_category.rs index 88f9829..4e49cd9 100644 --- a/wow_dbc/src/tbc_tables/totem_category.rs +++ b/wow_dbc/src/tbc_tables/totem_category.rs @@ -156,6 +156,20 @@ impl TotemCategoryKey { } +impl From for TotemCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TotemCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TotemCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -163,6 +177,20 @@ impl From for TotemCategoryKey { } +impl From for TotemCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TotemCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TotemCategoryRow { pub id: TotemCategoryKey, diff --git a/wow_dbc/src/tbc_tables/transport_animation.rs b/wow_dbc/src/tbc_tables/transport_animation.rs index b43b1f8..fa27060 100644 --- a/wow_dbc/src/tbc_tables/transport_animation.rs +++ b/wow_dbc/src/tbc_tables/transport_animation.rs @@ -140,6 +140,20 @@ impl TransportAnimationKey { } +impl From for TransportAnimationKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportAnimationKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TransportAnimationKey { fn from(v: i32) -> Self { Self::new(v) @@ -147,6 +161,20 @@ impl From for TransportAnimationKey { } +impl From for TransportAnimationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportAnimationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TransportAnimationRow { pub id: TransportAnimationKey, diff --git a/wow_dbc/src/tbc_tables/transport_physics.rs b/wow_dbc/src/tbc_tables/transport_physics.rs index 2e91542..7f127cc 100644 --- a/wow_dbc/src/tbc_tables/transport_physics.rs +++ b/wow_dbc/src/tbc_tables/transport_physics.rs @@ -179,6 +179,20 @@ impl TransportPhysicsKey { } +impl From for TransportPhysicsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportPhysicsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TransportPhysicsKey { fn from(v: i32) -> Self { Self::new(v) @@ -186,6 +200,20 @@ impl From for TransportPhysicsKey { } +impl From for TransportPhysicsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportPhysicsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TransportPhysicsRow { pub id: TransportPhysicsKey, diff --git a/wow_dbc/src/tbc_tables/ui_sound_lookups.rs b/wow_dbc/src/tbc_tables/ui_sound_lookups.rs index 971f0af..1577a02 100644 --- a/wow_dbc/src/tbc_tables/ui_sound_lookups.rs +++ b/wow_dbc/src/tbc_tables/ui_sound_lookups.rs @@ -158,6 +158,20 @@ impl UISoundLookupsKey { } +impl From for UISoundLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UISoundLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for UISoundLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for UISoundLookupsKey { } +impl From for UISoundLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UISoundLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct UISoundLookupsRow { pub id: UISoundLookupsKey, diff --git a/wow_dbc/src/tbc_tables/unit_blood.rs b/wow_dbc/src/tbc_tables/unit_blood.rs index 622d5df..4a65c77 100644 --- a/wow_dbc/src/tbc_tables/unit_blood.rs +++ b/wow_dbc/src/tbc_tables/unit_blood.rs @@ -187,6 +187,20 @@ impl UnitBloodKey { } +impl From for UnitBloodKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for UnitBloodKey { fn from(v: i32) -> Self { Self::new(v) @@ -194,6 +208,20 @@ impl From for UnitBloodKey { } +impl From for UnitBloodKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct UnitBloodRow { pub id: UnitBloodKey, diff --git a/wow_dbc/src/tbc_tables/unit_blood_levels.rs b/wow_dbc/src/tbc_tables/unit_blood_levels.rs index f0e546f..7dfab70 100644 --- a/wow_dbc/src/tbc_tables/unit_blood_levels.rs +++ b/wow_dbc/src/tbc_tables/unit_blood_levels.rs @@ -119,6 +119,20 @@ impl UnitBloodLevelsKey { } +impl From for UnitBloodLevelsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodLevelsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for UnitBloodLevelsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for UnitBloodLevelsKey { } +impl From for UnitBloodLevelsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodLevelsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct UnitBloodLevelsRow { pub id: UnitBloodLevelsKey, diff --git a/wow_dbc/src/tbc_tables/video_hardware.rs b/wow_dbc/src/tbc_tables/video_hardware.rs index cb5044c..fa7e3f1 100644 --- a/wow_dbc/src/tbc_tables/video_hardware.rs +++ b/wow_dbc/src/tbc_tables/video_hardware.rs @@ -308,6 +308,20 @@ impl VideoHardwareKey { } +impl From for VideoHardwareKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VideoHardwareKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VideoHardwareKey { fn from(v: i32) -> Self { Self::new(v) @@ -315,6 +329,20 @@ impl From for VideoHardwareKey { } +impl From for VideoHardwareKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VideoHardwareKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct VideoHardwareRow { pub id: VideoHardwareKey, diff --git a/wow_dbc/src/tbc_tables/vocal_ui_sounds.rs b/wow_dbc/src/tbc_tables/vocal_ui_sounds.rs index 0084511..aca414b 100644 --- a/wow_dbc/src/tbc_tables/vocal_ui_sounds.rs +++ b/wow_dbc/src/tbc_tables/vocal_ui_sounds.rs @@ -144,6 +144,20 @@ impl VocalUISoundsKey { } +impl From for VocalUISoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VocalUISoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VocalUISoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -151,6 +165,20 @@ impl From for VocalUISoundsKey { } +impl From for VocalUISoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VocalUISoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct VocalUISoundsRow { pub id: VocalUISoundsKey, diff --git a/wow_dbc/src/tbc_tables/weapon_impact_sounds.rs b/wow_dbc/src/tbc_tables/weapon_impact_sounds.rs index c70e05d..9f29567 100644 --- a/wow_dbc/src/tbc_tables/weapon_impact_sounds.rs +++ b/wow_dbc/src/tbc_tables/weapon_impact_sounds.rs @@ -143,6 +143,20 @@ impl WeaponImpactSoundsKey { } +impl From for WeaponImpactSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponImpactSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeaponImpactSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -150,6 +164,20 @@ impl From for WeaponImpactSoundsKey { } +impl From for WeaponImpactSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponImpactSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WeaponImpactSoundsRow { pub id: WeaponImpactSoundsKey, diff --git a/wow_dbc/src/tbc_tables/weapon_swing_sounds2.rs b/wow_dbc/src/tbc_tables/weapon_swing_sounds2.rs index 69e2fcd..e0f2341 100644 --- a/wow_dbc/src/tbc_tables/weapon_swing_sounds2.rs +++ b/wow_dbc/src/tbc_tables/weapon_swing_sounds2.rs @@ -131,6 +131,20 @@ impl WeaponSwingSounds2Key { } +impl From for WeaponSwingSounds2Key { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponSwingSounds2Key { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeaponSwingSounds2Key { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for WeaponSwingSounds2Key { } +impl From for WeaponSwingSounds2Key { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponSwingSounds2Key { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WeaponSwingSounds2Row { pub id: WeaponSwingSounds2Key, diff --git a/wow_dbc/src/tbc_tables/weather.rs b/wow_dbc/src/tbc_tables/weather.rs index 458b42b..55a46ec 100644 --- a/wow_dbc/src/tbc_tables/weather.rs +++ b/wow_dbc/src/tbc_tables/weather.rs @@ -175,6 +175,20 @@ impl WeatherKey { } +impl From for WeatherKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeatherKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeatherKey { fn from(v: i32) -> Self { Self::new(v) @@ -182,6 +196,20 @@ impl From for WeatherKey { } +impl From for WeatherKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeatherKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WeatherRow { pub id: WeatherKey, diff --git a/wow_dbc/src/tbc_tables/wmo_area_table.rs b/wow_dbc/src/tbc_tables/wmo_area_table.rs index 6fd5ebf..539ceb3 100644 --- a/wow_dbc/src/tbc_tables/wmo_area_table.rs +++ b/wow_dbc/src/tbc_tables/wmo_area_table.rs @@ -217,6 +217,20 @@ impl WMOAreaTableKey { } +impl From for WMOAreaTableKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WMOAreaTableKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WMOAreaTableKey { fn from(v: i32) -> Self { Self::new(v) @@ -224,6 +238,20 @@ impl From for WMOAreaTableKey { } +impl From for WMOAreaTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WMOAreaTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WMOAreaTableRow { pub id: WMOAreaTableKey, diff --git a/wow_dbc/src/tbc_tables/world_map_area.rs b/wow_dbc/src/tbc_tables/world_map_area.rs index 7c323f2..a25ece7 100644 --- a/wow_dbc/src/tbc_tables/world_map_area.rs +++ b/wow_dbc/src/tbc_tables/world_map_area.rs @@ -201,6 +201,20 @@ impl WorldMapAreaKey { } +impl From for WorldMapAreaKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapAreaKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapAreaKey { fn from(v: i32) -> Self { Self::new(v) @@ -208,6 +222,20 @@ impl From for WorldMapAreaKey { } +impl From for WorldMapAreaKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapAreaKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldMapAreaRow { pub id: WorldMapAreaKey, diff --git a/wow_dbc/src/tbc_tables/world_map_continent.rs b/wow_dbc/src/tbc_tables/world_map_continent.rs index a9e5c59..60dd4ed 100644 --- a/wow_dbc/src/tbc_tables/world_map_continent.rs +++ b/wow_dbc/src/tbc_tables/world_map_continent.rs @@ -182,6 +182,20 @@ impl WorldMapContinentKey { } +impl From for WorldMapContinentKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapContinentKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapContinentKey { fn from(v: i32) -> Self { Self::new(v) @@ -189,6 +203,20 @@ impl From for WorldMapContinentKey { } +impl From for WorldMapContinentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapContinentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldMapContinentRow { pub id: WorldMapContinentKey, diff --git a/wow_dbc/src/tbc_tables/world_map_overlay.rs b/wow_dbc/src/tbc_tables/world_map_overlay.rs index 8417012..e103931 100644 --- a/wow_dbc/src/tbc_tables/world_map_overlay.rs +++ b/wow_dbc/src/tbc_tables/world_map_overlay.rs @@ -238,6 +238,20 @@ impl WorldMapOverlayKey { } +impl From for WorldMapOverlayKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapOverlayKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapOverlayKey { fn from(v: i32) -> Self { Self::new(v) @@ -245,6 +259,20 @@ impl From for WorldMapOverlayKey { } +impl From for WorldMapOverlayKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapOverlayKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WorldMapOverlayRow { pub id: WorldMapOverlayKey, diff --git a/wow_dbc/src/tbc_tables/world_map_transforms.rs b/wow_dbc/src/tbc_tables/world_map_transforms.rs index 6ded808..52fb491 100644 --- a/wow_dbc/src/tbc_tables/world_map_transforms.rs +++ b/wow_dbc/src/tbc_tables/world_map_transforms.rs @@ -154,6 +154,20 @@ impl WorldMapTransformsKey { } +impl From for WorldMapTransformsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapTransformsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapTransformsKey { fn from(v: i32) -> Self { Self::new(v) @@ -161,6 +175,20 @@ impl From for WorldMapTransformsKey { } +impl From for WorldMapTransformsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapTransformsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldMapTransformsRow { pub id: WorldMapTransformsKey, diff --git a/wow_dbc/src/tbc_tables/world_safe_locs.rs b/wow_dbc/src/tbc_tables/world_safe_locs.rs index fd46b11..40d0d4c 100644 --- a/wow_dbc/src/tbc_tables/world_safe_locs.rs +++ b/wow_dbc/src/tbc_tables/world_safe_locs.rs @@ -160,6 +160,20 @@ impl WorldSafeLocsKey { } +impl From for WorldSafeLocsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldSafeLocsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldSafeLocsKey { fn from(v: i32) -> Self { Self::new(v) @@ -167,6 +181,20 @@ impl From for WorldSafeLocsKey { } +impl From for WorldSafeLocsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldSafeLocsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldSafeLocsRow { pub id: WorldSafeLocsKey, diff --git a/wow_dbc/src/tbc_tables/world_state_ui.rs b/wow_dbc/src/tbc_tables/world_state_ui.rs index b73512a..1d25318 100644 --- a/wow_dbc/src/tbc_tables/world_state_ui.rs +++ b/wow_dbc/src/tbc_tables/world_state_ui.rs @@ -262,6 +262,20 @@ impl WorldStateUIKey { } +impl From for WorldStateUIKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldStateUIKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldStateUIKey { fn from(v: i32) -> Self { Self::new(v) @@ -269,6 +283,20 @@ impl From for WorldStateUIKey { } +impl From for WorldStateUIKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldStateUIKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WorldStateUIRow { pub id: WorldStateUIKey, diff --git a/wow_dbc/src/tbc_tables/wow_error_strings.rs b/wow_dbc/src/tbc_tables/wow_error_strings.rs index 872aa40..c7de3cc 100644 --- a/wow_dbc/src/tbc_tables/wow_error_strings.rs +++ b/wow_dbc/src/tbc_tables/wow_error_strings.rs @@ -162,6 +162,20 @@ impl WowError_StringsKey { } +impl From for WowError_StringsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WowError_StringsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WowError_StringsKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for WowError_StringsKey { } +impl From for WowError_StringsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WowError_StringsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WowError_StringsRow { diff --git a/wow_dbc/src/tbc_tables/zone_intro_music_table.rs b/wow_dbc/src/tbc_tables/zone_intro_music_table.rs index 2ac48f9..227e203 100644 --- a/wow_dbc/src/tbc_tables/zone_intro_music_table.rs +++ b/wow_dbc/src/tbc_tables/zone_intro_music_table.rs @@ -172,6 +172,20 @@ impl ZoneIntroMusicTableKey { } +impl From for ZoneIntroMusicTableKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneIntroMusicTableKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ZoneIntroMusicTableKey { fn from(v: i32) -> Self { Self::new(v) @@ -179,6 +193,20 @@ impl From for ZoneIntroMusicTableKey { } +impl From for ZoneIntroMusicTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneIntroMusicTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ZoneIntroMusicTableRow { pub id: ZoneIntroMusicTableKey, diff --git a/wow_dbc/src/tbc_tables/zone_music.rs b/wow_dbc/src/tbc_tables/zone_music.rs index dce80aa..82cfb66 100644 --- a/wow_dbc/src/tbc_tables/zone_music.rs +++ b/wow_dbc/src/tbc_tables/zone_music.rs @@ -180,6 +180,20 @@ impl ZoneMusicKey { } +impl From for ZoneMusicKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneMusicKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ZoneMusicKey { fn from(v: i32) -> Self { Self::new(v) @@ -187,6 +201,20 @@ impl From for ZoneMusicKey { } +impl From for ZoneMusicKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneMusicKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ZoneMusicRow { pub id: ZoneMusicKey, diff --git a/wow_dbc/src/vanilla_tables/animation_data.rs b/wow_dbc/src/vanilla_tables/animation_data.rs index f307c6c..9509d66 100644 --- a/wow_dbc/src/vanilla_tables/animation_data.rs +++ b/wow_dbc/src/vanilla_tables/animation_data.rs @@ -185,6 +185,20 @@ impl AnimationDataKey { } +impl From for AnimationDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AnimationDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for AnimationDataKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/area_poi.rs b/wow_dbc/src/vanilla_tables/area_poi.rs index 75df64e..5a27118 100644 --- a/wow_dbc/src/vanilla_tables/area_poi.rs +++ b/wow_dbc/src/vanilla_tables/area_poi.rs @@ -225,6 +225,20 @@ impl AreaPOIKey { } +impl From for AreaPOIKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaPOIKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaPOIKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/area_table.rs b/wow_dbc/src/vanilla_tables/area_table.rs index 0824c52..856e4a6 100644 --- a/wow_dbc/src/vanilla_tables/area_table.rs +++ b/wow_dbc/src/vanilla_tables/area_table.rs @@ -255,6 +255,20 @@ impl AreaTableKey { } +impl From for AreaTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaTableKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/area_trigger.rs b/wow_dbc/src/vanilla_tables/area_trigger.rs index 9870121..6d3836a 100644 --- a/wow_dbc/src/vanilla_tables/area_trigger.rs +++ b/wow_dbc/src/vanilla_tables/area_trigger.rs @@ -173,6 +173,20 @@ impl AreaTriggerKey { } +impl From for AreaTriggerKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTriggerKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaTriggerKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/attack_anim_kits.rs b/wow_dbc/src/vanilla_tables/attack_anim_kits.rs index 4e07d45..23d6350 100644 --- a/wow_dbc/src/vanilla_tables/attack_anim_kits.rs +++ b/wow_dbc/src/vanilla_tables/attack_anim_kits.rs @@ -139,6 +139,20 @@ impl AttackAnimKitsKey { } +impl From for AttackAnimKitsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AttackAnimKitsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for AttackAnimKitsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/attack_anim_types.rs b/wow_dbc/src/vanilla_tables/attack_anim_types.rs index bc6cba2..9080732 100644 --- a/wow_dbc/src/vanilla_tables/attack_anim_types.rs +++ b/wow_dbc/src/vanilla_tables/attack_anim_types.rs @@ -150,6 +150,20 @@ impl AttackAnimTypesKey { } +impl From for AttackAnimTypesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AttackAnimTypesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for AttackAnimTypesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/auction_house.rs b/wow_dbc/src/vanilla_tables/auction_house.rs index ec6406c..84ab541 100644 --- a/wow_dbc/src/vanilla_tables/auction_house.rs +++ b/wow_dbc/src/vanilla_tables/auction_house.rs @@ -164,6 +164,20 @@ impl AuctionHouseKey { } +impl From for AuctionHouseKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AuctionHouseKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for AuctionHouseKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/bank_bag_slot_prices.rs b/wow_dbc/src/vanilla_tables/bank_bag_slot_prices.rs index 9983bca..d84f748 100644 --- a/wow_dbc/src/vanilla_tables/bank_bag_slot_prices.rs +++ b/wow_dbc/src/vanilla_tables/bank_bag_slot_prices.rs @@ -116,6 +116,20 @@ impl BankBagSlotPricesKey { } +impl From for BankBagSlotPricesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BankBagSlotPricesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for BankBagSlotPricesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/camera_shakes.rs b/wow_dbc/src/vanilla_tables/camera_shakes.rs index 69921a8..f2d640a 100644 --- a/wow_dbc/src/vanilla_tables/camera_shakes.rs +++ b/wow_dbc/src/vanilla_tables/camera_shakes.rs @@ -158,6 +158,20 @@ impl CameraShakesKey { } +impl From for CameraShakesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CameraShakesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CameraShakesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/cfg_configs.rs b/wow_dbc/src/vanilla_tables/cfg_configs.rs index 7e53181..ce87885 100644 --- a/wow_dbc/src/vanilla_tables/cfg_configs.rs +++ b/wow_dbc/src/vanilla_tables/cfg_configs.rs @@ -132,6 +132,20 @@ impl Cfg_ConfigsKey { } +impl From for Cfg_ConfigsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_ConfigsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for Cfg_ConfigsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/char_hair_geosets.rs b/wow_dbc/src/vanilla_tables/char_hair_geosets.rs index eaf840f..6fe7587 100644 --- a/wow_dbc/src/vanilla_tables/char_hair_geosets.rs +++ b/wow_dbc/src/vanilla_tables/char_hair_geosets.rs @@ -146,6 +146,20 @@ impl CharHairGeosetsKey { } +impl From for CharHairGeosetsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairGeosetsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharHairGeosetsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/char_hair_textures.rs b/wow_dbc/src/vanilla_tables/char_hair_textures.rs index c5afd2c..81dce63 100644 --- a/wow_dbc/src/vanilla_tables/char_hair_textures.rs +++ b/wow_dbc/src/vanilla_tables/char_hair_textures.rs @@ -156,6 +156,20 @@ impl CharHairTexturesKey { } +impl From for CharHairTexturesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairTexturesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharHairTexturesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/char_sections.rs b/wow_dbc/src/vanilla_tables/char_sections.rs index cd4a31a..f740fac 100644 --- a/wow_dbc/src/vanilla_tables/char_sections.rs +++ b/wow_dbc/src/vanilla_tables/char_sections.rs @@ -211,6 +211,20 @@ impl CharSectionsKey { } +impl From for CharSectionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharSectionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharSectionsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/char_start_outfit.rs b/wow_dbc/src/vanilla_tables/char_start_outfit.rs index 947df8d..9516dda 100644 --- a/wow_dbc/src/vanilla_tables/char_start_outfit.rs +++ b/wow_dbc/src/vanilla_tables/char_start_outfit.rs @@ -170,6 +170,20 @@ impl CharStartOutfitKey { } +impl From for CharStartOutfitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharStartOutfitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharStartOutfitKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/character_create_cameras.rs b/wow_dbc/src/vanilla_tables/character_create_cameras.rs index 04068a1..f23bb11 100644 --- a/wow_dbc/src/vanilla_tables/character_create_cameras.rs +++ b/wow_dbc/src/vanilla_tables/character_create_cameras.rs @@ -136,6 +136,20 @@ impl CharacterCreateCamerasKey { } +impl From for CharacterCreateCamerasKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharacterCreateCamerasKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharacterCreateCamerasKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/chat_channels.rs b/wow_dbc/src/vanilla_tables/chat_channels.rs index 8ca8248..63a8e4a 100644 --- a/wow_dbc/src/vanilla_tables/chat_channels.rs +++ b/wow_dbc/src/vanilla_tables/chat_channels.rs @@ -166,6 +166,20 @@ impl ChatChannelsKey { } +impl From for ChatChannelsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatChannelsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChatChannelsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/chat_profanity.rs b/wow_dbc/src/vanilla_tables/chat_profanity.rs index 4c63d0a..af4058b 100644 --- a/wow_dbc/src/vanilla_tables/chat_profanity.rs +++ b/wow_dbc/src/vanilla_tables/chat_profanity.rs @@ -150,6 +150,20 @@ impl ChatProfanityKey { } +impl From for ChatProfanityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatProfanityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChatProfanityKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/chr_classes.rs b/wow_dbc/src/vanilla_tables/chr_classes.rs index effd046..c88e202 100644 --- a/wow_dbc/src/vanilla_tables/chr_classes.rs +++ b/wow_dbc/src/vanilla_tables/chr_classes.rs @@ -213,6 +213,20 @@ impl ChrClassesKey { } +impl From for ChrClassesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrClassesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChrClassesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/chr_races.rs b/wow_dbc/src/vanilla_tables/chr_races.rs index 61a041d..e501df9 100644 --- a/wow_dbc/src/vanilla_tables/chr_races.rs +++ b/wow_dbc/src/vanilla_tables/chr_races.rs @@ -335,6 +335,20 @@ impl ChrRacesKey { } +impl From for ChrRacesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrRacesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChrRacesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/cinematic_camera.rs b/wow_dbc/src/vanilla_tables/cinematic_camera.rs index 806c26c..cdb20fc 100644 --- a/wow_dbc/src/vanilla_tables/cinematic_camera.rs +++ b/wow_dbc/src/vanilla_tables/cinematic_camera.rs @@ -186,6 +186,20 @@ impl CinematicCameraKey { } +impl From for CinematicCameraKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicCameraKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CinematicCameraKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/cinematic_sequences.rs b/wow_dbc/src/vanilla_tables/cinematic_sequences.rs index f8d4882..5e8c6b5 100644 --- a/wow_dbc/src/vanilla_tables/cinematic_sequences.rs +++ b/wow_dbc/src/vanilla_tables/cinematic_sequences.rs @@ -127,6 +127,20 @@ impl CinematicSequencesKey { } +impl From for CinematicSequencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicSequencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CinematicSequencesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/creature_display_info.rs b/wow_dbc/src/vanilla_tables/creature_display_info.rs index 55eb39d..218d922 100644 --- a/wow_dbc/src/vanilla_tables/creature_display_info.rs +++ b/wow_dbc/src/vanilla_tables/creature_display_info.rs @@ -229,6 +229,20 @@ impl CreatureDisplayInfoKey { } +impl From for CreatureDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureDisplayInfoKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/creature_display_info_extra.rs b/wow_dbc/src/vanilla_tables/creature_display_info_extra.rs index 7e72ad1..4009514 100644 --- a/wow_dbc/src/vanilla_tables/creature_display_info_extra.rs +++ b/wow_dbc/src/vanilla_tables/creature_display_info_extra.rs @@ -218,6 +218,20 @@ impl CreatureDisplayInfoExtraKey { } +impl From for CreatureDisplayInfoExtraKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoExtraKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureDisplayInfoExtraKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/creature_family.rs b/wow_dbc/src/vanilla_tables/creature_family.rs index 5b131ad..1acb2a4 100644 --- a/wow_dbc/src/vanilla_tables/creature_family.rs +++ b/wow_dbc/src/vanilla_tables/creature_family.rs @@ -209,6 +209,20 @@ impl CreatureFamilyKey { } +impl From for CreatureFamilyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureFamilyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureFamilyKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/creature_model_data.rs b/wow_dbc/src/vanilla_tables/creature_model_data.rs index e2a628f..5a2a19b 100644 --- a/wow_dbc/src/vanilla_tables/creature_model_data.rs +++ b/wow_dbc/src/vanilla_tables/creature_model_data.rs @@ -251,6 +251,20 @@ impl CreatureModelDataKey { } +impl From for CreatureModelDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureModelDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureModelDataKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/creature_sound_data.rs b/wow_dbc/src/vanilla_tables/creature_sound_data.rs index 9719588..533af4c 100644 --- a/wow_dbc/src/vanilla_tables/creature_sound_data.rs +++ b/wow_dbc/src/vanilla_tables/creature_sound_data.rs @@ -313,6 +313,20 @@ impl CreatureSoundDataKey { } +impl From for CreatureSoundDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSoundDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureSoundDataKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/creature_spell_data.rs b/wow_dbc/src/vanilla_tables/creature_spell_data.rs index 619ed38..3304bb1 100644 --- a/wow_dbc/src/vanilla_tables/creature_spell_data.rs +++ b/wow_dbc/src/vanilla_tables/creature_spell_data.rs @@ -129,6 +129,20 @@ impl CreatureSpellDataKey { } +impl From for CreatureSpellDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSpellDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureSpellDataKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/creature_type.rs b/wow_dbc/src/vanilla_tables/creature_type.rs index 57bdd29..0cfef69 100644 --- a/wow_dbc/src/vanilla_tables/creature_type.rs +++ b/wow_dbc/src/vanilla_tables/creature_type.rs @@ -149,6 +149,20 @@ impl CreatureTypeKey { } +impl From for CreatureTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureTypeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/death_thud_lookups.rs b/wow_dbc/src/vanilla_tables/death_thud_lookups.rs index bbd80f6..351bfff 100644 --- a/wow_dbc/src/vanilla_tables/death_thud_lookups.rs +++ b/wow_dbc/src/vanilla_tables/death_thud_lookups.rs @@ -140,6 +140,20 @@ impl DeathThudLookupsKey { } +impl From for DeathThudLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeathThudLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for DeathThudLookupsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/durability_costs.rs b/wow_dbc/src/vanilla_tables/durability_costs.rs index 635d266..506a525 100644 --- a/wow_dbc/src/vanilla_tables/durability_costs.rs +++ b/wow_dbc/src/vanilla_tables/durability_costs.rs @@ -129,6 +129,20 @@ impl DurabilityCostsKey { } +impl From for DurabilityCostsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityCostsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for DurabilityCostsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/durability_quality.rs b/wow_dbc/src/vanilla_tables/durability_quality.rs index a4c142d..90d8b79 100644 --- a/wow_dbc/src/vanilla_tables/durability_quality.rs +++ b/wow_dbc/src/vanilla_tables/durability_quality.rs @@ -116,6 +116,20 @@ impl DurabilityQualityKey { } +impl From for DurabilityQualityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityQualityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for DurabilityQualityKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/emotes.rs b/wow_dbc/src/vanilla_tables/emotes.rs index 5f1b598..39463b0 100644 --- a/wow_dbc/src/vanilla_tables/emotes.rs +++ b/wow_dbc/src/vanilla_tables/emotes.rs @@ -187,6 +187,20 @@ impl EmotesKey { } +impl From for EmotesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/emotes_text.rs b/wow_dbc/src/vanilla_tables/emotes_text.rs index e9e80cb..74bdf64 100644 --- a/wow_dbc/src/vanilla_tables/emotes_text.rs +++ b/wow_dbc/src/vanilla_tables/emotes_text.rs @@ -168,6 +168,20 @@ impl EmotesTextKey { } +impl From for EmotesTextKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/emotes_text_data.rs b/wow_dbc/src/vanilla_tables/emotes_text_data.rs index b90d58d..5762af9 100644 --- a/wow_dbc/src/vanilla_tables/emotes_text_data.rs +++ b/wow_dbc/src/vanilla_tables/emotes_text_data.rs @@ -142,6 +142,20 @@ impl EmotesTextDataKey { } +impl From for EmotesTextDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextDataKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/emotes_text_sound.rs b/wow_dbc/src/vanilla_tables/emotes_text_sound.rs index b6c1ca7..38ed28e 100644 --- a/wow_dbc/src/vanilla_tables/emotes_text_sound.rs +++ b/wow_dbc/src/vanilla_tables/emotes_text_sound.rs @@ -141,6 +141,20 @@ impl EmotesTextSoundKey { } +impl From for EmotesTextSoundKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextSoundKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextSoundKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/environmental_damage.rs b/wow_dbc/src/vanilla_tables/environmental_damage.rs index 9a25f2e..6d8ea5e 100644 --- a/wow_dbc/src/vanilla_tables/environmental_damage.rs +++ b/wow_dbc/src/vanilla_tables/environmental_damage.rs @@ -124,6 +124,20 @@ impl EnvironmentalDamageKey { } +impl From for EnvironmentalDamageKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EnvironmentalDamageKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for EnvironmentalDamageKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/exhaustion.rs b/wow_dbc/src/vanilla_tables/exhaustion.rs index c074e21..d1e9d8a 100644 --- a/wow_dbc/src/vanilla_tables/exhaustion.rs +++ b/wow_dbc/src/vanilla_tables/exhaustion.rs @@ -177,6 +177,20 @@ impl ExhaustionKey { } +impl From for ExhaustionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ExhaustionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ExhaustionKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/faction.rs b/wow_dbc/src/vanilla_tables/faction.rs index abfb5c0..ae0def9 100644 --- a/wow_dbc/src/vanilla_tables/faction.rs +++ b/wow_dbc/src/vanilla_tables/faction.rs @@ -219,6 +219,20 @@ impl FactionKey { } +impl From for FactionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/faction_group.rs b/wow_dbc/src/vanilla_tables/faction_group.rs index d54e30f..f442011 100644 --- a/wow_dbc/src/vanilla_tables/faction_group.rs +++ b/wow_dbc/src/vanilla_tables/faction_group.rs @@ -167,6 +167,20 @@ impl FactionGroupKey { } +impl From for FactionGroupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionGroupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionGroupKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/faction_template.rs b/wow_dbc/src/vanilla_tables/faction_template.rs index b11c4df..a75f800 100644 --- a/wow_dbc/src/vanilla_tables/faction_template.rs +++ b/wow_dbc/src/vanilla_tables/faction_template.rs @@ -166,6 +166,20 @@ impl FactionTemplateKey { } +impl From for FactionTemplateKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionTemplateKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionTemplateKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/footprint_textures.rs b/wow_dbc/src/vanilla_tables/footprint_textures.rs index 1e4a992..cae2f93 100644 --- a/wow_dbc/src/vanilla_tables/footprint_textures.rs +++ b/wow_dbc/src/vanilla_tables/footprint_textures.rs @@ -150,6 +150,20 @@ impl FootprintTexturesKey { } +impl From for FootprintTexturesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootprintTexturesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for FootprintTexturesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/footstep_terrain_lookup.rs b/wow_dbc/src/vanilla_tables/footstep_terrain_lookup.rs index 9d2c024..56b1fcd 100644 --- a/wow_dbc/src/vanilla_tables/footstep_terrain_lookup.rs +++ b/wow_dbc/src/vanilla_tables/footstep_terrain_lookup.rs @@ -140,6 +140,20 @@ impl FootstepTerrainLookupKey { } +impl From for FootstepTerrainLookupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootstepTerrainLookupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for FootstepTerrainLookupKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/game_object_art_kit.rs b/wow_dbc/src/vanilla_tables/game_object_art_kit.rs index 6e25993..8d6332a 100644 --- a/wow_dbc/src/vanilla_tables/game_object_art_kit.rs +++ b/wow_dbc/src/vanilla_tables/game_object_art_kit.rs @@ -202,6 +202,20 @@ impl GameObjectArtKitKey { } +impl From for GameObjectArtKitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectArtKitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameObjectArtKitKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/game_object_display_info.rs b/wow_dbc/src/vanilla_tables/game_object_display_info.rs index d17f9ce..7c3ae57 100644 --- a/wow_dbc/src/vanilla_tables/game_object_display_info.rs +++ b/wow_dbc/src/vanilla_tables/game_object_display_info.rs @@ -160,6 +160,20 @@ impl GameObjectDisplayInfoKey { } +impl From for GameObjectDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameObjectDisplayInfoKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/game_tips.rs b/wow_dbc/src/vanilla_tables/game_tips.rs index 2c802d3..dbf413b 100644 --- a/wow_dbc/src/vanilla_tables/game_tips.rs +++ b/wow_dbc/src/vanilla_tables/game_tips.rs @@ -142,6 +142,20 @@ impl GameTipsKey { } +impl From for GameTipsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameTipsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameTipsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/gm_survey_questions.rs b/wow_dbc/src/vanilla_tables/gm_survey_questions.rs index accd82b..7c23055 100644 --- a/wow_dbc/src/vanilla_tables/gm_survey_questions.rs +++ b/wow_dbc/src/vanilla_tables/gm_survey_questions.rs @@ -142,6 +142,20 @@ impl GMSurveyQuestionsKey { } +impl From for GMSurveyQuestionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyQuestionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveyQuestionsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/gm_survey_surveys.rs b/wow_dbc/src/vanilla_tables/gm_survey_surveys.rs index f04572e..aafa3f1 100644 --- a/wow_dbc/src/vanilla_tables/gm_survey_surveys.rs +++ b/wow_dbc/src/vanilla_tables/gm_survey_surveys.rs @@ -119,6 +119,20 @@ impl GMSurveySurveysKey { } +impl From for GMSurveySurveysKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveySurveysKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveySurveysKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/gm_ticket_category.rs b/wow_dbc/src/vanilla_tables/gm_ticket_category.rs index 4fb8b89..f291e7e 100644 --- a/wow_dbc/src/vanilla_tables/gm_ticket_category.rs +++ b/wow_dbc/src/vanilla_tables/gm_ticket_category.rs @@ -142,6 +142,20 @@ impl GMTicketCategoryKey { } +impl From for GMTicketCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMTicketCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMTicketCategoryKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/ground_effect_doodad.rs b/wow_dbc/src/vanilla_tables/ground_effect_doodad.rs index f2fb912..c0106d0 100644 --- a/wow_dbc/src/vanilla_tables/ground_effect_doodad.rs +++ b/wow_dbc/src/vanilla_tables/ground_effect_doodad.rs @@ -157,6 +157,20 @@ impl GroundEffectDoodadKey { } +impl From for GroundEffectDoodadKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectDoodadKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GroundEffectDoodadKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/ground_effect_texture.rs b/wow_dbc/src/vanilla_tables/ground_effect_texture.rs index 2b785e4..cd09494 100644 --- a/wow_dbc/src/vanilla_tables/ground_effect_texture.rs +++ b/wow_dbc/src/vanilla_tables/ground_effect_texture.rs @@ -134,6 +134,20 @@ impl GroundEffectTextureKey { } +impl From for GroundEffectTextureKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectTextureKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for GroundEffectTextureKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/helmet_geoset_vis_data.rs b/wow_dbc/src/vanilla_tables/helmet_geoset_vis_data.rs index b861fe1..6e66458 100644 --- a/wow_dbc/src/vanilla_tables/helmet_geoset_vis_data.rs +++ b/wow_dbc/src/vanilla_tables/helmet_geoset_vis_data.rs @@ -119,6 +119,20 @@ impl HelmetGeosetVisDataKey { } +impl From for HelmetGeosetVisDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HelmetGeosetVisDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for HelmetGeosetVisDataKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_bag_family.rs b/wow_dbc/src/vanilla_tables/item_bag_family.rs index a921a1a..3b69ea3 100644 --- a/wow_dbc/src/vanilla_tables/item_bag_family.rs +++ b/wow_dbc/src/vanilla_tables/item_bag_family.rs @@ -142,6 +142,20 @@ impl ItemBagFamilyKey { } +impl From for ItemBagFamilyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemBagFamilyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemBagFamilyKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_class.rs b/wow_dbc/src/vanilla_tables/item_class.rs index cca0037..7db6eb1 100644 --- a/wow_dbc/src/vanilla_tables/item_class.rs +++ b/wow_dbc/src/vanilla_tables/item_class.rs @@ -156,6 +156,20 @@ impl ItemClassKey { } +impl From for ItemClassKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemClassKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemClassKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_display_info.rs b/wow_dbc/src/vanilla_tables/item_display_info.rs index f32c164..633a7f7 100644 --- a/wow_dbc/src/vanilla_tables/item_display_info.rs +++ b/wow_dbc/src/vanilla_tables/item_display_info.rs @@ -316,6 +316,20 @@ impl ItemDisplayInfoKey { } +impl From for ItemDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemDisplayInfoKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_group_sounds.rs b/wow_dbc/src/vanilla_tables/item_group_sounds.rs index 9963b9f..379b342 100644 --- a/wow_dbc/src/vanilla_tables/item_group_sounds.rs +++ b/wow_dbc/src/vanilla_tables/item_group_sounds.rs @@ -119,6 +119,20 @@ impl ItemGroupSoundsKey { } +impl From for ItemGroupSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemGroupSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemGroupSoundsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_pet_food.rs b/wow_dbc/src/vanilla_tables/item_pet_food.rs index 12535c6..4cccc34 100644 --- a/wow_dbc/src/vanilla_tables/item_pet_food.rs +++ b/wow_dbc/src/vanilla_tables/item_pet_food.rs @@ -142,6 +142,20 @@ impl ItemPetFoodKey { } +impl From for ItemPetFoodKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemPetFoodKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemPetFoodKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_random_properties.rs b/wow_dbc/src/vanilla_tables/item_random_properties.rs index a0e9fad..ddf7f2a 100644 --- a/wow_dbc/src/vanilla_tables/item_random_properties.rs +++ b/wow_dbc/src/vanilla_tables/item_random_properties.rs @@ -170,6 +170,20 @@ impl ItemRandomPropertiesKey { } +impl From for ItemRandomPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemRandomPropertiesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_set.rs b/wow_dbc/src/vanilla_tables/item_set.rs index c21e35d..9db6b37 100644 --- a/wow_dbc/src/vanilla_tables/item_set.rs +++ b/wow_dbc/src/vanilla_tables/item_set.rs @@ -197,6 +197,20 @@ impl ItemSetKey { } +impl From for ItemSetKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemSetKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemSetKey { fn from(v: i32) -> Self { Self::new(v) @@ -204,6 +218,20 @@ impl From for ItemSetKey { } +impl From for ItemSetKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemSetKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemSetRow { pub id: ItemSetKey, diff --git a/wow_dbc/src/vanilla_tables/item_visual_effects.rs b/wow_dbc/src/vanilla_tables/item_visual_effects.rs index 13f2637..e397676 100644 --- a/wow_dbc/src/vanilla_tables/item_visual_effects.rs +++ b/wow_dbc/src/vanilla_tables/item_visual_effects.rs @@ -150,6 +150,20 @@ impl ItemVisualEffectsKey { } +impl From for ItemVisualEffectsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualEffectsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemVisualEffectsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/item_visuals.rs b/wow_dbc/src/vanilla_tables/item_visuals.rs index 2c9e813..de4c58e 100644 --- a/wow_dbc/src/vanilla_tables/item_visuals.rs +++ b/wow_dbc/src/vanilla_tables/item_visuals.rs @@ -119,6 +119,20 @@ impl ItemVisualsKey { } +impl From for ItemVisualsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemVisualsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/language_words.rs b/wow_dbc/src/vanilla_tables/language_words.rs index 1ca5575..231a3e6 100644 --- a/wow_dbc/src/vanilla_tables/language_words.rs +++ b/wow_dbc/src/vanilla_tables/language_words.rs @@ -158,6 +158,20 @@ impl LanguageWordsKey { } +impl From for LanguageWordsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguageWordsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LanguageWordsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/languages.rs b/wow_dbc/src/vanilla_tables/languages.rs index bb0fe56..4f439ee 100644 --- a/wow_dbc/src/vanilla_tables/languages.rs +++ b/wow_dbc/src/vanilla_tables/languages.rs @@ -142,6 +142,20 @@ impl LanguagesKey { } +impl From for LanguagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LanguagesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/lfg_dungeons.rs b/wow_dbc/src/vanilla_tables/lfg_dungeons.rs index c29f484..250d321 100644 --- a/wow_dbc/src/vanilla_tables/lfg_dungeons.rs +++ b/wow_dbc/src/vanilla_tables/lfg_dungeons.rs @@ -170,6 +170,20 @@ impl LFGDungeonsKey { } +impl From for LFGDungeonsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LFGDungeonsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/light.rs b/wow_dbc/src/vanilla_tables/light.rs index 14072d5..a333d42 100644 --- a/wow_dbc/src/vanilla_tables/light.rs +++ b/wow_dbc/src/vanilla_tables/light.rs @@ -162,6 +162,20 @@ impl LightKey { } +impl From for LightKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/light_float_band.rs b/wow_dbc/src/vanilla_tables/light_float_band.rs index e90d10c..233bf36 100644 --- a/wow_dbc/src/vanilla_tables/light_float_band.rs +++ b/wow_dbc/src/vanilla_tables/light_float_band.rs @@ -136,6 +136,20 @@ impl LightFloatBandKey { } +impl From for LightFloatBandKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightFloatBandKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightFloatBandKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/light_int_band.rs b/wow_dbc/src/vanilla_tables/light_int_band.rs index 01a1934..eeff045 100644 --- a/wow_dbc/src/vanilla_tables/light_int_band.rs +++ b/wow_dbc/src/vanilla_tables/light_int_band.rs @@ -136,6 +136,20 @@ impl LightIntBandKey { } +impl From for LightIntBandKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightIntBandKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightIntBandKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/light_params.rs b/wow_dbc/src/vanilla_tables/light_params.rs index 78f902a..149a258 100644 --- a/wow_dbc/src/vanilla_tables/light_params.rs +++ b/wow_dbc/src/vanilla_tables/light_params.rs @@ -166,6 +166,20 @@ impl LightParamsKey { } +impl From for LightParamsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightParamsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightParamsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/light_skybox.rs b/wow_dbc/src/vanilla_tables/light_skybox.rs index 8a49f31..ed59d60 100644 --- a/wow_dbc/src/vanilla_tables/light_skybox.rs +++ b/wow_dbc/src/vanilla_tables/light_skybox.rs @@ -150,6 +150,20 @@ impl LightSkyboxKey { } +impl From for LightSkyboxKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightSkyboxKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightSkyboxKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/liquid_type.rs b/wow_dbc/src/vanilla_tables/liquid_type.rs index 6a44cb0..8634032 100644 --- a/wow_dbc/src/vanilla_tables/liquid_type.rs +++ b/wow_dbc/src/vanilla_tables/liquid_type.rs @@ -165,6 +165,20 @@ impl LiquidTypeKey { } +impl From for LiquidTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LiquidTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LiquidTypeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/loading_screen_taxi_splines.rs b/wow_dbc/src/vanilla_tables/loading_screen_taxi_splines.rs index a721238..fd80d3b 100644 --- a/wow_dbc/src/vanilla_tables/loading_screen_taxi_splines.rs +++ b/wow_dbc/src/vanilla_tables/loading_screen_taxi_splines.rs @@ -144,6 +144,20 @@ impl LoadingScreenTaxiSplinesKey { } +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LoadingScreenTaxiSplinesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/loading_screens.rs b/wow_dbc/src/vanilla_tables/loading_screens.rs index c4848d8..3a20fd4 100644 --- a/wow_dbc/src/vanilla_tables/loading_screens.rs +++ b/wow_dbc/src/vanilla_tables/loading_screens.rs @@ -168,6 +168,20 @@ impl LoadingScreensKey { } +impl From for LoadingScreensKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreensKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LoadingScreensKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/lock.rs b/wow_dbc/src/vanilla_tables/lock.rs index c97da51..571d1af 100644 --- a/wow_dbc/src/vanilla_tables/lock.rs +++ b/wow_dbc/src/vanilla_tables/lock.rs @@ -156,6 +156,20 @@ impl LockKey { } +impl From for LockKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LockKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/lock_type.rs b/wow_dbc/src/vanilla_tables/lock_type.rs index 86ee05f..303b4e7 100644 --- a/wow_dbc/src/vanilla_tables/lock_type.rs +++ b/wow_dbc/src/vanilla_tables/lock_type.rs @@ -178,6 +178,20 @@ impl LockTypeKey { } +impl From for LockTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for LockTypeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/mail_template.rs b/wow_dbc/src/vanilla_tables/mail_template.rs index 5ce68f0..494fc29 100644 --- a/wow_dbc/src/vanilla_tables/mail_template.rs +++ b/wow_dbc/src/vanilla_tables/mail_template.rs @@ -142,6 +142,20 @@ impl MailTemplateKey { } +impl From for MailTemplateKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MailTemplateKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for MailTemplateKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/map.rs b/wow_dbc/src/vanilla_tables/map.rs index 87ee2e2..bebd03b 100644 --- a/wow_dbc/src/vanilla_tables/map.rs +++ b/wow_dbc/src/vanilla_tables/map.rs @@ -256,6 +256,20 @@ impl MapKey { } +impl From for MapKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MapKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for MapKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/material.rs b/wow_dbc/src/vanilla_tables/material.rs index 716dae9..0cc05fe 100644 --- a/wow_dbc/src/vanilla_tables/material.rs +++ b/wow_dbc/src/vanilla_tables/material.rs @@ -124,6 +124,20 @@ impl MaterialKey { } +impl From for MaterialKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MaterialKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for MaterialKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/name_gen.rs b/wow_dbc/src/vanilla_tables/name_gen.rs index 1f250a3..778e2be 100644 --- a/wow_dbc/src/vanilla_tables/name_gen.rs +++ b/wow_dbc/src/vanilla_tables/name_gen.rs @@ -166,6 +166,20 @@ impl NameGenKey { } +impl From for NameGenKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NameGenKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for NameGenKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/names_profanity.rs b/wow_dbc/src/vanilla_tables/names_profanity.rs index 1112541..59769a5 100644 --- a/wow_dbc/src/vanilla_tables/names_profanity.rs +++ b/wow_dbc/src/vanilla_tables/names_profanity.rs @@ -150,6 +150,20 @@ impl NamesProfanityKey { } +impl From for NamesProfanityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesProfanityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for NamesProfanityKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/names_reserved.rs b/wow_dbc/src/vanilla_tables/names_reserved.rs index 58df988..56278f9 100644 --- a/wow_dbc/src/vanilla_tables/names_reserved.rs +++ b/wow_dbc/src/vanilla_tables/names_reserved.rs @@ -150,6 +150,20 @@ impl NamesReservedKey { } +impl From for NamesReservedKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesReservedKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for NamesReservedKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/npc_sounds.rs b/wow_dbc/src/vanilla_tables/npc_sounds.rs index 3231074..240376a 100644 --- a/wow_dbc/src/vanilla_tables/npc_sounds.rs +++ b/wow_dbc/src/vanilla_tables/npc_sounds.rs @@ -119,6 +119,20 @@ impl NPCSoundsKey { } +impl From for NPCSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NPCSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for NPCSoundsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/package.rs b/wow_dbc/src/vanilla_tables/package.rs index 16f234e..206a10e 100644 --- a/wow_dbc/src/vanilla_tables/package.rs +++ b/wow_dbc/src/vanilla_tables/package.rs @@ -167,6 +167,20 @@ impl PackageKey { } +impl From for PackageKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PackageKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for PackageKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/page_text_material.rs b/wow_dbc/src/vanilla_tables/page_text_material.rs index bf170d4..0be2e56 100644 --- a/wow_dbc/src/vanilla_tables/page_text_material.rs +++ b/wow_dbc/src/vanilla_tables/page_text_material.rs @@ -150,6 +150,20 @@ impl PageTextMaterialKey { } +impl From for PageTextMaterialKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PageTextMaterialKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for PageTextMaterialKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/pet_loyalty.rs b/wow_dbc/src/vanilla_tables/pet_loyalty.rs index 74a4a10..9e4b6a9 100644 --- a/wow_dbc/src/vanilla_tables/pet_loyalty.rs +++ b/wow_dbc/src/vanilla_tables/pet_loyalty.rs @@ -142,6 +142,20 @@ impl PetLoyaltyKey { } +impl From for PetLoyaltyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetLoyaltyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for PetLoyaltyKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/pet_personality.rs b/wow_dbc/src/vanilla_tables/pet_personality.rs index 8706f3e..dea3255 100644 --- a/wow_dbc/src/vanilla_tables/pet_personality.rs +++ b/wow_dbc/src/vanilla_tables/pet_personality.rs @@ -205,6 +205,20 @@ impl PetPersonalityKey { } +impl From for PetPersonalityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetPersonalityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for PetPersonalityKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/quest_info.rs b/wow_dbc/src/vanilla_tables/quest_info.rs index cc68d2d..5a8dea1 100644 --- a/wow_dbc/src/vanilla_tables/quest_info.rs +++ b/wow_dbc/src/vanilla_tables/quest_info.rs @@ -142,6 +142,20 @@ impl QuestInfoKey { } +impl From for QuestInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestInfoKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/quest_sort.rs b/wow_dbc/src/vanilla_tables/quest_sort.rs index ca27c99..0b4ea56 100644 --- a/wow_dbc/src/vanilla_tables/quest_sort.rs +++ b/wow_dbc/src/vanilla_tables/quest_sort.rs @@ -142,6 +142,20 @@ impl QuestSortKey { } +impl From for QuestSortKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestSortKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestSortKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/resistances.rs b/wow_dbc/src/vanilla_tables/resistances.rs index f860f58..9dcd0d5 100644 --- a/wow_dbc/src/vanilla_tables/resistances.rs +++ b/wow_dbc/src/vanilla_tables/resistances.rs @@ -157,6 +157,20 @@ impl ResistancesKey { } +impl From for ResistancesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ResistancesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ResistancesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/server_messages.rs b/wow_dbc/src/vanilla_tables/server_messages.rs index dc0971b..19585ec 100644 --- a/wow_dbc/src/vanilla_tables/server_messages.rs +++ b/wow_dbc/src/vanilla_tables/server_messages.rs @@ -142,6 +142,20 @@ impl ServerMessagesKey { } +impl From for ServerMessagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ServerMessagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ServerMessagesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/sheathe_sound_lookups.rs b/wow_dbc/src/vanilla_tables/sheathe_sound_lookups.rs index d3e1de1..2aa11d5 100644 --- a/wow_dbc/src/vanilla_tables/sheathe_sound_lookups.rs +++ b/wow_dbc/src/vanilla_tables/sheathe_sound_lookups.rs @@ -153,6 +153,20 @@ impl SheatheSoundLookupsKey { } +impl From for SheatheSoundLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SheatheSoundLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SheatheSoundLookupsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/skill_costs_data.rs b/wow_dbc/src/vanilla_tables/skill_costs_data.rs index 2903648..6a97634 100644 --- a/wow_dbc/src/vanilla_tables/skill_costs_data.rs +++ b/wow_dbc/src/vanilla_tables/skill_costs_data.rs @@ -126,6 +126,20 @@ impl SkillCostsDataKey { } +impl From for SkillCostsDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillCostsDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillCostsDataKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/skill_line.rs b/wow_dbc/src/vanilla_tables/skill_line.rs index 5c29c7d..4c04ab5 100644 --- a/wow_dbc/src/vanilla_tables/skill_line.rs +++ b/wow_dbc/src/vanilla_tables/skill_line.rs @@ -175,6 +175,20 @@ impl SkillLineKey { } +impl From for SkillLineKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/skill_line_ability.rs b/wow_dbc/src/vanilla_tables/skill_line_ability.rs index d368534..a6d80cc 100644 --- a/wow_dbc/src/vanilla_tables/skill_line_ability.rs +++ b/wow_dbc/src/vanilla_tables/skill_line_ability.rs @@ -207,6 +207,20 @@ impl SkillLineAbilityKey { } +impl From for SkillLineAbilityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineAbilityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineAbilityKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/skill_line_category.rs b/wow_dbc/src/vanilla_tables/skill_line_category.rs index 400d934..bf448ba 100644 --- a/wow_dbc/src/vanilla_tables/skill_line_category.rs +++ b/wow_dbc/src/vanilla_tables/skill_line_category.rs @@ -149,6 +149,20 @@ impl SkillLineCategoryKey { } +impl From for SkillLineCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineCategoryKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/skill_race_class_info.rs b/wow_dbc/src/vanilla_tables/skill_race_class_info.rs index 595424c..4a24d6b 100644 --- a/wow_dbc/src/vanilla_tables/skill_race_class_info.rs +++ b/wow_dbc/src/vanilla_tables/skill_race_class_info.rs @@ -163,6 +163,20 @@ impl SkillRaceClassInfoKey { } +impl From for SkillRaceClassInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillRaceClassInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillRaceClassInfoKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/skill_tiers.rs b/wow_dbc/src/vanilla_tables/skill_tiers.rs index 5f52d16..fca252e 100644 --- a/wow_dbc/src/vanilla_tables/skill_tiers.rs +++ b/wow_dbc/src/vanilla_tables/skill_tiers.rs @@ -129,6 +129,20 @@ impl SkillTiersKey { } +impl From for SkillTiersKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillTiersKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillTiersKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/sound_ambience.rs b/wow_dbc/src/vanilla_tables/sound_ambience.rs index d6ec365..ea60824 100644 --- a/wow_dbc/src/vanilla_tables/sound_ambience.rs +++ b/wow_dbc/src/vanilla_tables/sound_ambience.rs @@ -124,6 +124,20 @@ impl SoundAmbienceKey { } +impl From for SoundAmbienceKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundAmbienceKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundAmbienceKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/sound_character_macro_lines.rs b/wow_dbc/src/vanilla_tables/sound_character_macro_lines.rs index df4f97a..280e878 100644 --- a/wow_dbc/src/vanilla_tables/sound_character_macro_lines.rs +++ b/wow_dbc/src/vanilla_tables/sound_character_macro_lines.rs @@ -140,6 +140,20 @@ impl SoundCharacterMacroLinesKey { } +impl From for SoundCharacterMacroLinesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundCharacterMacroLinesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundCharacterMacroLinesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/sound_entries.rs b/wow_dbc/src/vanilla_tables/sound_entries.rs index 9034e73..e93815a 100644 --- a/wow_dbc/src/vanilla_tables/sound_entries.rs +++ b/wow_dbc/src/vanilla_tables/sound_entries.rs @@ -255,6 +255,20 @@ impl SoundEntriesKey { } +impl From for SoundEntriesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEntriesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundEntriesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/sound_provider_preferences.rs b/wow_dbc/src/vanilla_tables/sound_provider_preferences.rs index 566f55e..8dcfb93 100644 --- a/wow_dbc/src/vanilla_tables/sound_provider_preferences.rs +++ b/wow_dbc/src/vanilla_tables/sound_provider_preferences.rs @@ -304,6 +304,20 @@ impl SoundProviderPreferencesKey { } +impl From for SoundProviderPreferencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundProviderPreferencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundProviderPreferencesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/sound_sample_preferences.rs b/wow_dbc/src/vanilla_tables/sound_sample_preferences.rs index cfb3a8b..39c987d 100644 --- a/wow_dbc/src/vanilla_tables/sound_sample_preferences.rs +++ b/wow_dbc/src/vanilla_tables/sound_sample_preferences.rs @@ -119,6 +119,20 @@ impl SoundSamplePreferencesKey { } +impl From for SoundSamplePreferencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundSamplePreferencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundSamplePreferencesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/sound_water_type.rs b/wow_dbc/src/vanilla_tables/sound_water_type.rs index 80d95f4..a0afc80 100644 --- a/wow_dbc/src/vanilla_tables/sound_water_type.rs +++ b/wow_dbc/src/vanilla_tables/sound_water_type.rs @@ -132,6 +132,20 @@ impl SoundWaterTypeKey { } +impl From for SoundWaterTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundWaterTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundWaterTypeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spam_messages.rs b/wow_dbc/src/vanilla_tables/spam_messages.rs index b31184a..f1e5c3e 100644 --- a/wow_dbc/src/vanilla_tables/spam_messages.rs +++ b/wow_dbc/src/vanilla_tables/spam_messages.rs @@ -150,6 +150,20 @@ impl SpamMessagesKey { } +impl From for SpamMessagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpamMessagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpamMessagesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell.rs b/wow_dbc/src/vanilla_tables/spell.rs index e9ab119..6186331 100644 --- a/wow_dbc/src/vanilla_tables/spell.rs +++ b/wow_dbc/src/vanilla_tables/spell.rs @@ -803,6 +803,20 @@ impl SpellKey { } +impl From for SpellKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_aura_names.rs b/wow_dbc/src/vanilla_tables/spell_aura_names.rs index f301374..6dd2d2a 100644 --- a/wow_dbc/src/vanilla_tables/spell_aura_names.rs +++ b/wow_dbc/src/vanilla_tables/spell_aura_names.rs @@ -167,6 +167,20 @@ impl SpellAuraNamesKey { } +impl From for SpellAuraNamesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellAuraNamesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellAuraNamesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_cast_times.rs b/wow_dbc/src/vanilla_tables/spell_cast_times.rs index a69db67..e752b89 100644 --- a/wow_dbc/src/vanilla_tables/spell_cast_times.rs +++ b/wow_dbc/src/vanilla_tables/spell_cast_times.rs @@ -130,6 +130,20 @@ impl SpellCastTimesKey { } +impl From for SpellCastTimesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCastTimesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellCastTimesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_category.rs b/wow_dbc/src/vanilla_tables/spell_category.rs index 12e07f4..c1691b2 100644 --- a/wow_dbc/src/vanilla_tables/spell_category.rs +++ b/wow_dbc/src/vanilla_tables/spell_category.rs @@ -116,6 +116,20 @@ impl SpellCategoryKey { } +impl From for SpellCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellCategoryKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_chain_effects.rs b/wow_dbc/src/vanilla_tables/spell_chain_effects.rs index 2cf9154..c17d96f 100644 --- a/wow_dbc/src/vanilla_tables/spell_chain_effects.rs +++ b/wow_dbc/src/vanilla_tables/spell_chain_effects.rs @@ -192,6 +192,20 @@ impl SpellChainEffectsKey { } +impl From for SpellChainEffectsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellChainEffectsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellChainEffectsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_dispel_type.rs b/wow_dbc/src/vanilla_tables/spell_dispel_type.rs index a1f9e80..1446b8e 100644 --- a/wow_dbc/src/vanilla_tables/spell_dispel_type.rs +++ b/wow_dbc/src/vanilla_tables/spell_dispel_type.rs @@ -156,6 +156,20 @@ impl SpellDispelTypeKey { } +impl From for SpellDispelTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDispelTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDispelTypeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_duration.rs b/wow_dbc/src/vanilla_tables/spell_duration.rs index 0815599..7a845d3 100644 --- a/wow_dbc/src/vanilla_tables/spell_duration.rs +++ b/wow_dbc/src/vanilla_tables/spell_duration.rs @@ -130,6 +130,20 @@ impl SpellDurationKey { } +impl From for SpellDurationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDurationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDurationKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_effect_camera_shakes.rs b/wow_dbc/src/vanilla_tables/spell_effect_camera_shakes.rs index 29608cb..81f3dfb 100644 --- a/wow_dbc/src/vanilla_tables/spell_effect_camera_shakes.rs +++ b/wow_dbc/src/vanilla_tables/spell_effect_camera_shakes.rs @@ -119,6 +119,20 @@ impl SpellEffectCameraShakesKey { } +impl From for SpellEffectCameraShakesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellEffectCameraShakesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellEffectCameraShakesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_effect_names.rs b/wow_dbc/src/vanilla_tables/spell_effect_names.rs index a20ab2e..ab53f41 100644 --- a/wow_dbc/src/vanilla_tables/spell_effect_names.rs +++ b/wow_dbc/src/vanilla_tables/spell_effect_names.rs @@ -142,6 +142,20 @@ impl SpellEffectNamesKey { } +impl From for SpellEffectNamesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellEffectNamesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellEffectNamesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_focus_object.rs b/wow_dbc/src/vanilla_tables/spell_focus_object.rs index fba5179..ba40859 100644 --- a/wow_dbc/src/vanilla_tables/spell_focus_object.rs +++ b/wow_dbc/src/vanilla_tables/spell_focus_object.rs @@ -142,6 +142,20 @@ impl SpellFocusObjectKey { } +impl From for SpellFocusObjectKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellFocusObjectKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellFocusObjectKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_icon.rs b/wow_dbc/src/vanilla_tables/spell_icon.rs index 275bde0..f6a2cdf 100644 --- a/wow_dbc/src/vanilla_tables/spell_icon.rs +++ b/wow_dbc/src/vanilla_tables/spell_icon.rs @@ -150,6 +150,20 @@ impl SpellIconKey { } +impl From for SpellIconKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellIconKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellIconKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_item_enchantment.rs b/wow_dbc/src/vanilla_tables/spell_item_enchantment.rs index 10c757a..5a644a8 100644 --- a/wow_dbc/src/vanilla_tables/spell_item_enchantment.rs +++ b/wow_dbc/src/vanilla_tables/spell_item_enchantment.rs @@ -197,6 +197,20 @@ impl SpellItemEnchantmentKey { } +impl From for SpellItemEnchantmentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellItemEnchantmentKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_mechanic.rs b/wow_dbc/src/vanilla_tables/spell_mechanic.rs index 3eb7731..06f5431 100644 --- a/wow_dbc/src/vanilla_tables/spell_mechanic.rs +++ b/wow_dbc/src/vanilla_tables/spell_mechanic.rs @@ -142,6 +142,20 @@ impl SpellMechanicKey { } +impl From for SpellMechanicKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMechanicKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellMechanicKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_radius.rs b/wow_dbc/src/vanilla_tables/spell_radius.rs index 82345fd..4ddb1b4 100644 --- a/wow_dbc/src/vanilla_tables/spell_radius.rs +++ b/wow_dbc/src/vanilla_tables/spell_radius.rs @@ -130,6 +130,20 @@ impl SpellRadiusKey { } +impl From for SpellRadiusKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRadiusKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellRadiusKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_range.rs b/wow_dbc/src/vanilla_tables/spell_range.rs index 20be629..90c92ea 100644 --- a/wow_dbc/src/vanilla_tables/spell_range.rs +++ b/wow_dbc/src/vanilla_tables/spell_range.rs @@ -172,6 +172,20 @@ impl SpellRangeKey { } +impl From for SpellRangeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRangeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellRangeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_shapeshift_form.rs b/wow_dbc/src/vanilla_tables/spell_shapeshift_form.rs index d1eb572..b1cb8cb 100644 --- a/wow_dbc/src/vanilla_tables/spell_shapeshift_form.rs +++ b/wow_dbc/src/vanilla_tables/spell_shapeshift_form.rs @@ -171,6 +171,20 @@ impl SpellShapeshiftFormKey { } +impl From for SpellShapeshiftFormKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellShapeshiftFormKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellShapeshiftFormKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_visual.rs b/wow_dbc/src/vanilla_tables/spell_visual.rs index b69d281..a877263 100644 --- a/wow_dbc/src/vanilla_tables/spell_visual.rs +++ b/wow_dbc/src/vanilla_tables/spell_visual.rs @@ -216,6 +216,20 @@ impl SpellVisualKey { } +impl From for SpellVisualKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_visual_effect_name.rs b/wow_dbc/src/vanilla_tables/spell_visual_effect_name.rs index e0cb3f3..cf6dea3 100644 --- a/wow_dbc/src/vanilla_tables/spell_visual_effect_name.rs +++ b/wow_dbc/src/vanilla_tables/spell_visual_effect_name.rs @@ -182,6 +182,20 @@ impl SpellVisualEffectNameKey { } +impl From for SpellVisualEffectNameKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualEffectNameKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualEffectNameKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_visual_kit.rs b/wow_dbc/src/vanilla_tables/spell_visual_kit.rs index 231193b..00d9359 100644 --- a/wow_dbc/src/vanilla_tables/spell_visual_kit.rs +++ b/wow_dbc/src/vanilla_tables/spell_visual_kit.rs @@ -268,6 +268,20 @@ impl SpellVisualKitKey { } +impl From for SpellVisualKitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKitKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/spell_visual_precast_transitions.rs b/wow_dbc/src/vanilla_tables/spell_visual_precast_transitions.rs index 6e357ce..dc9df0a 100644 --- a/wow_dbc/src/vanilla_tables/spell_visual_precast_transitions.rs +++ b/wow_dbc/src/vanilla_tables/spell_visual_precast_transitions.rs @@ -168,6 +168,20 @@ impl SpellVisualPrecastTransitionsKey { } +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualPrecastTransitionsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/stable_slot_prices.rs b/wow_dbc/src/vanilla_tables/stable_slot_prices.rs index c4572e1..c313401 100644 --- a/wow_dbc/src/vanilla_tables/stable_slot_prices.rs +++ b/wow_dbc/src/vanilla_tables/stable_slot_prices.rs @@ -116,6 +116,20 @@ impl StableSlotPricesKey { } +impl From for StableSlotPricesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StableSlotPricesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for StableSlotPricesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/startup_strings.rs b/wow_dbc/src/vanilla_tables/startup_strings.rs index 65ef886..3e5e84e 100644 --- a/wow_dbc/src/vanilla_tables/startup_strings.rs +++ b/wow_dbc/src/vanilla_tables/startup_strings.rs @@ -162,6 +162,20 @@ impl Startup_StringsKey { } +impl From for Startup_StringsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Startup_StringsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for Startup_StringsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/stationery.rs b/wow_dbc/src/vanilla_tables/stationery.rs index ec1c0cb..ed46a47 100644 --- a/wow_dbc/src/vanilla_tables/stationery.rs +++ b/wow_dbc/src/vanilla_tables/stationery.rs @@ -164,6 +164,20 @@ impl StationeryKey { } +impl From for StationeryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StationeryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for StationeryKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/string_lookups.rs b/wow_dbc/src/vanilla_tables/string_lookups.rs index c4a27b1..fa28383 100644 --- a/wow_dbc/src/vanilla_tables/string_lookups.rs +++ b/wow_dbc/src/vanilla_tables/string_lookups.rs @@ -150,6 +150,20 @@ impl StringLookupsKey { } +impl From for StringLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StringLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for StringLookupsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/talent.rs b/wow_dbc/src/vanilla_tables/talent.rs index 41386a2..6be4eb4 100644 --- a/wow_dbc/src/vanilla_tables/talent.rs +++ b/wow_dbc/src/vanilla_tables/talent.rs @@ -176,6 +176,20 @@ impl TalentKey { } +impl From for TalentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TalentKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/talent_tab.rs b/wow_dbc/src/vanilla_tables/talent_tab.rs index cac3d25..e249944 100644 --- a/wow_dbc/src/vanilla_tables/talent_tab.rs +++ b/wow_dbc/src/vanilla_tables/talent_tab.rs @@ -191,6 +191,20 @@ impl TalentTabKey { } +impl From for TalentTabKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentTabKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TalentTabKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/taxi_nodes.rs b/wow_dbc/src/vanilla_tables/taxi_nodes.rs index 06bb71e..af861a8 100644 --- a/wow_dbc/src/vanilla_tables/taxi_nodes.rs +++ b/wow_dbc/src/vanilla_tables/taxi_nodes.rs @@ -181,6 +181,20 @@ impl TaxiNodesKey { } +impl From for TaxiNodesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiNodesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiNodesKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/taxi_path.rs b/wow_dbc/src/vanilla_tables/taxi_path.rs index 209a652..21048b3 100644 --- a/wow_dbc/src/vanilla_tables/taxi_path.rs +++ b/wow_dbc/src/vanilla_tables/taxi_path.rs @@ -131,6 +131,20 @@ impl TaxiPathKey { } +impl From for TaxiPathKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiPathKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/taxi_path_node.rs b/wow_dbc/src/vanilla_tables/taxi_path_node.rs index 5a1f02a..a04b3c5 100644 --- a/wow_dbc/src/vanilla_tables/taxi_path_node.rs +++ b/wow_dbc/src/vanilla_tables/taxi_path_node.rs @@ -167,6 +167,20 @@ impl TaxiPathNodeKey { } +impl From for TaxiPathNodeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathNodeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiPathNodeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/terrain_type.rs b/wow_dbc/src/vanilla_tables/terrain_type.rs index 44232a6..fc98c44 100644 --- a/wow_dbc/src/vanilla_tables/terrain_type.rs +++ b/wow_dbc/src/vanilla_tables/terrain_type.rs @@ -180,6 +180,20 @@ impl TerrainTypeKey { } +impl From for TerrainTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TerrainTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TerrainTypeKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/terrain_type_sounds.rs b/wow_dbc/src/vanilla_tables/terrain_type_sounds.rs index 3aa2060..ba1cb79 100644 --- a/wow_dbc/src/vanilla_tables/terrain_type_sounds.rs +++ b/wow_dbc/src/vanilla_tables/terrain_type_sounds.rs @@ -109,6 +109,20 @@ impl TerrainTypeSoundsKey { } +impl From for TerrainTypeSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TerrainTypeSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TerrainTypeSoundsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/transport_animation.rs b/wow_dbc/src/vanilla_tables/transport_animation.rs index 6f6aa22..9cbdd49 100644 --- a/wow_dbc/src/vanilla_tables/transport_animation.rs +++ b/wow_dbc/src/vanilla_tables/transport_animation.rs @@ -152,6 +152,20 @@ impl TransportAnimationKey { } +impl From for TransportAnimationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportAnimationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for TransportAnimationKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/ui_sound_lookups.rs b/wow_dbc/src/vanilla_tables/ui_sound_lookups.rs index 8b822f7..9d8c5b7 100644 --- a/wow_dbc/src/vanilla_tables/ui_sound_lookups.rs +++ b/wow_dbc/src/vanilla_tables/ui_sound_lookups.rs @@ -158,6 +158,20 @@ impl UISoundLookupsKey { } +impl From for UISoundLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UISoundLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for UISoundLookupsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/unit_blood.rs b/wow_dbc/src/vanilla_tables/unit_blood.rs index 3b13769..af0ba77 100644 --- a/wow_dbc/src/vanilla_tables/unit_blood.rs +++ b/wow_dbc/src/vanilla_tables/unit_blood.rs @@ -195,6 +195,20 @@ impl UnitBloodKey { } +impl From for UnitBloodKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for UnitBloodKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/unit_blood_levels.rs b/wow_dbc/src/vanilla_tables/unit_blood_levels.rs index 7a53a0a..1840b4c 100644 --- a/wow_dbc/src/vanilla_tables/unit_blood_levels.rs +++ b/wow_dbc/src/vanilla_tables/unit_blood_levels.rs @@ -119,6 +119,20 @@ impl UnitBloodLevelsKey { } +impl From for UnitBloodLevelsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodLevelsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for UnitBloodLevelsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/video_hardware.rs b/wow_dbc/src/vanilla_tables/video_hardware.rs index ae1fa52..4f333f0 100644 --- a/wow_dbc/src/vanilla_tables/video_hardware.rs +++ b/wow_dbc/src/vanilla_tables/video_hardware.rs @@ -119,6 +119,20 @@ impl VideoHardwareKey { } +impl From for VideoHardwareKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VideoHardwareKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for VideoHardwareKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/vocal_ui_sounds.rs b/wow_dbc/src/vanilla_tables/vocal_ui_sounds.rs index 0759fd5..304ad7c 100644 --- a/wow_dbc/src/vanilla_tables/vocal_ui_sounds.rs +++ b/wow_dbc/src/vanilla_tables/vocal_ui_sounds.rs @@ -153,6 +153,20 @@ impl VocalUISoundsKey { } +impl From for VocalUISoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VocalUISoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for VocalUISoundsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/weapon_impact_sounds.rs b/wow_dbc/src/vanilla_tables/weapon_impact_sounds.rs index 0785151..91a5d8a 100644 --- a/wow_dbc/src/vanilla_tables/weapon_impact_sounds.rs +++ b/wow_dbc/src/vanilla_tables/weapon_impact_sounds.rs @@ -143,6 +143,20 @@ impl WeaponImpactSoundsKey { } +impl From for WeaponImpactSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponImpactSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeaponImpactSoundsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/weapon_swing_sounds2.rs b/wow_dbc/src/vanilla_tables/weapon_swing_sounds2.rs index 2efdfb8..a0e18fd 100644 --- a/wow_dbc/src/vanilla_tables/weapon_swing_sounds2.rs +++ b/wow_dbc/src/vanilla_tables/weapon_swing_sounds2.rs @@ -131,6 +131,20 @@ impl WeaponSwingSounds2Key { } +impl From for WeaponSwingSounds2Key { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponSwingSounds2Key { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeaponSwingSounds2Key { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/wmo_area_table.rs b/wow_dbc/src/vanilla_tables/wmo_area_table.rs index 9fc8c4a..2886cf8 100644 --- a/wow_dbc/src/vanilla_tables/wmo_area_table.rs +++ b/wow_dbc/src/vanilla_tables/wmo_area_table.rs @@ -217,6 +217,20 @@ impl WMOAreaTableKey { } +impl From for WMOAreaTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WMOAreaTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WMOAreaTableKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/world_map_area.rs b/wow_dbc/src/vanilla_tables/world_map_area.rs index e7b2b70..599c870 100644 --- a/wow_dbc/src/vanilla_tables/world_map_area.rs +++ b/wow_dbc/src/vanilla_tables/world_map_area.rs @@ -194,6 +194,20 @@ impl WorldMapAreaKey { } +impl From for WorldMapAreaKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapAreaKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapAreaKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/world_map_continent.rs b/wow_dbc/src/vanilla_tables/world_map_continent.rs index 419b99d..3525a12 100644 --- a/wow_dbc/src/vanilla_tables/world_map_continent.rs +++ b/wow_dbc/src/vanilla_tables/world_map_continent.rs @@ -194,6 +194,20 @@ impl WorldMapContinentKey { } +impl From for WorldMapContinentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapContinentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapContinentKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/world_map_overlay.rs b/wow_dbc/src/vanilla_tables/world_map_overlay.rs index 8195f1e..9277ed8 100644 --- a/wow_dbc/src/vanilla_tables/world_map_overlay.rs +++ b/wow_dbc/src/vanilla_tables/world_map_overlay.rs @@ -238,6 +238,20 @@ impl WorldMapOverlayKey { } +impl From for WorldMapOverlayKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapOverlayKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapOverlayKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/world_safe_locs.rs b/wow_dbc/src/vanilla_tables/world_safe_locs.rs index b5235a6..1886294 100644 --- a/wow_dbc/src/vanilla_tables/world_safe_locs.rs +++ b/wow_dbc/src/vanilla_tables/world_safe_locs.rs @@ -171,6 +171,20 @@ impl WorldSafeLocsKey { } +impl From for WorldSafeLocsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldSafeLocsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldSafeLocsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/world_state_ui.rs b/wow_dbc/src/vanilla_tables/world_state_ui.rs index 281d864..8febe84 100644 --- a/wow_dbc/src/vanilla_tables/world_state_ui.rs +++ b/wow_dbc/src/vanilla_tables/world_state_ui.rs @@ -261,6 +261,20 @@ impl WorldStateUIKey { } +impl From for WorldStateUIKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldStateUIKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldStateUIKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/wow_error_strings.rs b/wow_dbc/src/vanilla_tables/wow_error_strings.rs index 05957e3..ae4224d 100644 --- a/wow_dbc/src/vanilla_tables/wow_error_strings.rs +++ b/wow_dbc/src/vanilla_tables/wow_error_strings.rs @@ -162,6 +162,20 @@ impl WowError_StringsKey { } +impl From for WowError_StringsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WowError_StringsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for WowError_StringsKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/zone_intro_music_table.rs b/wow_dbc/src/vanilla_tables/zone_intro_music_table.rs index f47d541..7952599 100644 --- a/wow_dbc/src/vanilla_tables/zone_intro_music_table.rs +++ b/wow_dbc/src/vanilla_tables/zone_intro_music_table.rs @@ -172,6 +172,20 @@ impl ZoneIntroMusicTableKey { } +impl From for ZoneIntroMusicTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneIntroMusicTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ZoneIntroMusicTableKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/vanilla_tables/zone_music.rs b/wow_dbc/src/vanilla_tables/zone_music.rs index c906aa5..c400ad7 100644 --- a/wow_dbc/src/vanilla_tables/zone_music.rs +++ b/wow_dbc/src/vanilla_tables/zone_music.rs @@ -193,6 +193,20 @@ impl ZoneMusicKey { } +impl From for ZoneMusicKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneMusicKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + impl From for ZoneMusicKey { fn from(v: u32) -> Self { Self::new(v) diff --git a/wow_dbc/src/wrath_tables/achievement.rs b/wow_dbc/src/wrath_tables/achievement.rs index 657f82b..7f77301 100644 --- a/wow_dbc/src/wrath_tables/achievement.rs +++ b/wow_dbc/src/wrath_tables/achievement.rs @@ -234,6 +234,20 @@ impl AchievementKey { } +impl From for AchievementKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AchievementKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AchievementKey { fn from(v: i32) -> Self { Self::new(v) @@ -241,6 +255,20 @@ impl From for AchievementKey { } +impl From for AchievementKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AchievementKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AchievementRow { pub id: AchievementKey, diff --git a/wow_dbc/src/wrath_tables/achievement_category.rs b/wow_dbc/src/wrath_tables/achievement_category.rs index 15bf892..a6c922e 100644 --- a/wow_dbc/src/wrath_tables/achievement_category.rs +++ b/wow_dbc/src/wrath_tables/achievement_category.rs @@ -158,6 +158,20 @@ impl Achievement_CategoryKey { } +impl From for Achievement_CategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Achievement_CategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Achievement_CategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for Achievement_CategoryKey { } +impl From for Achievement_CategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Achievement_CategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Achievement_CategoryRow { diff --git a/wow_dbc/src/wrath_tables/achievement_criteria.rs b/wow_dbc/src/wrath_tables/achievement_criteria.rs index 5684bc9..253fceb 100644 --- a/wow_dbc/src/wrath_tables/achievement_criteria.rs +++ b/wow_dbc/src/wrath_tables/achievement_criteria.rs @@ -236,6 +236,20 @@ impl Achievement_CriteriaKey { } +impl From for Achievement_CriteriaKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Achievement_CriteriaKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Achievement_CriteriaKey { fn from(v: i32) -> Self { Self::new(v) @@ -243,6 +257,20 @@ impl From for Achievement_CriteriaKey { } +impl From for Achievement_CriteriaKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Achievement_CriteriaKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Achievement_CriteriaRow { diff --git a/wow_dbc/src/wrath_tables/animation_data.rs b/wow_dbc/src/wrath_tables/animation_data.rs index 499afd8..5388c87 100644 --- a/wow_dbc/src/wrath_tables/animation_data.rs +++ b/wow_dbc/src/wrath_tables/animation_data.rs @@ -192,6 +192,20 @@ impl AnimationDataKey { } +impl From for AnimationDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AnimationDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AnimationDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -199,6 +213,20 @@ impl From for AnimationDataKey { } +impl From for AnimationDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AnimationDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AnimationDataRow { pub id: AnimationDataKey, diff --git a/wow_dbc/src/wrath_tables/area_group.rs b/wow_dbc/src/wrath_tables/area_group.rs index 442806c..1929090 100644 --- a/wow_dbc/src/wrath_tables/area_group.rs +++ b/wow_dbc/src/wrath_tables/area_group.rs @@ -126,6 +126,20 @@ impl AreaGroupKey { } +impl From for AreaGroupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaGroupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaGroupKey { fn from(v: i32) -> Self { Self::new(v) @@ -133,6 +147,20 @@ impl From for AreaGroupKey { } +impl From for AreaGroupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaGroupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AreaGroupRow { pub id: AreaGroupKey, diff --git a/wow_dbc/src/wrath_tables/area_poi.rs b/wow_dbc/src/wrath_tables/area_poi.rs index 1011fb7..600dcc8 100644 --- a/wow_dbc/src/wrath_tables/area_poi.rs +++ b/wow_dbc/src/wrath_tables/area_poi.rs @@ -223,6 +223,20 @@ impl AreaPOIKey { } +impl From for AreaPOIKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaPOIKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaPOIKey { fn from(v: i32) -> Self { Self::new(v) @@ -230,6 +244,20 @@ impl From for AreaPOIKey { } +impl From for AreaPOIKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaPOIKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct AreaPOIRow { pub id: AreaPOIKey, diff --git a/wow_dbc/src/wrath_tables/area_table.rs b/wow_dbc/src/wrath_tables/area_table.rs index 5892da0..a62053a 100644 --- a/wow_dbc/src/wrath_tables/area_table.rs +++ b/wow_dbc/src/wrath_tables/area_table.rs @@ -256,6 +256,20 @@ impl AreaTableKey { } +impl From for AreaTableKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTableKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaTableKey { fn from(v: i32) -> Self { Self::new(v) @@ -263,6 +277,20 @@ impl From for AreaTableKey { } +impl From for AreaTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct AreaTableRow { pub id: AreaTableKey, diff --git a/wow_dbc/src/wrath_tables/area_trigger.rs b/wow_dbc/src/wrath_tables/area_trigger.rs index fbd2f6b..d153853 100644 --- a/wow_dbc/src/wrath_tables/area_trigger.rs +++ b/wow_dbc/src/wrath_tables/area_trigger.rs @@ -162,6 +162,20 @@ impl AreaTriggerKey { } +impl From for AreaTriggerKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTriggerKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AreaTriggerKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for AreaTriggerKey { } +impl From for AreaTriggerKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AreaTriggerKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct AreaTriggerRow { pub id: AreaTriggerKey, diff --git a/wow_dbc/src/wrath_tables/attack_anim_kits.rs b/wow_dbc/src/wrath_tables/attack_anim_kits.rs index 31f3a08..6c0ed66 100644 --- a/wow_dbc/src/wrath_tables/attack_anim_kits.rs +++ b/wow_dbc/src/wrath_tables/attack_anim_kits.rs @@ -137,6 +137,20 @@ impl AttackAnimKitsKey { } +impl From for AttackAnimKitsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AttackAnimKitsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AttackAnimKitsKey { fn from(v: i32) -> Self { Self::new(v) @@ -144,6 +158,20 @@ impl From for AttackAnimKitsKey { } +impl From for AttackAnimKitsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AttackAnimKitsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AttackAnimKitsRow { pub id: AttackAnimKitsKey, diff --git a/wow_dbc/src/wrath_tables/auction_house.rs b/wow_dbc/src/wrath_tables/auction_house.rs index 0101c13..4d24243 100644 --- a/wow_dbc/src/wrath_tables/auction_house.rs +++ b/wow_dbc/src/wrath_tables/auction_house.rs @@ -164,6 +164,20 @@ impl AuctionHouseKey { } +impl From for AuctionHouseKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AuctionHouseKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for AuctionHouseKey { fn from(v: i32) -> Self { Self::new(v) @@ -171,6 +185,20 @@ impl From for AuctionHouseKey { } +impl From for AuctionHouseKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for AuctionHouseKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct AuctionHouseRow { pub id: AuctionHouseKey, diff --git a/wow_dbc/src/wrath_tables/bank_bag_slot_prices.rs b/wow_dbc/src/wrath_tables/bank_bag_slot_prices.rs index 6f348fe..0334bfc 100644 --- a/wow_dbc/src/wrath_tables/bank_bag_slot_prices.rs +++ b/wow_dbc/src/wrath_tables/bank_bag_slot_prices.rs @@ -116,6 +116,20 @@ impl BankBagSlotPricesKey { } +impl From for BankBagSlotPricesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BankBagSlotPricesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for BankBagSlotPricesKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for BankBagSlotPricesKey { } +impl From for BankBagSlotPricesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BankBagSlotPricesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct BankBagSlotPricesRow { pub id: BankBagSlotPricesKey, diff --git a/wow_dbc/src/wrath_tables/banned_add_ons.rs b/wow_dbc/src/wrath_tables/banned_add_ons.rs index b6ac8cf..dcb714f 100644 --- a/wow_dbc/src/wrath_tables/banned_add_ons.rs +++ b/wow_dbc/src/wrath_tables/banned_add_ons.rs @@ -143,6 +143,20 @@ impl BannedAddOnsKey { } +impl From for BannedAddOnsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BannedAddOnsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for BannedAddOnsKey { fn from(v: i32) -> Self { Self::new(v) @@ -150,6 +164,20 @@ impl From for BannedAddOnsKey { } +impl From for BannedAddOnsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BannedAddOnsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct BannedAddOnsRow { pub id: BannedAddOnsKey, diff --git a/wow_dbc/src/wrath_tables/barber_shop_style.rs b/wow_dbc/src/wrath_tables/barber_shop_style.rs index 35ebd2d..d8e7ddb 100644 --- a/wow_dbc/src/wrath_tables/barber_shop_style.rs +++ b/wow_dbc/src/wrath_tables/barber_shop_style.rs @@ -187,6 +187,20 @@ impl BarberShopStyleKey { } +impl From for BarberShopStyleKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BarberShopStyleKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for BarberShopStyleKey { fn from(v: i32) -> Self { Self::new(v) @@ -194,6 +208,20 @@ impl From for BarberShopStyleKey { } +impl From for BarberShopStyleKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BarberShopStyleKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct BarberShopStyleRow { pub id: BarberShopStyleKey, diff --git a/wow_dbc/src/wrath_tables/battlemaster_list.rs b/wow_dbc/src/wrath_tables/battlemaster_list.rs index 076d2fc..0bb15af 100644 --- a/wow_dbc/src/wrath_tables/battlemaster_list.rs +++ b/wow_dbc/src/wrath_tables/battlemaster_list.rs @@ -194,6 +194,20 @@ impl BattlemasterListKey { } +impl From for BattlemasterListKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BattlemasterListKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for BattlemasterListKey { fn from(v: i32) -> Self { Self::new(v) @@ -201,6 +215,20 @@ impl From for BattlemasterListKey { } +impl From for BattlemasterListKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for BattlemasterListKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct BattlemasterListRow { pub id: BattlemasterListKey, diff --git a/wow_dbc/src/wrath_tables/camera_shakes.rs b/wow_dbc/src/wrath_tables/camera_shakes.rs index 346f94e..ea3a9f0 100644 --- a/wow_dbc/src/wrath_tables/camera_shakes.rs +++ b/wow_dbc/src/wrath_tables/camera_shakes.rs @@ -158,6 +158,20 @@ impl CameraShakesKey { } +impl From for CameraShakesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CameraShakesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CameraShakesKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for CameraShakesKey { } +impl From for CameraShakesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CameraShakesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CameraShakesRow { pub id: CameraShakesKey, diff --git a/wow_dbc/src/wrath_tables/cfg_categories.rs b/wow_dbc/src/wrath_tables/cfg_categories.rs index a80c683..b013f7b 100644 --- a/wow_dbc/src/wrath_tables/cfg_categories.rs +++ b/wow_dbc/src/wrath_tables/cfg_categories.rs @@ -165,6 +165,20 @@ impl Cfg_CategoriesKey { } +impl From for Cfg_CategoriesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_CategoriesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Cfg_CategoriesKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for Cfg_CategoriesKey { } +impl From for Cfg_CategoriesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_CategoriesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Cfg_CategoriesRow { diff --git a/wow_dbc/src/wrath_tables/cfg_configs.rs b/wow_dbc/src/wrath_tables/cfg_configs.rs index 1bf475d..b865012 100644 --- a/wow_dbc/src/wrath_tables/cfg_configs.rs +++ b/wow_dbc/src/wrath_tables/cfg_configs.rs @@ -132,6 +132,20 @@ impl Cfg_ConfigsKey { } +impl From for Cfg_ConfigsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_ConfigsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Cfg_ConfigsKey { fn from(v: i32) -> Self { Self::new(v) @@ -139,6 +153,20 @@ impl From for Cfg_ConfigsKey { } +impl From for Cfg_ConfigsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Cfg_ConfigsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Cfg_ConfigsRow { diff --git a/wow_dbc/src/wrath_tables/char_hair_geosets.rs b/wow_dbc/src/wrath_tables/char_hair_geosets.rs index b355325..7bf33e0 100644 --- a/wow_dbc/src/wrath_tables/char_hair_geosets.rs +++ b/wow_dbc/src/wrath_tables/char_hair_geosets.rs @@ -145,6 +145,20 @@ impl CharHairGeosetsKey { } +impl From for CharHairGeosetsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairGeosetsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharHairGeosetsKey { fn from(v: i32) -> Self { Self::new(v) @@ -152,6 +166,20 @@ impl From for CharHairGeosetsKey { } +impl From for CharHairGeosetsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairGeosetsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharHairGeosetsRow { pub id: CharHairGeosetsKey, diff --git a/wow_dbc/src/wrath_tables/char_hair_textures.rs b/wow_dbc/src/wrath_tables/char_hair_textures.rs index 9af5e7f..b607dc6 100644 --- a/wow_dbc/src/wrath_tables/char_hair_textures.rs +++ b/wow_dbc/src/wrath_tables/char_hair_textures.rs @@ -159,6 +159,20 @@ impl CharHairTexturesKey { } +impl From for CharHairTexturesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairTexturesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharHairTexturesKey { fn from(v: i32) -> Self { Self::new(v) @@ -166,6 +180,20 @@ impl From for CharHairTexturesKey { } +impl From for CharHairTexturesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharHairTexturesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharHairTexturesRow { pub id: CharHairTexturesKey, diff --git a/wow_dbc/src/wrath_tables/char_sections.rs b/wow_dbc/src/wrath_tables/char_sections.rs index e7392fc..fa5de3c 100644 --- a/wow_dbc/src/wrath_tables/char_sections.rs +++ b/wow_dbc/src/wrath_tables/char_sections.rs @@ -210,6 +210,20 @@ impl CharSectionsKey { } +impl From for CharSectionsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharSectionsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharSectionsKey { fn from(v: i32) -> Self { Self::new(v) @@ -217,6 +231,20 @@ impl From for CharSectionsKey { } +impl From for CharSectionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharSectionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharSectionsRow { pub id: CharSectionsKey, diff --git a/wow_dbc/src/wrath_tables/char_start_outfit.rs b/wow_dbc/src/wrath_tables/char_start_outfit.rs index cd60ddd..d084013 100644 --- a/wow_dbc/src/wrath_tables/char_start_outfit.rs +++ b/wow_dbc/src/wrath_tables/char_start_outfit.rs @@ -169,6 +169,20 @@ impl CharStartOutfitKey { } +impl From for CharStartOutfitKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharStartOutfitKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharStartOutfitKey { fn from(v: i32) -> Self { Self::new(v) @@ -176,6 +190,20 @@ impl From for CharStartOutfitKey { } +impl From for CharStartOutfitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharStartOutfitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharStartOutfitRow { pub id: CharStartOutfitKey, diff --git a/wow_dbc/src/wrath_tables/char_titles.rs b/wow_dbc/src/wrath_tables/char_titles.rs index 67f6626..8e847ca 100644 --- a/wow_dbc/src/wrath_tables/char_titles.rs +++ b/wow_dbc/src/wrath_tables/char_titles.rs @@ -165,6 +165,20 @@ impl CharTitlesKey { } +impl From for CharTitlesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharTitlesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CharTitlesKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for CharTitlesKey { } +impl From for CharTitlesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CharTitlesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CharTitlesRow { pub id: CharTitlesKey, diff --git a/wow_dbc/src/wrath_tables/chat_channels.rs b/wow_dbc/src/wrath_tables/chat_channels.rs index 7fd5568..2a04e35 100644 --- a/wow_dbc/src/wrath_tables/chat_channels.rs +++ b/wow_dbc/src/wrath_tables/chat_channels.rs @@ -165,6 +165,20 @@ impl ChatChannelsKey { } +impl From for ChatChannelsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatChannelsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChatChannelsKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for ChatChannelsKey { } +impl From for ChatChannelsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatChannelsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChatChannelsRow { pub id: ChatChannelsKey, diff --git a/wow_dbc/src/wrath_tables/chat_profanity.rs b/wow_dbc/src/wrath_tables/chat_profanity.rs index bafc88b..46b4ec8 100644 --- a/wow_dbc/src/wrath_tables/chat_profanity.rs +++ b/wow_dbc/src/wrath_tables/chat_profanity.rs @@ -157,6 +157,20 @@ impl ChatProfanityKey { } +impl From for ChatProfanityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatProfanityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChatProfanityKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for ChatProfanityKey { } +impl From for ChatProfanityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChatProfanityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChatProfanityRow { pub id: ChatProfanityKey, diff --git a/wow_dbc/src/wrath_tables/chr_classes.rs b/wow_dbc/src/wrath_tables/chr_classes.rs index 4e8a17a..7241bc5 100644 --- a/wow_dbc/src/wrath_tables/chr_classes.rs +++ b/wow_dbc/src/wrath_tables/chr_classes.rs @@ -239,6 +239,20 @@ impl ChrClassesKey { } +impl From for ChrClassesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrClassesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChrClassesKey { fn from(v: i32) -> Self { Self::new(v) @@ -246,6 +260,20 @@ impl From for ChrClassesKey { } +impl From for ChrClassesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrClassesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChrClassesRow { pub id: ChrClassesKey, diff --git a/wow_dbc/src/wrath_tables/chr_races.rs b/wow_dbc/src/wrath_tables/chr_races.rs index d432e45..f4dae47 100644 --- a/wow_dbc/src/wrath_tables/chr_races.rs +++ b/wow_dbc/src/wrath_tables/chr_races.rs @@ -340,6 +340,20 @@ impl ChrRacesKey { } +impl From for ChrRacesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrRacesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ChrRacesKey { fn from(v: i32) -> Self { Self::new(v) @@ -347,6 +361,20 @@ impl From for ChrRacesKey { } +impl From for ChrRacesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ChrRacesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChrRacesRow { pub id: ChrRacesKey, diff --git a/wow_dbc/src/wrath_tables/cinematic_camera.rs b/wow_dbc/src/wrath_tables/cinematic_camera.rs index 2919bb1..ddc22ea 100644 --- a/wow_dbc/src/wrath_tables/cinematic_camera.rs +++ b/wow_dbc/src/wrath_tables/cinematic_camera.rs @@ -175,6 +175,20 @@ impl CinematicCameraKey { } +impl From for CinematicCameraKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicCameraKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CinematicCameraKey { fn from(v: i32) -> Self { Self::new(v) @@ -182,6 +196,20 @@ impl From for CinematicCameraKey { } +impl From for CinematicCameraKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicCameraKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CinematicCameraRow { pub id: CinematicCameraKey, diff --git a/wow_dbc/src/wrath_tables/cinematic_sequences.rs b/wow_dbc/src/wrath_tables/cinematic_sequences.rs index 433375f..ca630cd 100644 --- a/wow_dbc/src/wrath_tables/cinematic_sequences.rs +++ b/wow_dbc/src/wrath_tables/cinematic_sequences.rs @@ -127,6 +127,20 @@ impl CinematicSequencesKey { } +impl From for CinematicSequencesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicSequencesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CinematicSequencesKey { fn from(v: i32) -> Self { Self::new(v) @@ -134,6 +148,20 @@ impl From for CinematicSequencesKey { } +impl From for CinematicSequencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CinematicSequencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CinematicSequencesRow { pub id: CinematicSequencesKey, diff --git a/wow_dbc/src/wrath_tables/creature_display_info.rs b/wow_dbc/src/wrath_tables/creature_display_info.rs index f00c9ea..daaae79 100644 --- a/wow_dbc/src/wrath_tables/creature_display_info.rs +++ b/wow_dbc/src/wrath_tables/creature_display_info.rs @@ -269,6 +269,20 @@ impl CreatureDisplayInfoKey { } +impl From for CreatureDisplayInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureDisplayInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -276,6 +290,20 @@ impl From for CreatureDisplayInfoKey { } +impl From for CreatureDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureDisplayInfoRow { pub id: CreatureDisplayInfoKey, diff --git a/wow_dbc/src/wrath_tables/creature_display_info_extra.rs b/wow_dbc/src/wrath_tables/creature_display_info_extra.rs index e804397..65fd6c4 100644 --- a/wow_dbc/src/wrath_tables/creature_display_info_extra.rs +++ b/wow_dbc/src/wrath_tables/creature_display_info_extra.rs @@ -217,6 +217,20 @@ impl CreatureDisplayInfoExtraKey { } +impl From for CreatureDisplayInfoExtraKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoExtraKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureDisplayInfoExtraKey { fn from(v: i32) -> Self { Self::new(v) @@ -224,6 +238,20 @@ impl From for CreatureDisplayInfoExtraKey { } +impl From for CreatureDisplayInfoExtraKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureDisplayInfoExtraKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CreatureDisplayInfoExtraRow { pub id: CreatureDisplayInfoExtraKey, diff --git a/wow_dbc/src/wrath_tables/creature_family.rs b/wow_dbc/src/wrath_tables/creature_family.rs index 0656bc4..2981572 100644 --- a/wow_dbc/src/wrath_tables/creature_family.rs +++ b/wow_dbc/src/wrath_tables/creature_family.rs @@ -219,6 +219,20 @@ impl CreatureFamilyKey { } +impl From for CreatureFamilyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureFamilyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureFamilyKey { fn from(v: i32) -> Self { Self::new(v) @@ -226,6 +240,20 @@ impl From for CreatureFamilyKey { } +impl From for CreatureFamilyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureFamilyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureFamilyRow { pub id: CreatureFamilyKey, diff --git a/wow_dbc/src/wrath_tables/creature_model_data.rs b/wow_dbc/src/wrath_tables/creature_model_data.rs index 17bee05..ca984c6 100644 --- a/wow_dbc/src/wrath_tables/creature_model_data.rs +++ b/wow_dbc/src/wrath_tables/creature_model_data.rs @@ -336,6 +336,20 @@ impl CreatureModelDataKey { } +impl From for CreatureModelDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureModelDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureModelDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -343,6 +357,20 @@ impl From for CreatureModelDataKey { } +impl From for CreatureModelDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureModelDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureModelDataRow { pub id: CreatureModelDataKey, diff --git a/wow_dbc/src/wrath_tables/creature_movement_info.rs b/wow_dbc/src/wrath_tables/creature_movement_info.rs index c5abb75..117dbe0 100644 --- a/wow_dbc/src/wrath_tables/creature_movement_info.rs +++ b/wow_dbc/src/wrath_tables/creature_movement_info.rs @@ -116,6 +116,20 @@ impl CreatureMovementInfoKey { } +impl From for CreatureMovementInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureMovementInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureMovementInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for CreatureMovementInfoKey { } +impl From for CreatureMovementInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureMovementInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureMovementInfoRow { pub id: CreatureMovementInfoKey, diff --git a/wow_dbc/src/wrath_tables/creature_sound_data.rs b/wow_dbc/src/wrath_tables/creature_sound_data.rs index 1561af1..29b3b19 100644 --- a/wow_dbc/src/wrath_tables/creature_sound_data.rs +++ b/wow_dbc/src/wrath_tables/creature_sound_data.rs @@ -327,6 +327,20 @@ impl CreatureSoundDataKey { } +impl From for CreatureSoundDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSoundDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureSoundDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -334,6 +348,20 @@ impl From for CreatureSoundDataKey { } +impl From for CreatureSoundDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSoundDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct CreatureSoundDataRow { pub id: CreatureSoundDataKey, diff --git a/wow_dbc/src/wrath_tables/creature_spell_data.rs b/wow_dbc/src/wrath_tables/creature_spell_data.rs index 9781892..2b3806e 100644 --- a/wow_dbc/src/wrath_tables/creature_spell_data.rs +++ b/wow_dbc/src/wrath_tables/creature_spell_data.rs @@ -129,6 +129,20 @@ impl CreatureSpellDataKey { } +impl From for CreatureSpellDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSpellDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureSpellDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -136,6 +150,20 @@ impl From for CreatureSpellDataKey { } +impl From for CreatureSpellDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureSpellDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CreatureSpellDataRow { pub id: CreatureSpellDataKey, diff --git a/wow_dbc/src/wrath_tables/creature_type.rs b/wow_dbc/src/wrath_tables/creature_type.rs index 9bf4824..bd345bc 100644 --- a/wow_dbc/src/wrath_tables/creature_type.rs +++ b/wow_dbc/src/wrath_tables/creature_type.rs @@ -149,6 +149,20 @@ impl CreatureTypeKey { } +impl From for CreatureTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CreatureTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -156,6 +170,20 @@ impl From for CreatureTypeKey { } +impl From for CreatureTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CreatureTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CreatureTypeRow { pub id: CreatureTypeKey, diff --git a/wow_dbc/src/wrath_tables/currency_category.rs b/wow_dbc/src/wrath_tables/currency_category.rs index 9a9e013..9fc2668 100644 --- a/wow_dbc/src/wrath_tables/currency_category.rs +++ b/wow_dbc/src/wrath_tables/currency_category.rs @@ -149,6 +149,20 @@ impl CurrencyCategoryKey { } +impl From for CurrencyCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CurrencyCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CurrencyCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -156,6 +170,20 @@ impl From for CurrencyCategoryKey { } +impl From for CurrencyCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CurrencyCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CurrencyCategoryRow { pub id: CurrencyCategoryKey, diff --git a/wow_dbc/src/wrath_tables/currency_types.rs b/wow_dbc/src/wrath_tables/currency_types.rs index 7561a7e..2455f71 100644 --- a/wow_dbc/src/wrath_tables/currency_types.rs +++ b/wow_dbc/src/wrath_tables/currency_types.rs @@ -132,6 +132,20 @@ impl CurrencyTypesKey { } +impl From for CurrencyTypesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CurrencyTypesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for CurrencyTypesKey { fn from(v: i32) -> Self { Self::new(v) @@ -139,6 +153,20 @@ impl From for CurrencyTypesKey { } +impl From for CurrencyTypesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for CurrencyTypesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CurrencyTypesRow { pub id: CurrencyTypesKey, diff --git a/wow_dbc/src/wrath_tables/dance_moves.rs b/wow_dbc/src/wrath_tables/dance_moves.rs index 7f6cfd8..e375181 100644 --- a/wow_dbc/src/wrath_tables/dance_moves.rs +++ b/wow_dbc/src/wrath_tables/dance_moves.rs @@ -196,6 +196,20 @@ impl DanceMovesKey { } +impl From for DanceMovesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DanceMovesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DanceMovesKey { fn from(v: i32) -> Self { Self::new(v) @@ -203,6 +217,20 @@ impl From for DanceMovesKey { } +impl From for DanceMovesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DanceMovesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DanceMovesRow { pub id: DanceMovesKey, diff --git a/wow_dbc/src/wrath_tables/death_thud_lookups.rs b/wow_dbc/src/wrath_tables/death_thud_lookups.rs index da72ded..7976e1b 100644 --- a/wow_dbc/src/wrath_tables/death_thud_lookups.rs +++ b/wow_dbc/src/wrath_tables/death_thud_lookups.rs @@ -139,6 +139,20 @@ impl DeathThudLookupsKey { } +impl From for DeathThudLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeathThudLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DeathThudLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -146,6 +160,20 @@ impl From for DeathThudLookupsKey { } +impl From for DeathThudLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeathThudLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DeathThudLookupsRow { pub id: DeathThudLookupsKey, diff --git a/wow_dbc/src/wrath_tables/declined_word.rs b/wow_dbc/src/wrath_tables/declined_word.rs index c249fd9..101297f 100644 --- a/wow_dbc/src/wrath_tables/declined_word.rs +++ b/wow_dbc/src/wrath_tables/declined_word.rs @@ -150,6 +150,20 @@ impl DeclinedWordKey { } +impl From for DeclinedWordKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DeclinedWordKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for DeclinedWordKey { } +impl From for DeclinedWordKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DeclinedWordRow { pub id: DeclinedWordKey, diff --git a/wow_dbc/src/wrath_tables/declined_word_cases.rs b/wow_dbc/src/wrath_tables/declined_word_cases.rs index d506bf3..0a93815 100644 --- a/wow_dbc/src/wrath_tables/declined_word_cases.rs +++ b/wow_dbc/src/wrath_tables/declined_word_cases.rs @@ -165,6 +165,20 @@ impl DeclinedWordCasesKey { } +impl From for DeclinedWordCasesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordCasesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DeclinedWordCasesKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for DeclinedWordCasesKey { } +impl From for DeclinedWordCasesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DeclinedWordCasesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DeclinedWordCasesRow { pub id: DeclinedWordCasesKey, diff --git a/wow_dbc/src/wrath_tables/destructible_model_data.rs b/wow_dbc/src/wrath_tables/destructible_model_data.rs index 0b6b731..8d0f5e1 100644 --- a/wow_dbc/src/wrath_tables/destructible_model_data.rs +++ b/wow_dbc/src/wrath_tables/destructible_model_data.rs @@ -235,6 +235,20 @@ impl DestructibleModelDataKey { } +impl From for DestructibleModelDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DestructibleModelDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DestructibleModelDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -242,6 +256,20 @@ impl From for DestructibleModelDataKey { } +impl From for DestructibleModelDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DestructibleModelDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DestructibleModelDataRow { pub id: DestructibleModelDataKey, diff --git a/wow_dbc/src/wrath_tables/dungeon_encounter.rs b/wow_dbc/src/wrath_tables/dungeon_encounter.rs index 293f1b1..1ffdd03 100644 --- a/wow_dbc/src/wrath_tables/dungeon_encounter.rs +++ b/wow_dbc/src/wrath_tables/dungeon_encounter.rs @@ -179,6 +179,20 @@ impl DungeonEncounterKey { } +impl From for DungeonEncounterKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DungeonEncounterKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DungeonEncounterKey { fn from(v: i32) -> Self { Self::new(v) @@ -186,6 +200,20 @@ impl From for DungeonEncounterKey { } +impl From for DungeonEncounterKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DungeonEncounterKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DungeonEncounterRow { pub id: DungeonEncounterKey, diff --git a/wow_dbc/src/wrath_tables/dungeon_map.rs b/wow_dbc/src/wrath_tables/dungeon_map.rs index 9747d5f..5f21359 100644 --- a/wow_dbc/src/wrath_tables/dungeon_map.rs +++ b/wow_dbc/src/wrath_tables/dungeon_map.rs @@ -160,6 +160,20 @@ impl DungeonMapKey { } +impl From for DungeonMapKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DungeonMapKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DungeonMapKey { fn from(v: i32) -> Self { Self::new(v) @@ -167,6 +181,20 @@ impl From for DungeonMapKey { } +impl From for DungeonMapKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DungeonMapKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct DungeonMapRow { pub id: DungeonMapKey, diff --git a/wow_dbc/src/wrath_tables/dungeon_map_chunk.rs b/wow_dbc/src/wrath_tables/dungeon_map_chunk.rs index 3092ecc..6c28858 100644 --- a/wow_dbc/src/wrath_tables/dungeon_map_chunk.rs +++ b/wow_dbc/src/wrath_tables/dungeon_map_chunk.rs @@ -140,6 +140,20 @@ impl DungeonMapChunkKey { } +impl From for DungeonMapChunkKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DungeonMapChunkKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DungeonMapChunkKey { fn from(v: i32) -> Self { Self::new(v) @@ -147,6 +161,20 @@ impl From for DungeonMapChunkKey { } +impl From for DungeonMapChunkKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DungeonMapChunkKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct DungeonMapChunkRow { pub id: DungeonMapChunkKey, diff --git a/wow_dbc/src/wrath_tables/durability_costs.rs b/wow_dbc/src/wrath_tables/durability_costs.rs index 7a616ce..abcd233 100644 --- a/wow_dbc/src/wrath_tables/durability_costs.rs +++ b/wow_dbc/src/wrath_tables/durability_costs.rs @@ -129,6 +129,20 @@ impl DurabilityCostsKey { } +impl From for DurabilityCostsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityCostsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DurabilityCostsKey { fn from(v: i32) -> Self { Self::new(v) @@ -136,6 +150,20 @@ impl From for DurabilityCostsKey { } +impl From for DurabilityCostsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityCostsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct DurabilityCostsRow { pub id: DurabilityCostsKey, diff --git a/wow_dbc/src/wrath_tables/durability_quality.rs b/wow_dbc/src/wrath_tables/durability_quality.rs index fc731b9..6fc4835 100644 --- a/wow_dbc/src/wrath_tables/durability_quality.rs +++ b/wow_dbc/src/wrath_tables/durability_quality.rs @@ -116,6 +116,20 @@ impl DurabilityQualityKey { } +impl From for DurabilityQualityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityQualityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for DurabilityQualityKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for DurabilityQualityKey { } +impl From for DurabilityQualityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for DurabilityQualityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct DurabilityQualityRow { pub id: DurabilityQualityKey, diff --git a/wow_dbc/src/wrath_tables/emotes.rs b/wow_dbc/src/wrath_tables/emotes.rs index 4c165fd..3449a8d 100644 --- a/wow_dbc/src/wrath_tables/emotes.rs +++ b/wow_dbc/src/wrath_tables/emotes.rs @@ -187,6 +187,20 @@ impl EmotesKey { } +impl From for EmotesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesKey { fn from(v: i32) -> Self { Self::new(v) @@ -194,6 +208,20 @@ impl From for EmotesKey { } +impl From for EmotesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesRow { pub id: EmotesKey, diff --git a/wow_dbc/src/wrath_tables/emotes_text.rs b/wow_dbc/src/wrath_tables/emotes_text.rs index 5118b48..39231ee 100644 --- a/wow_dbc/src/wrath_tables/emotes_text.rs +++ b/wow_dbc/src/wrath_tables/emotes_text.rs @@ -168,6 +168,20 @@ impl EmotesTextKey { } +impl From for EmotesTextKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextKey { fn from(v: i32) -> Self { Self::new(v) @@ -175,6 +189,20 @@ impl From for EmotesTextKey { } +impl From for EmotesTextKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesTextRow { pub id: EmotesTextKey, diff --git a/wow_dbc/src/wrath_tables/emotes_text_data.rs b/wow_dbc/src/wrath_tables/emotes_text_data.rs index 41cd26e..f5c502a 100644 --- a/wow_dbc/src/wrath_tables/emotes_text_data.rs +++ b/wow_dbc/src/wrath_tables/emotes_text_data.rs @@ -142,6 +142,20 @@ impl EmotesTextDataKey { } +impl From for EmotesTextDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for EmotesTextDataKey { } +impl From for EmotesTextDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesTextDataRow { pub id: EmotesTextDataKey, diff --git a/wow_dbc/src/wrath_tables/emotes_text_sound.rs b/wow_dbc/src/wrath_tables/emotes_text_sound.rs index a69ccf8..1035f97 100644 --- a/wow_dbc/src/wrath_tables/emotes_text_sound.rs +++ b/wow_dbc/src/wrath_tables/emotes_text_sound.rs @@ -140,6 +140,20 @@ impl EmotesTextSoundKey { } +impl From for EmotesTextSoundKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextSoundKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EmotesTextSoundKey { fn from(v: i32) -> Self { Self::new(v) @@ -147,6 +161,20 @@ impl From for EmotesTextSoundKey { } +impl From for EmotesTextSoundKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EmotesTextSoundKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EmotesTextSoundRow { pub id: EmotesTextSoundKey, diff --git a/wow_dbc/src/wrath_tables/environmental_damage.rs b/wow_dbc/src/wrath_tables/environmental_damage.rs index 33ea0c4..42412d0 100644 --- a/wow_dbc/src/wrath_tables/environmental_damage.rs +++ b/wow_dbc/src/wrath_tables/environmental_damage.rs @@ -124,6 +124,20 @@ impl EnvironmentalDamageKey { } +impl From for EnvironmentalDamageKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EnvironmentalDamageKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for EnvironmentalDamageKey { fn from(v: i32) -> Self { Self::new(v) @@ -131,6 +145,20 @@ impl From for EnvironmentalDamageKey { } +impl From for EnvironmentalDamageKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for EnvironmentalDamageKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct EnvironmentalDamageRow { pub id: EnvironmentalDamageKey, diff --git a/wow_dbc/src/wrath_tables/exhaustion.rs b/wow_dbc/src/wrath_tables/exhaustion.rs index 1464ccc..534741c 100644 --- a/wow_dbc/src/wrath_tables/exhaustion.rs +++ b/wow_dbc/src/wrath_tables/exhaustion.rs @@ -177,6 +177,20 @@ impl ExhaustionKey { } +impl From for ExhaustionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ExhaustionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ExhaustionKey { fn from(v: i32) -> Self { Self::new(v) @@ -184,6 +198,20 @@ impl From for ExhaustionKey { } +impl From for ExhaustionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ExhaustionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct ExhaustionRow { pub id: ExhaustionKey, diff --git a/wow_dbc/src/wrath_tables/faction.rs b/wow_dbc/src/wrath_tables/faction.rs index 3ef805c..8a983e5 100644 --- a/wow_dbc/src/wrath_tables/faction.rs +++ b/wow_dbc/src/wrath_tables/faction.rs @@ -225,6 +225,20 @@ impl FactionKey { } +impl From for FactionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionKey { fn from(v: i32) -> Self { Self::new(v) @@ -232,6 +246,20 @@ impl From for FactionKey { } +impl From for FactionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct FactionRow { pub id: FactionKey, diff --git a/wow_dbc/src/wrath_tables/faction_group.rs b/wow_dbc/src/wrath_tables/faction_group.rs index 2480387..491b777 100644 --- a/wow_dbc/src/wrath_tables/faction_group.rs +++ b/wow_dbc/src/wrath_tables/faction_group.rs @@ -167,6 +167,20 @@ impl FactionGroupKey { } +impl From for FactionGroupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionGroupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionGroupKey { fn from(v: i32) -> Self { Self::new(v) @@ -174,6 +188,20 @@ impl From for FactionGroupKey { } +impl From for FactionGroupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionGroupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FactionGroupRow { pub id: FactionGroupKey, diff --git a/wow_dbc/src/wrath_tables/faction_template.rs b/wow_dbc/src/wrath_tables/faction_template.rs index 2e60ea3..44977a2 100644 --- a/wow_dbc/src/wrath_tables/faction_template.rs +++ b/wow_dbc/src/wrath_tables/faction_template.rs @@ -166,6 +166,20 @@ impl FactionTemplateKey { } +impl From for FactionTemplateKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionTemplateKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FactionTemplateKey { fn from(v: i32) -> Self { Self::new(v) @@ -173,6 +187,20 @@ impl From for FactionTemplateKey { } +impl From for FactionTemplateKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FactionTemplateKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FactionTemplateRow { pub id: FactionTemplateKey, diff --git a/wow_dbc/src/wrath_tables/file_data.rs b/wow_dbc/src/wrath_tables/file_data.rs index 03482e8..be322b7 100644 --- a/wow_dbc/src/wrath_tables/file_data.rs +++ b/wow_dbc/src/wrath_tables/file_data.rs @@ -168,6 +168,20 @@ impl FileDataKey { } +impl From for FileDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FileDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FileDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -175,6 +189,20 @@ impl From for FileDataKey { } +impl From for FileDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FileDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FileDataRow { pub id: FileDataKey, diff --git a/wow_dbc/src/wrath_tables/footprint_textures.rs b/wow_dbc/src/wrath_tables/footprint_textures.rs index e82a65f..e0fc531 100644 --- a/wow_dbc/src/wrath_tables/footprint_textures.rs +++ b/wow_dbc/src/wrath_tables/footprint_textures.rs @@ -150,6 +150,20 @@ impl FootprintTexturesKey { } +impl From for FootprintTexturesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootprintTexturesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FootprintTexturesKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for FootprintTexturesKey { } +impl From for FootprintTexturesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootprintTexturesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FootprintTexturesRow { pub id: FootprintTexturesKey, diff --git a/wow_dbc/src/wrath_tables/footstep_terrain_lookup.rs b/wow_dbc/src/wrath_tables/footstep_terrain_lookup.rs index c9990e0..b70d7a9 100644 --- a/wow_dbc/src/wrath_tables/footstep_terrain_lookup.rs +++ b/wow_dbc/src/wrath_tables/footstep_terrain_lookup.rs @@ -138,6 +138,20 @@ impl FootstepTerrainLookupKey { } +impl From for FootstepTerrainLookupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootstepTerrainLookupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for FootstepTerrainLookupKey { fn from(v: i32) -> Self { Self::new(v) @@ -145,6 +159,20 @@ impl From for FootstepTerrainLookupKey { } +impl From for FootstepTerrainLookupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for FootstepTerrainLookupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FootstepTerrainLookupRow { pub id: FootstepTerrainLookupKey, diff --git a/wow_dbc/src/wrath_tables/game_object_art_kit.rs b/wow_dbc/src/wrath_tables/game_object_art_kit.rs index c748d67..e2e56f3 100644 --- a/wow_dbc/src/wrath_tables/game_object_art_kit.rs +++ b/wow_dbc/src/wrath_tables/game_object_art_kit.rs @@ -202,6 +202,20 @@ impl GameObjectArtKitKey { } +impl From for GameObjectArtKitKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectArtKitKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameObjectArtKitKey { fn from(v: i32) -> Self { Self::new(v) @@ -209,6 +223,20 @@ impl From for GameObjectArtKitKey { } +impl From for GameObjectArtKitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectArtKitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GameObjectArtKitRow { pub id: GameObjectArtKitKey, diff --git a/wow_dbc/src/wrath_tables/game_object_display_info.rs b/wow_dbc/src/wrath_tables/game_object_display_info.rs index f6d1c0a..0a8f289 100644 --- a/wow_dbc/src/wrath_tables/game_object_display_info.rs +++ b/wow_dbc/src/wrath_tables/game_object_display_info.rs @@ -188,6 +188,20 @@ impl GameObjectDisplayInfoKey { } +impl From for GameObjectDisplayInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectDisplayInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameObjectDisplayInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -195,6 +209,20 @@ impl From for GameObjectDisplayInfoKey { } +impl From for GameObjectDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameObjectDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct GameObjectDisplayInfoRow { pub id: GameObjectDisplayInfoKey, diff --git a/wow_dbc/src/wrath_tables/game_tips.rs b/wow_dbc/src/wrath_tables/game_tips.rs index 1e6e537..eed1db9 100644 --- a/wow_dbc/src/wrath_tables/game_tips.rs +++ b/wow_dbc/src/wrath_tables/game_tips.rs @@ -142,6 +142,20 @@ impl GameTipsKey { } +impl From for GameTipsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameTipsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GameTipsKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for GameTipsKey { } +impl From for GameTipsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GameTipsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GameTipsRow { pub id: GameTipsKey, diff --git a/wow_dbc/src/wrath_tables/gem_properties.rs b/wow_dbc/src/wrath_tables/gem_properties.rs index 0b8692e..c53a0d8 100644 --- a/wow_dbc/src/wrath_tables/gem_properties.rs +++ b/wow_dbc/src/wrath_tables/gem_properties.rs @@ -138,6 +138,20 @@ impl GemPropertiesKey { } +impl From for GemPropertiesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GemPropertiesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GemPropertiesKey { fn from(v: i32) -> Self { Self::new(v) @@ -145,6 +159,20 @@ impl From for GemPropertiesKey { } +impl From for GemPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GemPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GemPropertiesRow { pub id: GemPropertiesKey, diff --git a/wow_dbc/src/wrath_tables/glyph_properties.rs b/wow_dbc/src/wrath_tables/glyph_properties.rs index 1a7e390..6e77457 100644 --- a/wow_dbc/src/wrath_tables/glyph_properties.rs +++ b/wow_dbc/src/wrath_tables/glyph_properties.rs @@ -132,6 +132,20 @@ impl GlyphPropertiesKey { } +impl From for GlyphPropertiesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GlyphPropertiesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GlyphPropertiesKey { fn from(v: i32) -> Self { Self::new(v) @@ -139,6 +153,20 @@ impl From for GlyphPropertiesKey { } +impl From for GlyphPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GlyphPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GlyphPropertiesRow { pub id: GlyphPropertiesKey, diff --git a/wow_dbc/src/wrath_tables/glyph_slot.rs b/wow_dbc/src/wrath_tables/glyph_slot.rs index 4d32f23..c03d4a3 100644 --- a/wow_dbc/src/wrath_tables/glyph_slot.rs +++ b/wow_dbc/src/wrath_tables/glyph_slot.rs @@ -123,6 +123,20 @@ impl GlyphSlotKey { } +impl From for GlyphSlotKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GlyphSlotKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GlyphSlotKey { fn from(v: i32) -> Self { Self::new(v) @@ -130,6 +144,20 @@ impl From for GlyphSlotKey { } +impl From for GlyphSlotKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GlyphSlotKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GlyphSlotRow { pub id: GlyphSlotKey, diff --git a/wow_dbc/src/wrath_tables/gm_survey_answers.rs b/wow_dbc/src/wrath_tables/gm_survey_answers.rs index 325c48d..b05d1e3 100644 --- a/wow_dbc/src/wrath_tables/gm_survey_answers.rs +++ b/wow_dbc/src/wrath_tables/gm_survey_answers.rs @@ -157,6 +157,20 @@ impl GMSurveyAnswersKey { } +impl From for GMSurveyAnswersKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyAnswersKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveyAnswersKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for GMSurveyAnswersKey { } +impl From for GMSurveyAnswersKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyAnswersKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMSurveyAnswersRow { pub id: GMSurveyAnswersKey, diff --git a/wow_dbc/src/wrath_tables/gm_survey_current_survey.rs b/wow_dbc/src/wrath_tables/gm_survey_current_survey.rs index 8d81dff..1d794d6 100644 --- a/wow_dbc/src/wrath_tables/gm_survey_current_survey.rs +++ b/wow_dbc/src/wrath_tables/gm_survey_current_survey.rs @@ -117,6 +117,20 @@ impl GMSurveyCurrentSurveyKey { } +impl From for GMSurveyCurrentSurveyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyCurrentSurveyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveyCurrentSurveyKey { fn from(v: i32) -> Self { Self::new(v) @@ -124,6 +138,20 @@ impl From for GMSurveyCurrentSurveyKey { } +impl From for GMSurveyCurrentSurveyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyCurrentSurveyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMSurveyCurrentSurveyRow { pub id: GMSurveyCurrentSurveyKey, diff --git a/wow_dbc/src/wrath_tables/gm_survey_questions.rs b/wow_dbc/src/wrath_tables/gm_survey_questions.rs index cbd465e..710290f 100644 --- a/wow_dbc/src/wrath_tables/gm_survey_questions.rs +++ b/wow_dbc/src/wrath_tables/gm_survey_questions.rs @@ -142,6 +142,20 @@ impl GMSurveyQuestionsKey { } +impl From for GMSurveyQuestionsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyQuestionsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveyQuestionsKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for GMSurveyQuestionsKey { } +impl From for GMSurveyQuestionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveyQuestionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMSurveyQuestionsRow { pub id: GMSurveyQuestionsKey, diff --git a/wow_dbc/src/wrath_tables/gm_survey_surveys.rs b/wow_dbc/src/wrath_tables/gm_survey_surveys.rs index f3f1ac4..649984d 100644 --- a/wow_dbc/src/wrath_tables/gm_survey_surveys.rs +++ b/wow_dbc/src/wrath_tables/gm_survey_surveys.rs @@ -119,6 +119,20 @@ impl GMSurveySurveysKey { } +impl From for GMSurveySurveysKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveySurveysKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMSurveySurveysKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for GMSurveySurveysKey { } +impl From for GMSurveySurveysKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMSurveySurveysKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMSurveySurveysRow { pub id: GMSurveySurveysKey, diff --git a/wow_dbc/src/wrath_tables/gm_ticket_category.rs b/wow_dbc/src/wrath_tables/gm_ticket_category.rs index 8d1f278..d2b6a01 100644 --- a/wow_dbc/src/wrath_tables/gm_ticket_category.rs +++ b/wow_dbc/src/wrath_tables/gm_ticket_category.rs @@ -142,6 +142,20 @@ impl GMTicketCategoryKey { } +impl From for GMTicketCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMTicketCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GMTicketCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for GMTicketCategoryKey { } +impl From for GMTicketCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GMTicketCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GMTicketCategoryRow { pub id: GMTicketCategoryKey, diff --git a/wow_dbc/src/wrath_tables/ground_effect_doodad.rs b/wow_dbc/src/wrath_tables/ground_effect_doodad.rs index aa73bc9..1eea1b0 100644 --- a/wow_dbc/src/wrath_tables/ground_effect_doodad.rs +++ b/wow_dbc/src/wrath_tables/ground_effect_doodad.rs @@ -157,6 +157,20 @@ impl GroundEffectDoodadKey { } +impl From for GroundEffectDoodadKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectDoodadKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GroundEffectDoodadKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for GroundEffectDoodadKey { } +impl From for GroundEffectDoodadKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectDoodadKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GroundEffectDoodadRow { pub id: GroundEffectDoodadKey, diff --git a/wow_dbc/src/wrath_tables/ground_effect_texture.rs b/wow_dbc/src/wrath_tables/ground_effect_texture.rs index 65fee00..87d319a 100644 --- a/wow_dbc/src/wrath_tables/ground_effect_texture.rs +++ b/wow_dbc/src/wrath_tables/ground_effect_texture.rs @@ -143,6 +143,20 @@ impl GroundEffectTextureKey { } +impl From for GroundEffectTextureKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectTextureKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for GroundEffectTextureKey { fn from(v: i32) -> Self { Self::new(v) @@ -150,6 +164,20 @@ impl From for GroundEffectTextureKey { } +impl From for GroundEffectTextureKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for GroundEffectTextureKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct GroundEffectTextureRow { pub id: GroundEffectTextureKey, diff --git a/wow_dbc/src/wrath_tables/gt_oct_class_combat_rating_scalar.rs b/wow_dbc/src/wrath_tables/gt_oct_class_combat_rating_scalar.rs index ed88217..bd358bf 100644 --- a/wow_dbc/src/wrath_tables/gt_oct_class_combat_rating_scalar.rs +++ b/wow_dbc/src/wrath_tables/gt_oct_class_combat_rating_scalar.rs @@ -116,6 +116,20 @@ impl gtOCTClassCombatRatingScalarKey { } +impl From for gtOCTClassCombatRatingScalarKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for gtOCTClassCombatRatingScalarKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for gtOCTClassCombatRatingScalarKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for gtOCTClassCombatRatingScalarKey { } +impl From for gtOCTClassCombatRatingScalarKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for gtOCTClassCombatRatingScalarKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct gtOCTClassCombatRatingScalarRow { pub id: gtOCTClassCombatRatingScalarKey, diff --git a/wow_dbc/src/wrath_tables/helmet_geoset_vis_data.rs b/wow_dbc/src/wrath_tables/helmet_geoset_vis_data.rs index 53585ec..dfe6421 100644 --- a/wow_dbc/src/wrath_tables/helmet_geoset_vis_data.rs +++ b/wow_dbc/src/wrath_tables/helmet_geoset_vis_data.rs @@ -119,6 +119,20 @@ impl HelmetGeosetVisDataKey { } +impl From for HelmetGeosetVisDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HelmetGeosetVisDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for HelmetGeosetVisDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for HelmetGeosetVisDataKey { } +impl From for HelmetGeosetVisDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HelmetGeosetVisDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct HelmetGeosetVisDataRow { pub id: HelmetGeosetVisDataKey, diff --git a/wow_dbc/src/wrath_tables/holiday_descriptions.rs b/wow_dbc/src/wrath_tables/holiday_descriptions.rs index e282ca1..13c28f6 100644 --- a/wow_dbc/src/wrath_tables/holiday_descriptions.rs +++ b/wow_dbc/src/wrath_tables/holiday_descriptions.rs @@ -142,6 +142,20 @@ impl HolidayDescriptionsKey { } +impl From for HolidayDescriptionsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HolidayDescriptionsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for HolidayDescriptionsKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for HolidayDescriptionsKey { } +impl From for HolidayDescriptionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HolidayDescriptionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct HolidayDescriptionsRow { pub id: HolidayDescriptionsKey, diff --git a/wow_dbc/src/wrath_tables/holiday_names.rs b/wow_dbc/src/wrath_tables/holiday_names.rs index d31b1ea..a994171 100644 --- a/wow_dbc/src/wrath_tables/holiday_names.rs +++ b/wow_dbc/src/wrath_tables/holiday_names.rs @@ -142,6 +142,20 @@ impl HolidayNamesKey { } +impl From for HolidayNamesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HolidayNamesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for HolidayNamesKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for HolidayNamesKey { } +impl From for HolidayNamesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HolidayNamesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct HolidayNamesRow { pub id: HolidayNamesKey, diff --git a/wow_dbc/src/wrath_tables/holidays.rs b/wow_dbc/src/wrath_tables/holidays.rs index e1ffb75..02899ef 100644 --- a/wow_dbc/src/wrath_tables/holidays.rs +++ b/wow_dbc/src/wrath_tables/holidays.rs @@ -231,6 +231,20 @@ impl HolidaysKey { } +impl From for HolidaysKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HolidaysKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for HolidaysKey { fn from(v: i32) -> Self { Self::new(v) @@ -238,6 +252,20 @@ impl From for HolidaysKey { } +impl From for HolidaysKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for HolidaysKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct HolidaysRow { pub id: HolidaysKey, diff --git a/wow_dbc/src/wrath_tables/item.rs b/wow_dbc/src/wrath_tables/item.rs index 9bee13a..a3a7284 100644 --- a/wow_dbc/src/wrath_tables/item.rs +++ b/wow_dbc/src/wrath_tables/item.rs @@ -159,6 +159,20 @@ impl ItemKey { } +impl From for ItemKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemKey { fn from(v: i32) -> Self { Self::new(v) @@ -166,6 +180,20 @@ impl From for ItemKey { } +impl From for ItemKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemRow { pub id: ItemKey, diff --git a/wow_dbc/src/wrath_tables/item_bag_family.rs b/wow_dbc/src/wrath_tables/item_bag_family.rs index e5eb442..7ac5a83 100644 --- a/wow_dbc/src/wrath_tables/item_bag_family.rs +++ b/wow_dbc/src/wrath_tables/item_bag_family.rs @@ -142,6 +142,20 @@ impl ItemBagFamilyKey { } +impl From for ItemBagFamilyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemBagFamilyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemBagFamilyKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for ItemBagFamilyKey { } +impl From for ItemBagFamilyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemBagFamilyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemBagFamilyRow { pub id: ItemBagFamilyKey, diff --git a/wow_dbc/src/wrath_tables/item_cond_ext_costs.rs b/wow_dbc/src/wrath_tables/item_cond_ext_costs.rs index 7280ecb..e6a685d 100644 --- a/wow_dbc/src/wrath_tables/item_cond_ext_costs.rs +++ b/wow_dbc/src/wrath_tables/item_cond_ext_costs.rs @@ -131,6 +131,20 @@ impl ItemCondExtCostsKey { } +impl From for ItemCondExtCostsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemCondExtCostsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemCondExtCostsKey { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for ItemCondExtCostsKey { } +impl From for ItemCondExtCostsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemCondExtCostsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemCondExtCostsRow { pub id: ItemCondExtCostsKey, diff --git a/wow_dbc/src/wrath_tables/item_display_info.rs b/wow_dbc/src/wrath_tables/item_display_info.rs index 53e5b58..c50bf4a 100644 --- a/wow_dbc/src/wrath_tables/item_display_info.rs +++ b/wow_dbc/src/wrath_tables/item_display_info.rs @@ -329,6 +329,20 @@ impl ItemDisplayInfoKey { } +impl From for ItemDisplayInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemDisplayInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemDisplayInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -336,6 +350,20 @@ impl From for ItemDisplayInfoKey { } +impl From for ItemDisplayInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemDisplayInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemDisplayInfoRow { pub id: ItemDisplayInfoKey, diff --git a/wow_dbc/src/wrath_tables/item_extended_cost.rs b/wow_dbc/src/wrath_tables/item_extended_cost.rs index 62bc7c6..6bca583 100644 --- a/wow_dbc/src/wrath_tables/item_extended_cost.rs +++ b/wow_dbc/src/wrath_tables/item_extended_cost.rs @@ -165,6 +165,20 @@ impl ItemExtendedCostKey { } +impl From for ItemExtendedCostKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemExtendedCostKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemExtendedCostKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for ItemExtendedCostKey { } +impl From for ItemExtendedCostKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemExtendedCostKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemExtendedCostRow { pub id: ItemExtendedCostKey, diff --git a/wow_dbc/src/wrath_tables/item_group_sounds.rs b/wow_dbc/src/wrath_tables/item_group_sounds.rs index 09f882a..582731f 100644 --- a/wow_dbc/src/wrath_tables/item_group_sounds.rs +++ b/wow_dbc/src/wrath_tables/item_group_sounds.rs @@ -119,6 +119,20 @@ impl ItemGroupSoundsKey { } +impl From for ItemGroupSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemGroupSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemGroupSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for ItemGroupSoundsKey { } +impl From for ItemGroupSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemGroupSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemGroupSoundsRow { pub id: ItemGroupSoundsKey, diff --git a/wow_dbc/src/wrath_tables/item_limit_category.rs b/wow_dbc/src/wrath_tables/item_limit_category.rs index ed82edc..1c790bd 100644 --- a/wow_dbc/src/wrath_tables/item_limit_category.rs +++ b/wow_dbc/src/wrath_tables/item_limit_category.rs @@ -156,6 +156,20 @@ impl ItemLimitCategoryKey { } +impl From for ItemLimitCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemLimitCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemLimitCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -163,6 +177,20 @@ impl From for ItemLimitCategoryKey { } +impl From for ItemLimitCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemLimitCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemLimitCategoryRow { pub id: ItemLimitCategoryKey, diff --git a/wow_dbc/src/wrath_tables/item_pet_food.rs b/wow_dbc/src/wrath_tables/item_pet_food.rs index 3edbd82..8aba716 100644 --- a/wow_dbc/src/wrath_tables/item_pet_food.rs +++ b/wow_dbc/src/wrath_tables/item_pet_food.rs @@ -142,6 +142,20 @@ impl ItemPetFoodKey { } +impl From for ItemPetFoodKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemPetFoodKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemPetFoodKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for ItemPetFoodKey { } +impl From for ItemPetFoodKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemPetFoodKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemPetFoodRow { pub id: ItemPetFoodKey, diff --git a/wow_dbc/src/wrath_tables/item_purchase_group.rs b/wow_dbc/src/wrath_tables/item_purchase_group.rs index e6fb92c..48185c7 100644 --- a/wow_dbc/src/wrath_tables/item_purchase_group.rs +++ b/wow_dbc/src/wrath_tables/item_purchase_group.rs @@ -152,6 +152,20 @@ impl ItemPurchaseGroupKey { } +impl From for ItemPurchaseGroupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemPurchaseGroupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemPurchaseGroupKey { fn from(v: i32) -> Self { Self::new(v) @@ -159,6 +173,20 @@ impl From for ItemPurchaseGroupKey { } +impl From for ItemPurchaseGroupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemPurchaseGroupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemPurchaseGroupRow { pub id: ItemPurchaseGroupKey, diff --git a/wow_dbc/src/wrath_tables/item_random_properties.rs b/wow_dbc/src/wrath_tables/item_random_properties.rs index a4ed55c..0df9531 100644 --- a/wow_dbc/src/wrath_tables/item_random_properties.rs +++ b/wow_dbc/src/wrath_tables/item_random_properties.rs @@ -170,6 +170,20 @@ impl ItemRandomPropertiesKey { } +impl From for ItemRandomPropertiesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomPropertiesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemRandomPropertiesKey { fn from(v: i32) -> Self { Self::new(v) @@ -177,6 +191,20 @@ impl From for ItemRandomPropertiesKey { } +impl From for ItemRandomPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemRandomPropertiesRow { pub id: ItemRandomPropertiesKey, diff --git a/wow_dbc/src/wrath_tables/item_random_suffix.rs b/wow_dbc/src/wrath_tables/item_random_suffix.rs index f5d972f..b9353c3 100644 --- a/wow_dbc/src/wrath_tables/item_random_suffix.rs +++ b/wow_dbc/src/wrath_tables/item_random_suffix.rs @@ -180,6 +180,20 @@ impl ItemRandomSuffixKey { } +impl From for ItemRandomSuffixKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomSuffixKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemRandomSuffixKey { fn from(v: i32) -> Self { Self::new(v) @@ -187,6 +201,20 @@ impl From for ItemRandomSuffixKey { } +impl From for ItemRandomSuffixKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemRandomSuffixKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemRandomSuffixRow { pub id: ItemRandomSuffixKey, diff --git a/wow_dbc/src/wrath_tables/item_set.rs b/wow_dbc/src/wrath_tables/item_set.rs index bd95059..9883cae 100644 --- a/wow_dbc/src/wrath_tables/item_set.rs +++ b/wow_dbc/src/wrath_tables/item_set.rs @@ -187,6 +187,20 @@ impl ItemSetKey { } +impl From for ItemSetKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemSetKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemSetKey { fn from(v: i32) -> Self { Self::new(v) @@ -194,6 +208,20 @@ impl From for ItemSetKey { } +impl From for ItemSetKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemSetKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemSetRow { pub id: ItemSetKey, diff --git a/wow_dbc/src/wrath_tables/item_visual_effects.rs b/wow_dbc/src/wrath_tables/item_visual_effects.rs index 1b3ac2e..34ae170 100644 --- a/wow_dbc/src/wrath_tables/item_visual_effects.rs +++ b/wow_dbc/src/wrath_tables/item_visual_effects.rs @@ -150,6 +150,20 @@ impl ItemVisualEffectsKey { } +impl From for ItemVisualEffectsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualEffectsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemVisualEffectsKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for ItemVisualEffectsKey { } +impl From for ItemVisualEffectsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualEffectsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemVisualEffectsRow { pub id: ItemVisualEffectsKey, diff --git a/wow_dbc/src/wrath_tables/item_visuals.rs b/wow_dbc/src/wrath_tables/item_visuals.rs index ce82d82..fc8e071 100644 --- a/wow_dbc/src/wrath_tables/item_visuals.rs +++ b/wow_dbc/src/wrath_tables/item_visuals.rs @@ -119,6 +119,20 @@ impl ItemVisualsKey { } +impl From for ItemVisualsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ItemVisualsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for ItemVisualsKey { } +impl From for ItemVisualsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ItemVisualsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ItemVisualsRow { pub id: ItemVisualsKey, diff --git a/wow_dbc/src/wrath_tables/language_words.rs b/wow_dbc/src/wrath_tables/language_words.rs index c208059..86e1426 100644 --- a/wow_dbc/src/wrath_tables/language_words.rs +++ b/wow_dbc/src/wrath_tables/language_words.rs @@ -158,6 +158,20 @@ impl LanguageWordsKey { } +impl From for LanguageWordsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguageWordsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LanguageWordsKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for LanguageWordsKey { } +impl From for LanguageWordsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguageWordsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LanguageWordsRow { pub id: LanguageWordsKey, diff --git a/wow_dbc/src/wrath_tables/languages.rs b/wow_dbc/src/wrath_tables/languages.rs index b3493cc..8de6b83 100644 --- a/wow_dbc/src/wrath_tables/languages.rs +++ b/wow_dbc/src/wrath_tables/languages.rs @@ -142,6 +142,20 @@ impl LanguagesKey { } +impl From for LanguagesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguagesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LanguagesKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for LanguagesKey { } +impl From for LanguagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LanguagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LanguagesRow { pub id: LanguagesKey, diff --git a/wow_dbc/src/wrath_tables/lfg_dungeon_expansion.rs b/wow_dbc/src/wrath_tables/lfg_dungeon_expansion.rs index f7c0e39..1ba27a1 100644 --- a/wow_dbc/src/wrath_tables/lfg_dungeon_expansion.rs +++ b/wow_dbc/src/wrath_tables/lfg_dungeon_expansion.rs @@ -158,6 +158,20 @@ impl LFGDungeonExpansionKey { } +impl From for LFGDungeonExpansionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonExpansionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LFGDungeonExpansionKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for LFGDungeonExpansionKey { } +impl From for LFGDungeonExpansionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonExpansionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LFGDungeonExpansionRow { pub id: LFGDungeonExpansionKey, diff --git a/wow_dbc/src/wrath_tables/lfg_dungeon_group.rs b/wow_dbc/src/wrath_tables/lfg_dungeon_group.rs index 5b828b6..d43cb2a 100644 --- a/wow_dbc/src/wrath_tables/lfg_dungeon_group.rs +++ b/wow_dbc/src/wrath_tables/lfg_dungeon_group.rs @@ -163,6 +163,20 @@ impl LFGDungeonGroupKey { } +impl From for LFGDungeonGroupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonGroupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LFGDungeonGroupKey { fn from(v: i32) -> Self { Self::new(v) @@ -170,6 +184,20 @@ impl From for LFGDungeonGroupKey { } +impl From for LFGDungeonGroupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonGroupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LFGDungeonGroupRow { pub id: LFGDungeonGroupKey, diff --git a/wow_dbc/src/wrath_tables/lfg_dungeons.rs b/wow_dbc/src/wrath_tables/lfg_dungeons.rs index 6ede102..6544380 100644 --- a/wow_dbc/src/wrath_tables/lfg_dungeons.rs +++ b/wow_dbc/src/wrath_tables/lfg_dungeons.rs @@ -262,6 +262,20 @@ impl LFGDungeonsKey { } +impl From for LFGDungeonsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LFGDungeonsKey { fn from(v: i32) -> Self { Self::new(v) @@ -269,6 +283,20 @@ impl From for LFGDungeonsKey { } +impl From for LFGDungeonsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LFGDungeonsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LFGDungeonsRow { pub id: LFGDungeonsKey, diff --git a/wow_dbc/src/wrath_tables/light.rs b/wow_dbc/src/wrath_tables/light.rs index bb76e31..f52d84b 100644 --- a/wow_dbc/src/wrath_tables/light.rs +++ b/wow_dbc/src/wrath_tables/light.rs @@ -151,6 +151,20 @@ impl LightKey { } +impl From for LightKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightKey { fn from(v: i32) -> Self { Self::new(v) @@ -158,6 +172,20 @@ impl From for LightKey { } +impl From for LightKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LightRow { pub id: LightKey, diff --git a/wow_dbc/src/wrath_tables/light_float_band.rs b/wow_dbc/src/wrath_tables/light_float_band.rs index ce326e4..09c30c7 100644 --- a/wow_dbc/src/wrath_tables/light_float_band.rs +++ b/wow_dbc/src/wrath_tables/light_float_band.rs @@ -136,6 +136,20 @@ impl LightFloatBandKey { } +impl From for LightFloatBandKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightFloatBandKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightFloatBandKey { fn from(v: i32) -> Self { Self::new(v) @@ -143,6 +157,20 @@ impl From for LightFloatBandKey { } +impl From for LightFloatBandKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightFloatBandKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LightFloatBandRow { pub id: LightFloatBandKey, diff --git a/wow_dbc/src/wrath_tables/light_int_band.rs b/wow_dbc/src/wrath_tables/light_int_band.rs index ff9e3e4..339563e 100644 --- a/wow_dbc/src/wrath_tables/light_int_band.rs +++ b/wow_dbc/src/wrath_tables/light_int_band.rs @@ -136,6 +136,20 @@ impl LightIntBandKey { } +impl From for LightIntBandKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightIntBandKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightIntBandKey { fn from(v: i32) -> Self { Self::new(v) @@ -143,6 +157,20 @@ impl From for LightIntBandKey { } +impl From for LightIntBandKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightIntBandKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LightIntBandRow { pub id: LightIntBandKey, diff --git a/wow_dbc/src/wrath_tables/light_params.rs b/wow_dbc/src/wrath_tables/light_params.rs index a658ed6..7e83e80 100644 --- a/wow_dbc/src/wrath_tables/light_params.rs +++ b/wow_dbc/src/wrath_tables/light_params.rs @@ -166,6 +166,20 @@ impl LightParamsKey { } +impl From for LightParamsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightParamsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightParamsKey { fn from(v: i32) -> Self { Self::new(v) @@ -173,6 +187,20 @@ impl From for LightParamsKey { } +impl From for LightParamsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightParamsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LightParamsRow { pub id: LightParamsKey, diff --git a/wow_dbc/src/wrath_tables/light_skybox.rs b/wow_dbc/src/wrath_tables/light_skybox.rs index cf6d425..04e7a25 100644 --- a/wow_dbc/src/wrath_tables/light_skybox.rs +++ b/wow_dbc/src/wrath_tables/light_skybox.rs @@ -157,6 +157,20 @@ impl LightSkyboxKey { } +impl From for LightSkyboxKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightSkyboxKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LightSkyboxKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for LightSkyboxKey { } +impl From for LightSkyboxKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LightSkyboxKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LightSkyboxRow { pub id: LightSkyboxKey, diff --git a/wow_dbc/src/wrath_tables/liquid_material.rs b/wow_dbc/src/wrath_tables/liquid_material.rs index 7c57332..ee44606 100644 --- a/wow_dbc/src/wrath_tables/liquid_material.rs +++ b/wow_dbc/src/wrath_tables/liquid_material.rs @@ -123,6 +123,20 @@ impl LiquidMaterialKey { } +impl From for LiquidMaterialKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LiquidMaterialKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LiquidMaterialKey { fn from(v: i32) -> Self { Self::new(v) @@ -130,6 +144,20 @@ impl From for LiquidMaterialKey { } +impl From for LiquidMaterialKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LiquidMaterialKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LiquidMaterialRow { pub id: LiquidMaterialKey, diff --git a/wow_dbc/src/wrath_tables/liquid_type.rs b/wow_dbc/src/wrath_tables/liquid_type.rs index 0ac6fd3..81b45f4 100644 --- a/wow_dbc/src/wrath_tables/liquid_type.rs +++ b/wow_dbc/src/wrath_tables/liquid_type.rs @@ -310,6 +310,20 @@ impl LiquidTypeKey { } +impl From for LiquidTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LiquidTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LiquidTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -317,6 +331,20 @@ impl From for LiquidTypeKey { } +impl From for LiquidTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LiquidTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LiquidTypeRow { pub id: LiquidTypeKey, diff --git a/wow_dbc/src/wrath_tables/loading_screen_taxi_splines.rs b/wow_dbc/src/wrath_tables/loading_screen_taxi_splines.rs index 3a5fc31..b3dce50 100644 --- a/wow_dbc/src/wrath_tables/loading_screen_taxi_splines.rs +++ b/wow_dbc/src/wrath_tables/loading_screen_taxi_splines.rs @@ -144,6 +144,20 @@ impl LoadingScreenTaxiSplinesKey { } +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LoadingScreenTaxiSplinesKey { fn from(v: i32) -> Self { Self::new(v) @@ -151,6 +165,20 @@ impl From for LoadingScreenTaxiSplinesKey { } +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreenTaxiSplinesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct LoadingScreenTaxiSplinesRow { pub id: LoadingScreenTaxiSplinesKey, diff --git a/wow_dbc/src/wrath_tables/loading_screens.rs b/wow_dbc/src/wrath_tables/loading_screens.rs index 3b1825f..3d7e3ce 100644 --- a/wow_dbc/src/wrath_tables/loading_screens.rs +++ b/wow_dbc/src/wrath_tables/loading_screens.rs @@ -175,6 +175,20 @@ impl LoadingScreensKey { } +impl From for LoadingScreensKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreensKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LoadingScreensKey { fn from(v: i32) -> Self { Self::new(v) @@ -182,6 +196,20 @@ impl From for LoadingScreensKey { } +impl From for LoadingScreensKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LoadingScreensKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LoadingScreensRow { pub id: LoadingScreensKey, diff --git a/wow_dbc/src/wrath_tables/lock.rs b/wow_dbc/src/wrath_tables/lock.rs index 03bc6fc..a11e192 100644 --- a/wow_dbc/src/wrath_tables/lock.rs +++ b/wow_dbc/src/wrath_tables/lock.rs @@ -149,6 +149,20 @@ impl LockKey { } +impl From for LockKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LockKey { fn from(v: i32) -> Self { Self::new(v) @@ -156,6 +170,20 @@ impl From for LockKey { } +impl From for LockKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LockRow { pub id: LockKey, diff --git a/wow_dbc/src/wrath_tables/lock_type.rs b/wow_dbc/src/wrath_tables/lock_type.rs index e83a260..c2f336f 100644 --- a/wow_dbc/src/wrath_tables/lock_type.rs +++ b/wow_dbc/src/wrath_tables/lock_type.rs @@ -178,6 +178,20 @@ impl LockTypeKey { } +impl From for LockTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for LockTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -185,6 +199,20 @@ impl From for LockTypeKey { } +impl From for LockTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for LockTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct LockTypeRow { pub id: LockTypeKey, diff --git a/wow_dbc/src/wrath_tables/mail_template.rs b/wow_dbc/src/wrath_tables/mail_template.rs index 1617a30..54aac83 100644 --- a/wow_dbc/src/wrath_tables/mail_template.rs +++ b/wow_dbc/src/wrath_tables/mail_template.rs @@ -151,6 +151,20 @@ impl MailTemplateKey { } +impl From for MailTemplateKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MailTemplateKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MailTemplateKey { fn from(v: i32) -> Self { Self::new(v) @@ -158,6 +172,20 @@ impl From for MailTemplateKey { } +impl From for MailTemplateKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MailTemplateKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MailTemplateRow { pub id: MailTemplateKey, diff --git a/wow_dbc/src/wrath_tables/map.rs b/wow_dbc/src/wrath_tables/map.rs index 0e0fd52..5d5bab9 100644 --- a/wow_dbc/src/wrath_tables/map.rs +++ b/wow_dbc/src/wrath_tables/map.rs @@ -267,6 +267,20 @@ impl MapKey { } +impl From for MapKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MapKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MapKey { fn from(v: i32) -> Self { Self::new(v) @@ -274,6 +288,20 @@ impl From for MapKey { } +impl From for MapKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MapKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct MapRow { pub id: MapKey, diff --git a/wow_dbc/src/wrath_tables/map_difficulty.rs b/wow_dbc/src/wrath_tables/map_difficulty.rs index 3b0ad42..f26c86f 100644 --- a/wow_dbc/src/wrath_tables/map_difficulty.rs +++ b/wow_dbc/src/wrath_tables/map_difficulty.rs @@ -189,6 +189,20 @@ impl MapDifficultyKey { } +impl From for MapDifficultyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MapDifficultyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MapDifficultyKey { fn from(v: i32) -> Self { Self::new(v) @@ -196,6 +210,20 @@ impl From for MapDifficultyKey { } +impl From for MapDifficultyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MapDifficultyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MapDifficultyRow { pub id: MapDifficultyKey, diff --git a/wow_dbc/src/wrath_tables/material.rs b/wow_dbc/src/wrath_tables/material.rs index 2dafba6..b3a0208 100644 --- a/wow_dbc/src/wrath_tables/material.rs +++ b/wow_dbc/src/wrath_tables/material.rs @@ -137,6 +137,20 @@ impl MaterialKey { } +impl From for MaterialKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MaterialKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MaterialKey { fn from(v: i32) -> Self { Self::new(v) @@ -144,6 +158,20 @@ impl From for MaterialKey { } +impl From for MaterialKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MaterialKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MaterialRow { pub id: MaterialKey, diff --git a/wow_dbc/src/wrath_tables/movie.rs b/wow_dbc/src/wrath_tables/movie.rs index fd54361..376cf5a 100644 --- a/wow_dbc/src/wrath_tables/movie.rs +++ b/wow_dbc/src/wrath_tables/movie.rs @@ -157,6 +157,20 @@ impl MovieKey { } +impl From for MovieKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MovieKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MovieKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for MovieKey { } +impl From for MovieKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MovieKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MovieRow { pub id: MovieKey, diff --git a/wow_dbc/src/wrath_tables/movie_variation.rs b/wow_dbc/src/wrath_tables/movie_variation.rs index 6638382..9d5bd97 100644 --- a/wow_dbc/src/wrath_tables/movie_variation.rs +++ b/wow_dbc/src/wrath_tables/movie_variation.rs @@ -125,6 +125,20 @@ impl MovieVariationKey { } +impl From for MovieVariationKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MovieVariationKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for MovieVariationKey { fn from(v: i32) -> Self { Self::new(v) @@ -132,6 +146,20 @@ impl From for MovieVariationKey { } +impl From for MovieVariationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for MovieVariationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MovieVariationRow { pub id: MovieVariationKey, diff --git a/wow_dbc/src/wrath_tables/name_gen.rs b/wow_dbc/src/wrath_tables/name_gen.rs index 2e5d483..d25fe7d 100644 --- a/wow_dbc/src/wrath_tables/name_gen.rs +++ b/wow_dbc/src/wrath_tables/name_gen.rs @@ -165,6 +165,20 @@ impl NameGenKey { } +impl From for NameGenKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NameGenKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NameGenKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for NameGenKey { } +impl From for NameGenKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NameGenKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NameGenRow { pub id: NameGenKey, diff --git a/wow_dbc/src/wrath_tables/names_profanity.rs b/wow_dbc/src/wrath_tables/names_profanity.rs index 3b2be61..fe47e97 100644 --- a/wow_dbc/src/wrath_tables/names_profanity.rs +++ b/wow_dbc/src/wrath_tables/names_profanity.rs @@ -157,6 +157,20 @@ impl NamesProfanityKey { } +impl From for NamesProfanityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesProfanityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NamesProfanityKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for NamesProfanityKey { } +impl From for NamesProfanityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesProfanityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NamesProfanityRow { pub id: NamesProfanityKey, diff --git a/wow_dbc/src/wrath_tables/names_reserved.rs b/wow_dbc/src/wrath_tables/names_reserved.rs index 627f2c8..9bd8693 100644 --- a/wow_dbc/src/wrath_tables/names_reserved.rs +++ b/wow_dbc/src/wrath_tables/names_reserved.rs @@ -157,6 +157,20 @@ impl NamesReservedKey { } +impl From for NamesReservedKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesReservedKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NamesReservedKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for NamesReservedKey { } +impl From for NamesReservedKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NamesReservedKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NamesReservedRow { pub id: NamesReservedKey, diff --git a/wow_dbc/src/wrath_tables/npc_sounds.rs b/wow_dbc/src/wrath_tables/npc_sounds.rs index 77f2607..f125dd3 100644 --- a/wow_dbc/src/wrath_tables/npc_sounds.rs +++ b/wow_dbc/src/wrath_tables/npc_sounds.rs @@ -119,6 +119,20 @@ impl NPCSoundsKey { } +impl From for NPCSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NPCSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for NPCSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for NPCSoundsKey { } +impl From for NPCSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for NPCSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NPCSoundsRow { pub id: NPCSoundsKey, diff --git a/wow_dbc/src/wrath_tables/object_effect.rs b/wow_dbc/src/wrath_tables/object_effect.rs index 721a476..4090ee6 100644 --- a/wow_dbc/src/wrath_tables/object_effect.rs +++ b/wow_dbc/src/wrath_tables/object_effect.rs @@ -211,6 +211,20 @@ impl ObjectEffectKey { } +impl From for ObjectEffectKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ObjectEffectKey { fn from(v: i32) -> Self { Self::new(v) @@ -218,6 +232,20 @@ impl From for ObjectEffectKey { } +impl From for ObjectEffectKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct ObjectEffectRow { pub id: ObjectEffectKey, diff --git a/wow_dbc/src/wrath_tables/object_effect_group.rs b/wow_dbc/src/wrath_tables/object_effect_group.rs index b7be3a9..7e1e837 100644 --- a/wow_dbc/src/wrath_tables/object_effect_group.rs +++ b/wow_dbc/src/wrath_tables/object_effect_group.rs @@ -150,6 +150,20 @@ impl ObjectEffectGroupKey { } +impl From for ObjectEffectGroupKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectGroupKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ObjectEffectGroupKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for ObjectEffectGroupKey { } +impl From for ObjectEffectGroupKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectGroupKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ObjectEffectGroupRow { pub id: ObjectEffectGroupKey, diff --git a/wow_dbc/src/wrath_tables/object_effect_modifier.rs b/wow_dbc/src/wrath_tables/object_effect_modifier.rs index 028bea0..9a0962c 100644 --- a/wow_dbc/src/wrath_tables/object_effect_modifier.rs +++ b/wow_dbc/src/wrath_tables/object_effect_modifier.rs @@ -140,6 +140,20 @@ impl ObjectEffectModifierKey { } +impl From for ObjectEffectModifierKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectModifierKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ObjectEffectModifierKey { fn from(v: i32) -> Self { Self::new(v) @@ -147,6 +161,20 @@ impl From for ObjectEffectModifierKey { } +impl From for ObjectEffectModifierKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectModifierKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct ObjectEffectModifierRow { pub id: ObjectEffectModifierKey, diff --git a/wow_dbc/src/wrath_tables/object_effect_package.rs b/wow_dbc/src/wrath_tables/object_effect_package.rs index b609d2c..bfc5a58 100644 --- a/wow_dbc/src/wrath_tables/object_effect_package.rs +++ b/wow_dbc/src/wrath_tables/object_effect_package.rs @@ -150,6 +150,20 @@ impl ObjectEffectPackageKey { } +impl From for ObjectEffectPackageKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectPackageKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ObjectEffectPackageKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for ObjectEffectPackageKey { } +impl From for ObjectEffectPackageKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectPackageKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ObjectEffectPackageRow { pub id: ObjectEffectPackageKey, diff --git a/wow_dbc/src/wrath_tables/object_effect_package_elem.rs b/wow_dbc/src/wrath_tables/object_effect_package_elem.rs index c332bb0..09c8108 100644 --- a/wow_dbc/src/wrath_tables/object_effect_package_elem.rs +++ b/wow_dbc/src/wrath_tables/object_effect_package_elem.rs @@ -132,6 +132,20 @@ impl ObjectEffectPackageElemKey { } +impl From for ObjectEffectPackageElemKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectPackageElemKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ObjectEffectPackageElemKey { fn from(v: i32) -> Self { Self::new(v) @@ -139,6 +153,20 @@ impl From for ObjectEffectPackageElemKey { } +impl From for ObjectEffectPackageElemKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ObjectEffectPackageElemKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ObjectEffectPackageElemRow { pub id: ObjectEffectPackageElemKey, diff --git a/wow_dbc/src/wrath_tables/override_spell_data.rs b/wow_dbc/src/wrath_tables/override_spell_data.rs index e854f85..a881f29 100644 --- a/wow_dbc/src/wrath_tables/override_spell_data.rs +++ b/wow_dbc/src/wrath_tables/override_spell_data.rs @@ -126,6 +126,20 @@ impl OverrideSpellDataKey { } +impl From for OverrideSpellDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for OverrideSpellDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for OverrideSpellDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -133,6 +147,20 @@ impl From for OverrideSpellDataKey { } +impl From for OverrideSpellDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for OverrideSpellDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct OverrideSpellDataRow { pub id: OverrideSpellDataKey, diff --git a/wow_dbc/src/wrath_tables/package.rs b/wow_dbc/src/wrath_tables/package.rs index 1005dd8..740355d 100644 --- a/wow_dbc/src/wrath_tables/package.rs +++ b/wow_dbc/src/wrath_tables/package.rs @@ -167,6 +167,20 @@ impl PackageKey { } +impl From for PackageKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PackageKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PackageKey { fn from(v: i32) -> Self { Self::new(v) @@ -174,6 +188,20 @@ impl From for PackageKey { } +impl From for PackageKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PackageKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PackageRow { pub id: PackageKey, diff --git a/wow_dbc/src/wrath_tables/page_text_material.rs b/wow_dbc/src/wrath_tables/page_text_material.rs index 52dba7b..031954c 100644 --- a/wow_dbc/src/wrath_tables/page_text_material.rs +++ b/wow_dbc/src/wrath_tables/page_text_material.rs @@ -150,6 +150,20 @@ impl PageTextMaterialKey { } +impl From for PageTextMaterialKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PageTextMaterialKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PageTextMaterialKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for PageTextMaterialKey { } +impl From for PageTextMaterialKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PageTextMaterialKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PageTextMaterialRow { pub id: PageTextMaterialKey, diff --git a/wow_dbc/src/wrath_tables/particle_color.rs b/wow_dbc/src/wrath_tables/particle_color.rs index e463cb0..80444b2 100644 --- a/wow_dbc/src/wrath_tables/particle_color.rs +++ b/wow_dbc/src/wrath_tables/particle_color.rs @@ -139,6 +139,20 @@ impl ParticleColorKey { } +impl From for ParticleColorKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ParticleColorKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ParticleColorKey { fn from(v: i32) -> Self { Self::new(v) @@ -146,6 +160,20 @@ impl From for ParticleColorKey { } +impl From for ParticleColorKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ParticleColorKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ParticleColorRow { pub id: ParticleColorKey, diff --git a/wow_dbc/src/wrath_tables/pet_personality.rs b/wow_dbc/src/wrath_tables/pet_personality.rs index fb9c1b0..1c5dbfb 100644 --- a/wow_dbc/src/wrath_tables/pet_personality.rs +++ b/wow_dbc/src/wrath_tables/pet_personality.rs @@ -162,6 +162,20 @@ impl PetPersonalityKey { } +impl From for PetPersonalityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetPersonalityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PetPersonalityKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for PetPersonalityKey { } +impl From for PetPersonalityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetPersonalityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct PetPersonalityRow { pub id: PetPersonalityKey, diff --git a/wow_dbc/src/wrath_tables/petition_type.rs b/wow_dbc/src/wrath_tables/petition_type.rs index d64ddd3..6d13db7 100644 --- a/wow_dbc/src/wrath_tables/petition_type.rs +++ b/wow_dbc/src/wrath_tables/petition_type.rs @@ -157,6 +157,20 @@ impl PetitionTypeKey { } +impl From for PetitionTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetitionTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PetitionTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for PetitionTypeKey { } +impl From for PetitionTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PetitionTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PetitionTypeRow { pub id: PetitionTypeKey, diff --git a/wow_dbc/src/wrath_tables/power_display.rs b/wow_dbc/src/wrath_tables/power_display.rs index 97b006a..630f649 100644 --- a/wow_dbc/src/wrath_tables/power_display.rs +++ b/wow_dbc/src/wrath_tables/power_display.rs @@ -178,6 +178,20 @@ impl PowerDisplayKey { } +impl From for PowerDisplayKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PowerDisplayKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PowerDisplayKey { fn from(v: i32) -> Self { Self::new(v) @@ -185,6 +199,20 @@ impl From for PowerDisplayKey { } +impl From for PowerDisplayKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PowerDisplayKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PowerDisplayRow { pub id: PowerDisplayKey, diff --git a/wow_dbc/src/wrath_tables/pvp_difficulty.rs b/wow_dbc/src/wrath_tables/pvp_difficulty.rs index bf069b0..cfe0c49 100644 --- a/wow_dbc/src/wrath_tables/pvp_difficulty.rs +++ b/wow_dbc/src/wrath_tables/pvp_difficulty.rs @@ -145,6 +145,20 @@ impl PvpDifficultyKey { } +impl From for PvpDifficultyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PvpDifficultyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for PvpDifficultyKey { fn from(v: i32) -> Self { Self::new(v) @@ -152,6 +166,20 @@ impl From for PvpDifficultyKey { } +impl From for PvpDifficultyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for PvpDifficultyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct PvpDifficultyRow { pub id: PvpDifficultyKey, diff --git a/wow_dbc/src/wrath_tables/quest_faction_reward.rs b/wow_dbc/src/wrath_tables/quest_faction_reward.rs index 0ef6ed5..1c720c3 100644 --- a/wow_dbc/src/wrath_tables/quest_faction_reward.rs +++ b/wow_dbc/src/wrath_tables/quest_faction_reward.rs @@ -119,6 +119,20 @@ impl QuestFactionRewardKey { } +impl From for QuestFactionRewardKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestFactionRewardKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestFactionRewardKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for QuestFactionRewardKey { } +impl From for QuestFactionRewardKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestFactionRewardKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct QuestFactionRewardRow { pub id: QuestFactionRewardKey, diff --git a/wow_dbc/src/wrath_tables/quest_info.rs b/wow_dbc/src/wrath_tables/quest_info.rs index d8c5174..dcc1387 100644 --- a/wow_dbc/src/wrath_tables/quest_info.rs +++ b/wow_dbc/src/wrath_tables/quest_info.rs @@ -142,6 +142,20 @@ impl QuestInfoKey { } +impl From for QuestInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for QuestInfoKey { } +impl From for QuestInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct QuestInfoRow { pub id: QuestInfoKey, diff --git a/wow_dbc/src/wrath_tables/quest_sort.rs b/wow_dbc/src/wrath_tables/quest_sort.rs index 16f71ad..7ebeb8a 100644 --- a/wow_dbc/src/wrath_tables/quest_sort.rs +++ b/wow_dbc/src/wrath_tables/quest_sort.rs @@ -142,6 +142,20 @@ impl QuestSortKey { } +impl From for QuestSortKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestSortKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestSortKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for QuestSortKey { } +impl From for QuestSortKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestSortKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct QuestSortRow { pub id: QuestSortKey, diff --git a/wow_dbc/src/wrath_tables/quest_xp.rs b/wow_dbc/src/wrath_tables/quest_xp.rs index 77e2c27..1e17901 100644 --- a/wow_dbc/src/wrath_tables/quest_xp.rs +++ b/wow_dbc/src/wrath_tables/quest_xp.rs @@ -119,6 +119,20 @@ impl QuestXPKey { } +impl From for QuestXPKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestXPKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for QuestXPKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for QuestXPKey { } +impl From for QuestXPKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for QuestXPKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct QuestXPRow { pub id: QuestXPKey, diff --git a/wow_dbc/src/wrath_tables/rand_prop_points.rs b/wow_dbc/src/wrath_tables/rand_prop_points.rs index 1012fab..7c5bbaa 100644 --- a/wow_dbc/src/wrath_tables/rand_prop_points.rs +++ b/wow_dbc/src/wrath_tables/rand_prop_points.rs @@ -139,6 +139,20 @@ impl RandPropPointsKey { } +impl From for RandPropPointsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for RandPropPointsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for RandPropPointsKey { fn from(v: i32) -> Self { Self::new(v) @@ -146,6 +160,20 @@ impl From for RandPropPointsKey { } +impl From for RandPropPointsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for RandPropPointsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct RandPropPointsRow { pub id: RandPropPointsKey, diff --git a/wow_dbc/src/wrath_tables/resistances.rs b/wow_dbc/src/wrath_tables/resistances.rs index 7ff3de6..a3945d2 100644 --- a/wow_dbc/src/wrath_tables/resistances.rs +++ b/wow_dbc/src/wrath_tables/resistances.rs @@ -156,6 +156,20 @@ impl ResistancesKey { } +impl From for ResistancesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ResistancesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ResistancesKey { fn from(v: i32) -> Self { Self::new(v) @@ -163,6 +177,20 @@ impl From for ResistancesKey { } +impl From for ResistancesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ResistancesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ResistancesRow { pub id: ResistancesKey, diff --git a/wow_dbc/src/wrath_tables/scaling_stat_distribution.rs b/wow_dbc/src/wrath_tables/scaling_stat_distribution.rs index fb88444..fb430a8 100644 --- a/wow_dbc/src/wrath_tables/scaling_stat_distribution.rs +++ b/wow_dbc/src/wrath_tables/scaling_stat_distribution.rs @@ -136,6 +136,20 @@ impl ScalingStatDistributionKey { } +impl From for ScalingStatDistributionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ScalingStatDistributionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ScalingStatDistributionKey { fn from(v: i32) -> Self { Self::new(v) @@ -143,6 +157,20 @@ impl From for ScalingStatDistributionKey { } +impl From for ScalingStatDistributionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ScalingStatDistributionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ScalingStatDistributionRow { pub id: ScalingStatDistributionKey, diff --git a/wow_dbc/src/wrath_tables/scaling_stat_values.rs b/wow_dbc/src/wrath_tables/scaling_stat_values.rs index 82677bb..e5a2b17 100644 --- a/wow_dbc/src/wrath_tables/scaling_stat_values.rs +++ b/wow_dbc/src/wrath_tables/scaling_stat_values.rs @@ -270,6 +270,20 @@ impl ScalingStatValuesKey { } +impl From for ScalingStatValuesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ScalingStatValuesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ScalingStatValuesKey { fn from(v: i32) -> Self { Self::new(v) @@ -277,6 +291,20 @@ impl From for ScalingStatValuesKey { } +impl From for ScalingStatValuesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ScalingStatValuesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ScalingStatValuesRow { pub id: ScalingStatValuesKey, diff --git a/wow_dbc/src/wrath_tables/screen_effect.rs b/wow_dbc/src/wrath_tables/screen_effect.rs index 6ea0f49..0f35878 100644 --- a/wow_dbc/src/wrath_tables/screen_effect.rs +++ b/wow_dbc/src/wrath_tables/screen_effect.rs @@ -191,6 +191,20 @@ impl ScreenEffectKey { } +impl From for ScreenEffectKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ScreenEffectKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ScreenEffectKey { fn from(v: i32) -> Self { Self::new(v) @@ -198,6 +212,20 @@ impl From for ScreenEffectKey { } +impl From for ScreenEffectKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ScreenEffectKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ScreenEffectRow { pub id: ScreenEffectKey, diff --git a/wow_dbc/src/wrath_tables/server_messages.rs b/wow_dbc/src/wrath_tables/server_messages.rs index 1f02cb9..8075332 100644 --- a/wow_dbc/src/wrath_tables/server_messages.rs +++ b/wow_dbc/src/wrath_tables/server_messages.rs @@ -142,6 +142,20 @@ impl ServerMessagesKey { } +impl From for ServerMessagesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ServerMessagesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ServerMessagesKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for ServerMessagesKey { } +impl From for ServerMessagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ServerMessagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ServerMessagesRow { pub id: ServerMessagesKey, diff --git a/wow_dbc/src/wrath_tables/sheathe_sound_lookups.rs b/wow_dbc/src/wrath_tables/sheathe_sound_lookups.rs index f8aa938..23b6b43 100644 --- a/wow_dbc/src/wrath_tables/sheathe_sound_lookups.rs +++ b/wow_dbc/src/wrath_tables/sheathe_sound_lookups.rs @@ -152,6 +152,20 @@ impl SheatheSoundLookupsKey { } +impl From for SheatheSoundLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SheatheSoundLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SheatheSoundLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -159,6 +173,20 @@ impl From for SheatheSoundLookupsKey { } +impl From for SheatheSoundLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SheatheSoundLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SheatheSoundLookupsRow { pub id: SheatheSoundLookupsKey, diff --git a/wow_dbc/src/wrath_tables/skill_costs_data.rs b/wow_dbc/src/wrath_tables/skill_costs_data.rs index 2d85b90..f6197c1 100644 --- a/wow_dbc/src/wrath_tables/skill_costs_data.rs +++ b/wow_dbc/src/wrath_tables/skill_costs_data.rs @@ -126,6 +126,20 @@ impl SkillCostsDataKey { } +impl From for SkillCostsDataKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillCostsDataKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillCostsDataKey { fn from(v: i32) -> Self { Self::new(v) @@ -133,6 +147,20 @@ impl From for SkillCostsDataKey { } +impl From for SkillCostsDataKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillCostsDataKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillCostsDataRow { pub id: SkillCostsDataKey, diff --git a/wow_dbc/src/wrath_tables/skill_line.rs b/wow_dbc/src/wrath_tables/skill_line.rs index b88b9ed..632e9a2 100644 --- a/wow_dbc/src/wrath_tables/skill_line.rs +++ b/wow_dbc/src/wrath_tables/skill_line.rs @@ -190,6 +190,20 @@ impl SkillLineKey { } +impl From for SkillLineKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineKey { fn from(v: i32) -> Self { Self::new(v) @@ -197,6 +211,20 @@ impl From for SkillLineKey { } +impl From for SkillLineKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillLineRow { pub id: SkillLineKey, diff --git a/wow_dbc/src/wrath_tables/skill_line_ability.rs b/wow_dbc/src/wrath_tables/skill_line_ability.rs index 07749bb..6b1c757 100644 --- a/wow_dbc/src/wrath_tables/skill_line_ability.rs +++ b/wow_dbc/src/wrath_tables/skill_line_ability.rs @@ -198,6 +198,20 @@ impl SkillLineAbilityKey { } +impl From for SkillLineAbilityKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineAbilityKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineAbilityKey { fn from(v: i32) -> Self { Self::new(v) @@ -205,6 +219,20 @@ impl From for SkillLineAbilityKey { } +impl From for SkillLineAbilityKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineAbilityKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillLineAbilityRow { pub id: SkillLineAbilityKey, diff --git a/wow_dbc/src/wrath_tables/skill_line_category.rs b/wow_dbc/src/wrath_tables/skill_line_category.rs index db66bf7..0509eb9 100644 --- a/wow_dbc/src/wrath_tables/skill_line_category.rs +++ b/wow_dbc/src/wrath_tables/skill_line_category.rs @@ -149,6 +149,20 @@ impl SkillLineCategoryKey { } +impl From for SkillLineCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillLineCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -156,6 +170,20 @@ impl From for SkillLineCategoryKey { } +impl From for SkillLineCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillLineCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillLineCategoryRow { pub id: SkillLineCategoryKey, diff --git a/wow_dbc/src/wrath_tables/skill_race_class_info.rs b/wow_dbc/src/wrath_tables/skill_race_class_info.rs index 5dd4f58..528f6c1 100644 --- a/wow_dbc/src/wrath_tables/skill_race_class_info.rs +++ b/wow_dbc/src/wrath_tables/skill_race_class_info.rs @@ -160,6 +160,20 @@ impl SkillRaceClassInfoKey { } +impl From for SkillRaceClassInfoKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillRaceClassInfoKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillRaceClassInfoKey { fn from(v: i32) -> Self { Self::new(v) @@ -167,6 +181,20 @@ impl From for SkillRaceClassInfoKey { } +impl From for SkillRaceClassInfoKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillRaceClassInfoKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillRaceClassInfoRow { pub id: SkillRaceClassInfoKey, diff --git a/wow_dbc/src/wrath_tables/skill_tiers.rs b/wow_dbc/src/wrath_tables/skill_tiers.rs index ab7c428..9793626 100644 --- a/wow_dbc/src/wrath_tables/skill_tiers.rs +++ b/wow_dbc/src/wrath_tables/skill_tiers.rs @@ -129,6 +129,20 @@ impl SkillTiersKey { } +impl From for SkillTiersKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillTiersKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SkillTiersKey { fn from(v: i32) -> Self { Self::new(v) @@ -136,6 +150,20 @@ impl From for SkillTiersKey { } +impl From for SkillTiersKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SkillTiersKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SkillTiersRow { pub id: SkillTiersKey, diff --git a/wow_dbc/src/wrath_tables/sound_ambience.rs b/wow_dbc/src/wrath_tables/sound_ambience.rs index 3b71106..31338c4 100644 --- a/wow_dbc/src/wrath_tables/sound_ambience.rs +++ b/wow_dbc/src/wrath_tables/sound_ambience.rs @@ -119,6 +119,20 @@ impl SoundAmbienceKey { } +impl From for SoundAmbienceKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundAmbienceKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundAmbienceKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for SoundAmbienceKey { } +impl From for SoundAmbienceKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundAmbienceKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SoundAmbienceRow { pub id: SoundAmbienceKey, diff --git a/wow_dbc/src/wrath_tables/sound_emitters.rs b/wow_dbc/src/wrath_tables/sound_emitters.rs index 89571e8..a0dcb34 100644 --- a/wow_dbc/src/wrath_tables/sound_emitters.rs +++ b/wow_dbc/src/wrath_tables/sound_emitters.rs @@ -186,6 +186,20 @@ impl SoundEmittersKey { } +impl From for SoundEmittersKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEmittersKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundEmittersKey { fn from(v: i32) -> Self { Self::new(v) @@ -193,6 +207,20 @@ impl From for SoundEmittersKey { } +impl From for SoundEmittersKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEmittersKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundEmittersRow { pub id: SoundEmittersKey, diff --git a/wow_dbc/src/wrath_tables/sound_entries.rs b/wow_dbc/src/wrath_tables/sound_entries.rs index 4e75e14..eff0f16 100644 --- a/wow_dbc/src/wrath_tables/sound_entries.rs +++ b/wow_dbc/src/wrath_tables/sound_entries.rs @@ -263,6 +263,20 @@ impl SoundEntriesKey { } +impl From for SoundEntriesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEntriesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundEntriesKey { fn from(v: i32) -> Self { Self::new(v) @@ -270,6 +284,20 @@ impl From for SoundEntriesKey { } +impl From for SoundEntriesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEntriesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundEntriesRow { pub id: SoundEntriesKey, diff --git a/wow_dbc/src/wrath_tables/sound_entries_advanced.rs b/wow_dbc/src/wrath_tables/sound_entries_advanced.rs index f9c3af8..b33efd6 100644 --- a/wow_dbc/src/wrath_tables/sound_entries_advanced.rs +++ b/wow_dbc/src/wrath_tables/sound_entries_advanced.rs @@ -305,6 +305,20 @@ impl SoundEntriesAdvancedKey { } +impl From for SoundEntriesAdvancedKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEntriesAdvancedKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundEntriesAdvancedKey { fn from(v: i32) -> Self { Self::new(v) @@ -312,6 +326,20 @@ impl From for SoundEntriesAdvancedKey { } +impl From for SoundEntriesAdvancedKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundEntriesAdvancedKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundEntriesAdvancedRow { pub id: SoundEntriesAdvancedKey, diff --git a/wow_dbc/src/wrath_tables/sound_filter.rs b/wow_dbc/src/wrath_tables/sound_filter.rs index a450b46..1ce36aa 100644 --- a/wow_dbc/src/wrath_tables/sound_filter.rs +++ b/wow_dbc/src/wrath_tables/sound_filter.rs @@ -150,6 +150,20 @@ impl SoundFilterKey { } +impl From for SoundFilterKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundFilterKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundFilterKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for SoundFilterKey { } +impl From for SoundFilterKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundFilterKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SoundFilterRow { pub id: SoundFilterKey, diff --git a/wow_dbc/src/wrath_tables/sound_filter_elem.rs b/wow_dbc/src/wrath_tables/sound_filter_elem.rs index befad80..2be381e 100644 --- a/wow_dbc/src/wrath_tables/sound_filter_elem.rs +++ b/wow_dbc/src/wrath_tables/sound_filter_elem.rs @@ -141,6 +141,20 @@ impl SoundFilterElemKey { } +impl From for SoundFilterElemKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundFilterElemKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundFilterElemKey { fn from(v: i32) -> Self { Self::new(v) @@ -148,6 +162,20 @@ impl From for SoundFilterElemKey { } +impl From for SoundFilterElemKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundFilterElemKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundFilterElemRow { pub id: SoundFilterElemKey, diff --git a/wow_dbc/src/wrath_tables/sound_provider_preferences.rs b/wow_dbc/src/wrath_tables/sound_provider_preferences.rs index 6a00b31..be11e2e 100644 --- a/wow_dbc/src/wrath_tables/sound_provider_preferences.rs +++ b/wow_dbc/src/wrath_tables/sound_provider_preferences.rs @@ -304,6 +304,20 @@ impl SoundProviderPreferencesKey { } +impl From for SoundProviderPreferencesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundProviderPreferencesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundProviderPreferencesKey { fn from(v: i32) -> Self { Self::new(v) @@ -311,6 +325,20 @@ impl From for SoundProviderPreferencesKey { } +impl From for SoundProviderPreferencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundProviderPreferencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundProviderPreferencesRow { pub id: SoundProviderPreferencesKey, diff --git a/wow_dbc/src/wrath_tables/sound_sample_preferences.rs b/wow_dbc/src/wrath_tables/sound_sample_preferences.rs index 1ad4741..f92f1d4 100644 --- a/wow_dbc/src/wrath_tables/sound_sample_preferences.rs +++ b/wow_dbc/src/wrath_tables/sound_sample_preferences.rs @@ -221,6 +221,20 @@ impl SoundSamplePreferencesKey { } +impl From for SoundSamplePreferencesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundSamplePreferencesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundSamplePreferencesKey { fn from(v: i32) -> Self { Self::new(v) @@ -228,6 +242,20 @@ impl From for SoundSamplePreferencesKey { } +impl From for SoundSamplePreferencesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundSamplePreferencesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SoundSamplePreferencesRow { pub id: SoundSamplePreferencesKey, diff --git a/wow_dbc/src/wrath_tables/sound_water_type.rs b/wow_dbc/src/wrath_tables/sound_water_type.rs index e48cfc0..aa994aa 100644 --- a/wow_dbc/src/wrath_tables/sound_water_type.rs +++ b/wow_dbc/src/wrath_tables/sound_water_type.rs @@ -131,6 +131,20 @@ impl SoundWaterTypeKey { } +impl From for SoundWaterTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundWaterTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SoundWaterTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for SoundWaterTypeKey { } +impl From for SoundWaterTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SoundWaterTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SoundWaterTypeRow { pub id: SoundWaterTypeKey, diff --git a/wow_dbc/src/wrath_tables/spam_messages.rs b/wow_dbc/src/wrath_tables/spam_messages.rs index 157be28..d69cb7f 100644 --- a/wow_dbc/src/wrath_tables/spam_messages.rs +++ b/wow_dbc/src/wrath_tables/spam_messages.rs @@ -150,6 +150,20 @@ impl SpamMessagesKey { } +impl From for SpamMessagesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpamMessagesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpamMessagesKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for SpamMessagesKey { } +impl From for SpamMessagesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpamMessagesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpamMessagesRow { pub id: SpamMessagesKey, diff --git a/wow_dbc/src/wrath_tables/spell.rs b/wow_dbc/src/wrath_tables/spell.rs index 6ef2d0f..81b0597 100644 --- a/wow_dbc/src/wrath_tables/spell.rs +++ b/wow_dbc/src/wrath_tables/spell.rs @@ -972,6 +972,20 @@ impl SpellKey { } +impl From for SpellKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellKey { fn from(v: i32) -> Self { Self::new(v) @@ -979,6 +993,20 @@ impl From for SpellKey { } +impl From for SpellKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellRow { pub id: SpellKey, diff --git a/wow_dbc/src/wrath_tables/spell_cast_times.rs b/wow_dbc/src/wrath_tables/spell_cast_times.rs index 299e6a8..d0f42cf 100644 --- a/wow_dbc/src/wrath_tables/spell_cast_times.rs +++ b/wow_dbc/src/wrath_tables/spell_cast_times.rs @@ -130,6 +130,20 @@ impl SpellCastTimesKey { } +impl From for SpellCastTimesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCastTimesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellCastTimesKey { fn from(v: i32) -> Self { Self::new(v) @@ -137,6 +151,20 @@ impl From for SpellCastTimesKey { } +impl From for SpellCastTimesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCastTimesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellCastTimesRow { pub id: SpellCastTimesKey, diff --git a/wow_dbc/src/wrath_tables/spell_category.rs b/wow_dbc/src/wrath_tables/spell_category.rs index 69ce245..139a9bf 100644 --- a/wow_dbc/src/wrath_tables/spell_category.rs +++ b/wow_dbc/src/wrath_tables/spell_category.rs @@ -116,6 +116,20 @@ impl SpellCategoryKey { } +impl From for SpellCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for SpellCategoryKey { } +impl From for SpellCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellCategoryRow { pub id: SpellCategoryKey, diff --git a/wow_dbc/src/wrath_tables/spell_chain_effects.rs b/wow_dbc/src/wrath_tables/spell_chain_effects.rs index ab898f9..675f74d 100644 --- a/wow_dbc/src/wrath_tables/spell_chain_effects.rs +++ b/wow_dbc/src/wrath_tables/spell_chain_effects.rs @@ -483,6 +483,20 @@ impl SpellChainEffectsKey { } +impl From for SpellChainEffectsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellChainEffectsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellChainEffectsKey { fn from(v: i32) -> Self { Self::new(v) @@ -490,6 +504,20 @@ impl From for SpellChainEffectsKey { } +impl From for SpellChainEffectsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellChainEffectsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellChainEffectsRow { pub id: SpellChainEffectsKey, diff --git a/wow_dbc/src/wrath_tables/spell_description_variables.rs b/wow_dbc/src/wrath_tables/spell_description_variables.rs index 53ffd6c..08bf7cb 100644 --- a/wow_dbc/src/wrath_tables/spell_description_variables.rs +++ b/wow_dbc/src/wrath_tables/spell_description_variables.rs @@ -150,6 +150,20 @@ impl SpellDescriptionVariablesKey { } +impl From for SpellDescriptionVariablesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDescriptionVariablesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDescriptionVariablesKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for SpellDescriptionVariablesKey { } +impl From for SpellDescriptionVariablesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDescriptionVariablesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellDescriptionVariablesRow { pub id: SpellDescriptionVariablesKey, diff --git a/wow_dbc/src/wrath_tables/spell_difficulty.rs b/wow_dbc/src/wrath_tables/spell_difficulty.rs index 493cad2..8eaec4c 100644 --- a/wow_dbc/src/wrath_tables/spell_difficulty.rs +++ b/wow_dbc/src/wrath_tables/spell_difficulty.rs @@ -119,6 +119,20 @@ impl SpellDifficultyKey { } +impl From for SpellDifficultyKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDifficultyKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDifficultyKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for SpellDifficultyKey { } +impl From for SpellDifficultyKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDifficultyKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellDifficultyRow { pub id: SpellDifficultyKey, diff --git a/wow_dbc/src/wrath_tables/spell_dispel_type.rs b/wow_dbc/src/wrath_tables/spell_dispel_type.rs index 5c0e137..50fe35c 100644 --- a/wow_dbc/src/wrath_tables/spell_dispel_type.rs +++ b/wow_dbc/src/wrath_tables/spell_dispel_type.rs @@ -174,6 +174,20 @@ impl SpellDispelTypeKey { } +impl From for SpellDispelTypeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDispelTypeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDispelTypeKey { fn from(v: i32) -> Self { Self::new(v) @@ -181,6 +195,20 @@ impl From for SpellDispelTypeKey { } +impl From for SpellDispelTypeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDispelTypeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellDispelTypeRow { pub id: SpellDispelTypeKey, diff --git a/wow_dbc/src/wrath_tables/spell_duration.rs b/wow_dbc/src/wrath_tables/spell_duration.rs index 2f4350b..8fa250d 100644 --- a/wow_dbc/src/wrath_tables/spell_duration.rs +++ b/wow_dbc/src/wrath_tables/spell_duration.rs @@ -130,6 +130,20 @@ impl SpellDurationKey { } +impl From for SpellDurationKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDurationKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellDurationKey { fn from(v: i32) -> Self { Self::new(v) @@ -137,6 +151,20 @@ impl From for SpellDurationKey { } +impl From for SpellDurationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellDurationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellDurationRow { pub id: SpellDurationKey, diff --git a/wow_dbc/src/wrath_tables/spell_effect_camera_shakes.rs b/wow_dbc/src/wrath_tables/spell_effect_camera_shakes.rs index 7a09b57..0c5a634 100644 --- a/wow_dbc/src/wrath_tables/spell_effect_camera_shakes.rs +++ b/wow_dbc/src/wrath_tables/spell_effect_camera_shakes.rs @@ -119,6 +119,20 @@ impl SpellEffectCameraShakesKey { } +impl From for SpellEffectCameraShakesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellEffectCameraShakesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellEffectCameraShakesKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for SpellEffectCameraShakesKey { } +impl From for SpellEffectCameraShakesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellEffectCameraShakesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellEffectCameraShakesRow { pub id: SpellEffectCameraShakesKey, diff --git a/wow_dbc/src/wrath_tables/spell_focus_object.rs b/wow_dbc/src/wrath_tables/spell_focus_object.rs index 990b245..f66aa81 100644 --- a/wow_dbc/src/wrath_tables/spell_focus_object.rs +++ b/wow_dbc/src/wrath_tables/spell_focus_object.rs @@ -142,6 +142,20 @@ impl SpellFocusObjectKey { } +impl From for SpellFocusObjectKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellFocusObjectKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellFocusObjectKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for SpellFocusObjectKey { } +impl From for SpellFocusObjectKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellFocusObjectKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellFocusObjectRow { pub id: SpellFocusObjectKey, diff --git a/wow_dbc/src/wrath_tables/spell_icon.rs b/wow_dbc/src/wrath_tables/spell_icon.rs index c2cf6cd..cd401f8 100644 --- a/wow_dbc/src/wrath_tables/spell_icon.rs +++ b/wow_dbc/src/wrath_tables/spell_icon.rs @@ -150,6 +150,20 @@ impl SpellIconKey { } +impl From for SpellIconKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellIconKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellIconKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for SpellIconKey { } +impl From for SpellIconKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellIconKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellIconRow { pub id: SpellIconKey, diff --git a/wow_dbc/src/wrath_tables/spell_item_enchantment.rs b/wow_dbc/src/wrath_tables/spell_item_enchantment.rs index 010b6ff..2bee5d3 100644 --- a/wow_dbc/src/wrath_tables/spell_item_enchantment.rs +++ b/wow_dbc/src/wrath_tables/spell_item_enchantment.rs @@ -241,6 +241,20 @@ impl SpellItemEnchantmentKey { } +impl From for SpellItemEnchantmentKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellItemEnchantmentKey { fn from(v: i32) -> Self { Self::new(v) @@ -248,6 +262,20 @@ impl From for SpellItemEnchantmentKey { } +impl From for SpellItemEnchantmentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellItemEnchantmentRow { pub id: SpellItemEnchantmentKey, diff --git a/wow_dbc/src/wrath_tables/spell_item_enchantment_condition.rs b/wow_dbc/src/wrath_tables/spell_item_enchantment_condition.rs index 9c1c9e8..2f46575 100644 --- a/wow_dbc/src/wrath_tables/spell_item_enchantment_condition.rs +++ b/wow_dbc/src/wrath_tables/spell_item_enchantment_condition.rs @@ -197,6 +197,20 @@ impl SpellItemEnchantmentConditionKey { } +impl From for SpellItemEnchantmentConditionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentConditionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellItemEnchantmentConditionKey { fn from(v: i32) -> Self { Self::new(v) @@ -204,6 +218,20 @@ impl From for SpellItemEnchantmentConditionKey { } +impl From for SpellItemEnchantmentConditionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellItemEnchantmentConditionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellItemEnchantmentConditionRow { pub id: SpellItemEnchantmentConditionKey, diff --git a/wow_dbc/src/wrath_tables/spell_mechanic.rs b/wow_dbc/src/wrath_tables/spell_mechanic.rs index ef953f2..9ce26f8 100644 --- a/wow_dbc/src/wrath_tables/spell_mechanic.rs +++ b/wow_dbc/src/wrath_tables/spell_mechanic.rs @@ -142,6 +142,20 @@ impl SpellMechanicKey { } +impl From for SpellMechanicKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMechanicKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellMechanicKey { fn from(v: i32) -> Self { Self::new(v) @@ -149,6 +163,20 @@ impl From for SpellMechanicKey { } +impl From for SpellMechanicKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMechanicKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellMechanicRow { pub id: SpellMechanicKey, diff --git a/wow_dbc/src/wrath_tables/spell_missile.rs b/wow_dbc/src/wrath_tables/spell_missile.rs index 2d4c54e..97a779f 100644 --- a/wow_dbc/src/wrath_tables/spell_missile.rs +++ b/wow_dbc/src/wrath_tables/spell_missile.rs @@ -207,6 +207,20 @@ impl SpellMissileKey { } +impl From for SpellMissileKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMissileKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellMissileKey { fn from(v: i32) -> Self { Self::new(v) @@ -214,6 +228,20 @@ impl From for SpellMissileKey { } +impl From for SpellMissileKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMissileKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellMissileRow { pub id: SpellMissileKey, diff --git a/wow_dbc/src/wrath_tables/spell_missile_motion.rs b/wow_dbc/src/wrath_tables/spell_missile_motion.rs index f368db2..283547f 100644 --- a/wow_dbc/src/wrath_tables/spell_missile_motion.rs +++ b/wow_dbc/src/wrath_tables/spell_missile_motion.rs @@ -182,6 +182,20 @@ impl SpellMissileMotionKey { } +impl From for SpellMissileMotionKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMissileMotionKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellMissileMotionKey { fn from(v: i32) -> Self { Self::new(v) @@ -189,6 +203,20 @@ impl From for SpellMissileMotionKey { } +impl From for SpellMissileMotionKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellMissileMotionKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellMissileMotionRow { pub id: SpellMissileMotionKey, diff --git a/wow_dbc/src/wrath_tables/spell_radius.rs b/wow_dbc/src/wrath_tables/spell_radius.rs index f96fce3..06eb61b 100644 --- a/wow_dbc/src/wrath_tables/spell_radius.rs +++ b/wow_dbc/src/wrath_tables/spell_radius.rs @@ -130,6 +130,20 @@ impl SpellRadiusKey { } +impl From for SpellRadiusKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRadiusKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellRadiusKey { fn from(v: i32) -> Self { Self::new(v) @@ -137,6 +151,20 @@ impl From for SpellRadiusKey { } +impl From for SpellRadiusKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRadiusKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellRadiusRow { pub id: SpellRadiusKey, diff --git a/wow_dbc/src/wrath_tables/spell_range.rs b/wow_dbc/src/wrath_tables/spell_range.rs index a665267..e5e9463 100644 --- a/wow_dbc/src/wrath_tables/spell_range.rs +++ b/wow_dbc/src/wrath_tables/spell_range.rs @@ -178,6 +178,20 @@ impl SpellRangeKey { } +impl From for SpellRangeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRangeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellRangeKey { fn from(v: i32) -> Self { Self::new(v) @@ -185,6 +199,20 @@ impl From for SpellRangeKey { } +impl From for SpellRangeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRangeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellRangeRow { pub id: SpellRangeKey, diff --git a/wow_dbc/src/wrath_tables/spell_rune_cost.rs b/wow_dbc/src/wrath_tables/spell_rune_cost.rs index 830c77e..832a37c 100644 --- a/wow_dbc/src/wrath_tables/spell_rune_cost.rs +++ b/wow_dbc/src/wrath_tables/spell_rune_cost.rs @@ -137,6 +137,20 @@ impl SpellRuneCostKey { } +impl From for SpellRuneCostKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRuneCostKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellRuneCostKey { fn from(v: i32) -> Self { Self::new(v) @@ -144,6 +158,20 @@ impl From for SpellRuneCostKey { } +impl From for SpellRuneCostKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellRuneCostKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellRuneCostRow { pub id: SpellRuneCostKey, diff --git a/wow_dbc/src/wrath_tables/spell_shapeshift_form.rs b/wow_dbc/src/wrath_tables/spell_shapeshift_form.rs index b3e0a2f..cb27671 100644 --- a/wow_dbc/src/wrath_tables/spell_shapeshift_form.rs +++ b/wow_dbc/src/wrath_tables/spell_shapeshift_form.rs @@ -199,6 +199,20 @@ impl SpellShapeshiftFormKey { } +impl From for SpellShapeshiftFormKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellShapeshiftFormKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellShapeshiftFormKey { fn from(v: i32) -> Self { Self::new(v) @@ -206,6 +220,20 @@ impl From for SpellShapeshiftFormKey { } +impl From for SpellShapeshiftFormKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellShapeshiftFormKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellShapeshiftFormRow { pub id: SpellShapeshiftFormKey, diff --git a/wow_dbc/src/wrath_tables/spell_visual.rs b/wow_dbc/src/wrath_tables/spell_visual.rs index f659aea..e506a37 100644 --- a/wow_dbc/src/wrath_tables/spell_visual.rs +++ b/wow_dbc/src/wrath_tables/spell_visual.rs @@ -306,6 +306,20 @@ impl SpellVisualKey { } +impl From for SpellVisualKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKey { fn from(v: i32) -> Self { Self::new(v) @@ -313,6 +327,20 @@ impl From for SpellVisualKey { } +impl From for SpellVisualKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellVisualRow { pub id: SpellVisualKey, diff --git a/wow_dbc/src/wrath_tables/spell_visual_effect_name.rs b/wow_dbc/src/wrath_tables/spell_visual_effect_name.rs index 05a223b..ed71ef7 100644 --- a/wow_dbc/src/wrath_tables/spell_visual_effect_name.rs +++ b/wow_dbc/src/wrath_tables/spell_visual_effect_name.rs @@ -196,6 +196,20 @@ impl SpellVisualEffectNameKey { } +impl From for SpellVisualEffectNameKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualEffectNameKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualEffectNameKey { fn from(v: i32) -> Self { Self::new(v) @@ -203,6 +217,20 @@ impl From for SpellVisualEffectNameKey { } +impl From for SpellVisualEffectNameKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualEffectNameKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellVisualEffectNameRow { pub id: SpellVisualEffectNameKey, diff --git a/wow_dbc/src/wrath_tables/spell_visual_kit.rs b/wow_dbc/src/wrath_tables/spell_visual_kit.rs index 30acc8d..7dbf24b 100644 --- a/wow_dbc/src/wrath_tables/spell_visual_kit.rs +++ b/wow_dbc/src/wrath_tables/spell_visual_kit.rs @@ -270,6 +270,20 @@ impl SpellVisualKitKey { } +impl From for SpellVisualKitKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKitKey { fn from(v: i32) -> Self { Self::new(v) @@ -277,6 +291,20 @@ impl From for SpellVisualKitKey { } +impl From for SpellVisualKitKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellVisualKitRow { pub id: SpellVisualKitKey, diff --git a/wow_dbc/src/wrath_tables/spell_visual_kit_area_model.rs b/wow_dbc/src/wrath_tables/spell_visual_kit_area_model.rs index 4475c7b..777db96 100644 --- a/wow_dbc/src/wrath_tables/spell_visual_kit_area_model.rs +++ b/wow_dbc/src/wrath_tables/spell_visual_kit_area_model.rs @@ -157,6 +157,20 @@ impl SpellVisualKitAreaModelKey { } +impl From for SpellVisualKitAreaModelKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitAreaModelKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKitAreaModelKey { fn from(v: i32) -> Self { Self::new(v) @@ -164,6 +178,20 @@ impl From for SpellVisualKitAreaModelKey { } +impl From for SpellVisualKitAreaModelKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitAreaModelKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellVisualKitAreaModelRow { pub id: SpellVisualKitAreaModelKey, diff --git a/wow_dbc/src/wrath_tables/spell_visual_kit_model_attach.rs b/wow_dbc/src/wrath_tables/spell_visual_kit_model_attach.rs index e5e00b8..288d817 100644 --- a/wow_dbc/src/wrath_tables/spell_visual_kit_model_attach.rs +++ b/wow_dbc/src/wrath_tables/spell_visual_kit_model_attach.rs @@ -163,6 +163,20 @@ impl SpellVisualKitModelAttachKey { } +impl From for SpellVisualKitModelAttachKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitModelAttachKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualKitModelAttachKey { fn from(v: i32) -> Self { Self::new(v) @@ -170,6 +184,20 @@ impl From for SpellVisualKitModelAttachKey { } +impl From for SpellVisualKitModelAttachKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualKitModelAttachKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct SpellVisualKitModelAttachRow { pub id: SpellVisualKitModelAttachKey, diff --git a/wow_dbc/src/wrath_tables/spell_visual_precast_transitions.rs b/wow_dbc/src/wrath_tables/spell_visual_precast_transitions.rs index 02f9fcb..83326f0 100644 --- a/wow_dbc/src/wrath_tables/spell_visual_precast_transitions.rs +++ b/wow_dbc/src/wrath_tables/spell_visual_precast_transitions.rs @@ -168,6 +168,20 @@ impl SpellVisualPrecastTransitionsKey { } +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SpellVisualPrecastTransitionsKey { fn from(v: i32) -> Self { Self::new(v) @@ -175,6 +189,20 @@ impl From for SpellVisualPrecastTransitionsKey { } +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SpellVisualPrecastTransitionsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SpellVisualPrecastTransitionsRow { pub id: SpellVisualPrecastTransitionsKey, diff --git a/wow_dbc/src/wrath_tables/stable_slot_prices.rs b/wow_dbc/src/wrath_tables/stable_slot_prices.rs index 48b15ba..ef96351 100644 --- a/wow_dbc/src/wrath_tables/stable_slot_prices.rs +++ b/wow_dbc/src/wrath_tables/stable_slot_prices.rs @@ -116,6 +116,20 @@ impl StableSlotPricesKey { } +impl From for StableSlotPricesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StableSlotPricesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for StableSlotPricesKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for StableSlotPricesKey { } +impl From for StableSlotPricesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StableSlotPricesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct StableSlotPricesRow { pub id: StableSlotPricesKey, diff --git a/wow_dbc/src/wrath_tables/startup_strings.rs b/wow_dbc/src/wrath_tables/startup_strings.rs index 199ffe3..fede3d6 100644 --- a/wow_dbc/src/wrath_tables/startup_strings.rs +++ b/wow_dbc/src/wrath_tables/startup_strings.rs @@ -162,6 +162,20 @@ impl Startup_StringsKey { } +impl From for Startup_StringsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Startup_StringsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for Startup_StringsKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for Startup_StringsKey { } +impl From for Startup_StringsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for Startup_StringsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Startup_StringsRow { diff --git a/wow_dbc/src/wrath_tables/stationery.rs b/wow_dbc/src/wrath_tables/stationery.rs index c9d7f98..57f78f5 100644 --- a/wow_dbc/src/wrath_tables/stationery.rs +++ b/wow_dbc/src/wrath_tables/stationery.rs @@ -165,6 +165,20 @@ impl StationeryKey { } +impl From for StationeryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StationeryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for StationeryKey { fn from(v: i32) -> Self { Self::new(v) @@ -172,6 +186,20 @@ impl From for StationeryKey { } +impl From for StationeryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StationeryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct StationeryRow { pub id: StationeryKey, diff --git a/wow_dbc/src/wrath_tables/string_lookups.rs b/wow_dbc/src/wrath_tables/string_lookups.rs index bc3c7aa..bd6bb0a 100644 --- a/wow_dbc/src/wrath_tables/string_lookups.rs +++ b/wow_dbc/src/wrath_tables/string_lookups.rs @@ -150,6 +150,20 @@ impl StringLookupsKey { } +impl From for StringLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StringLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for StringLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for StringLookupsKey { } +impl From for StringLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for StringLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct StringLookupsRow { pub id: StringLookupsKey, diff --git a/wow_dbc/src/wrath_tables/summon_properties.rs b/wow_dbc/src/wrath_tables/summon_properties.rs index 8950eca..f546a96 100644 --- a/wow_dbc/src/wrath_tables/summon_properties.rs +++ b/wow_dbc/src/wrath_tables/summon_properties.rs @@ -145,6 +145,20 @@ impl SummonPropertiesKey { } +impl From for SummonPropertiesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SummonPropertiesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for SummonPropertiesKey { fn from(v: i32) -> Self { Self::new(v) @@ -152,6 +166,20 @@ impl From for SummonPropertiesKey { } +impl From for SummonPropertiesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for SummonPropertiesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct SummonPropertiesRow { pub id: SummonPropertiesKey, diff --git a/wow_dbc/src/wrath_tables/talent.rs b/wow_dbc/src/wrath_tables/talent.rs index e7df968..cea79bf 100644 --- a/wow_dbc/src/wrath_tables/talent.rs +++ b/wow_dbc/src/wrath_tables/talent.rs @@ -185,6 +185,20 @@ impl TalentKey { } +impl From for TalentKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TalentKey { fn from(v: i32) -> Self { Self::new(v) @@ -192,6 +206,20 @@ impl From for TalentKey { } +impl From for TalentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TalentRow { pub id: TalentKey, diff --git a/wow_dbc/src/wrath_tables/talent_tab.rs b/wow_dbc/src/wrath_tables/talent_tab.rs index f246fe6..f78ef21 100644 --- a/wow_dbc/src/wrath_tables/talent_tab.rs +++ b/wow_dbc/src/wrath_tables/talent_tab.rs @@ -196,6 +196,20 @@ impl TalentTabKey { } +impl From for TalentTabKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentTabKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TalentTabKey { fn from(v: i32) -> Self { Self::new(v) @@ -203,6 +217,20 @@ impl From for TalentTabKey { } +impl From for TalentTabKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TalentTabKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TalentTabRow { pub id: TalentTabKey, diff --git a/wow_dbc/src/wrath_tables/taxi_nodes.rs b/wow_dbc/src/wrath_tables/taxi_nodes.rs index 6db4fc6..0289609 100644 --- a/wow_dbc/src/wrath_tables/taxi_nodes.rs +++ b/wow_dbc/src/wrath_tables/taxi_nodes.rs @@ -170,6 +170,20 @@ impl TaxiNodesKey { } +impl From for TaxiNodesKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiNodesKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiNodesKey { fn from(v: i32) -> Self { Self::new(v) @@ -177,6 +191,20 @@ impl From for TaxiNodesKey { } +impl From for TaxiNodesKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiNodesKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TaxiNodesRow { pub id: TaxiNodesKey, diff --git a/wow_dbc/src/wrath_tables/taxi_path.rs b/wow_dbc/src/wrath_tables/taxi_path.rs index 2d587da..e71e6e7 100644 --- a/wow_dbc/src/wrath_tables/taxi_path.rs +++ b/wow_dbc/src/wrath_tables/taxi_path.rs @@ -131,6 +131,20 @@ impl TaxiPathKey { } +impl From for TaxiPathKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiPathKey { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for TaxiPathKey { } +impl From for TaxiPathKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TaxiPathRow { pub id: TaxiPathKey, diff --git a/wow_dbc/src/wrath_tables/taxi_path_node.rs b/wow_dbc/src/wrath_tables/taxi_path_node.rs index c929b9d..a6a5d09 100644 --- a/wow_dbc/src/wrath_tables/taxi_path_node.rs +++ b/wow_dbc/src/wrath_tables/taxi_path_node.rs @@ -170,6 +170,20 @@ impl TaxiPathNodeKey { } +impl From for TaxiPathNodeKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathNodeKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TaxiPathNodeKey { fn from(v: i32) -> Self { Self::new(v) @@ -177,6 +191,20 @@ impl From for TaxiPathNodeKey { } +impl From for TaxiPathNodeKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TaxiPathNodeKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TaxiPathNodeRow { pub id: TaxiPathNodeKey, diff --git a/wow_dbc/src/wrath_tables/team_contribution_points.rs b/wow_dbc/src/wrath_tables/team_contribution_points.rs index 036fbab..e29195d 100644 --- a/wow_dbc/src/wrath_tables/team_contribution_points.rs +++ b/wow_dbc/src/wrath_tables/team_contribution_points.rs @@ -116,6 +116,20 @@ impl TeamContributionPointsKey { } +impl From for TeamContributionPointsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TeamContributionPointsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TeamContributionPointsKey { fn from(v: i32) -> Self { Self::new(v) @@ -123,6 +137,20 @@ impl From for TeamContributionPointsKey { } +impl From for TeamContributionPointsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TeamContributionPointsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TeamContributionPointsRow { pub id: TeamContributionPointsKey, diff --git a/wow_dbc/src/wrath_tables/terrain_type_sounds.rs b/wow_dbc/src/wrath_tables/terrain_type_sounds.rs index b5e9789..9a73603 100644 --- a/wow_dbc/src/wrath_tables/terrain_type_sounds.rs +++ b/wow_dbc/src/wrath_tables/terrain_type_sounds.rs @@ -109,6 +109,20 @@ impl TerrainTypeSoundsKey { } +impl From for TerrainTypeSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TerrainTypeSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TerrainTypeSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -116,6 +130,20 @@ impl From for TerrainTypeSoundsKey { } +impl From for TerrainTypeSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TerrainTypeSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TerrainTypeSoundsRow { pub id: TerrainTypeSoundsKey, diff --git a/wow_dbc/src/wrath_tables/totem_category.rs b/wow_dbc/src/wrath_tables/totem_category.rs index 88f9829..4e49cd9 100644 --- a/wow_dbc/src/wrath_tables/totem_category.rs +++ b/wow_dbc/src/wrath_tables/totem_category.rs @@ -156,6 +156,20 @@ impl TotemCategoryKey { } +impl From for TotemCategoryKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TotemCategoryKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TotemCategoryKey { fn from(v: i32) -> Self { Self::new(v) @@ -163,6 +177,20 @@ impl From for TotemCategoryKey { } +impl From for TotemCategoryKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TotemCategoryKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TotemCategoryRow { pub id: TotemCategoryKey, diff --git a/wow_dbc/src/wrath_tables/transport_animation.rs b/wow_dbc/src/wrath_tables/transport_animation.rs index b43b1f8..fa27060 100644 --- a/wow_dbc/src/wrath_tables/transport_animation.rs +++ b/wow_dbc/src/wrath_tables/transport_animation.rs @@ -140,6 +140,20 @@ impl TransportAnimationKey { } +impl From for TransportAnimationKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportAnimationKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TransportAnimationKey { fn from(v: i32) -> Self { Self::new(v) @@ -147,6 +161,20 @@ impl From for TransportAnimationKey { } +impl From for TransportAnimationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportAnimationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TransportAnimationRow { pub id: TransportAnimationKey, diff --git a/wow_dbc/src/wrath_tables/transport_physics.rs b/wow_dbc/src/wrath_tables/transport_physics.rs index 2e91542..7f127cc 100644 --- a/wow_dbc/src/wrath_tables/transport_physics.rs +++ b/wow_dbc/src/wrath_tables/transport_physics.rs @@ -179,6 +179,20 @@ impl TransportPhysicsKey { } +impl From for TransportPhysicsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportPhysicsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TransportPhysicsKey { fn from(v: i32) -> Self { Self::new(v) @@ -186,6 +200,20 @@ impl From for TransportPhysicsKey { } +impl From for TransportPhysicsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportPhysicsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TransportPhysicsRow { pub id: TransportPhysicsKey, diff --git a/wow_dbc/src/wrath_tables/transport_rotation.rs b/wow_dbc/src/wrath_tables/transport_rotation.rs index 53ccbe6..8662a24 100644 --- a/wow_dbc/src/wrath_tables/transport_rotation.rs +++ b/wow_dbc/src/wrath_tables/transport_rotation.rs @@ -133,6 +133,20 @@ impl TransportRotationKey { } +impl From for TransportRotationKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportRotationKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for TransportRotationKey { fn from(v: i32) -> Self { Self::new(v) @@ -140,6 +154,20 @@ impl From for TransportRotationKey { } +impl From for TransportRotationKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for TransportRotationKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct TransportRotationRow { pub id: TransportRotationKey, diff --git a/wow_dbc/src/wrath_tables/ui_sound_lookups.rs b/wow_dbc/src/wrath_tables/ui_sound_lookups.rs index f700062..1dbe30b 100644 --- a/wow_dbc/src/wrath_tables/ui_sound_lookups.rs +++ b/wow_dbc/src/wrath_tables/ui_sound_lookups.rs @@ -158,6 +158,20 @@ impl UISoundLookupsKey { } +impl From for UISoundLookupsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UISoundLookupsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for UISoundLookupsKey { fn from(v: i32) -> Self { Self::new(v) @@ -165,6 +179,20 @@ impl From for UISoundLookupsKey { } +impl From for UISoundLookupsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UISoundLookupsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct UISoundLookupsRow { pub id: UISoundLookupsKey, diff --git a/wow_dbc/src/wrath_tables/unit_blood.rs b/wow_dbc/src/wrath_tables/unit_blood.rs index 622d5df..4a65c77 100644 --- a/wow_dbc/src/wrath_tables/unit_blood.rs +++ b/wow_dbc/src/wrath_tables/unit_blood.rs @@ -187,6 +187,20 @@ impl UnitBloodKey { } +impl From for UnitBloodKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for UnitBloodKey { fn from(v: i32) -> Self { Self::new(v) @@ -194,6 +208,20 @@ impl From for UnitBloodKey { } +impl From for UnitBloodKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct UnitBloodRow { pub id: UnitBloodKey, diff --git a/wow_dbc/src/wrath_tables/unit_blood_levels.rs b/wow_dbc/src/wrath_tables/unit_blood_levels.rs index f0e546f..7dfab70 100644 --- a/wow_dbc/src/wrath_tables/unit_blood_levels.rs +++ b/wow_dbc/src/wrath_tables/unit_blood_levels.rs @@ -119,6 +119,20 @@ impl UnitBloodLevelsKey { } +impl From for UnitBloodLevelsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodLevelsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for UnitBloodLevelsKey { fn from(v: i32) -> Self { Self::new(v) @@ -126,6 +140,20 @@ impl From for UnitBloodLevelsKey { } +impl From for UnitBloodLevelsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for UnitBloodLevelsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct UnitBloodLevelsRow { pub id: UnitBloodLevelsKey, diff --git a/wow_dbc/src/wrath_tables/vehicle.rs b/wow_dbc/src/wrath_tables/vehicle.rs index 428997a..3e00315 100644 --- a/wow_dbc/src/wrath_tables/vehicle.rs +++ b/wow_dbc/src/wrath_tables/vehicle.rs @@ -388,6 +388,20 @@ impl VehicleKey { } +impl From for VehicleKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VehicleKey { fn from(v: i32) -> Self { Self::new(v) @@ -395,6 +409,20 @@ impl From for VehicleKey { } +impl From for VehicleKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct VehicleRow { pub id: VehicleKey, diff --git a/wow_dbc/src/wrath_tables/vehicle_seat.rs b/wow_dbc/src/wrath_tables/vehicle_seat.rs index ee424a7..e588694 100644 --- a/wow_dbc/src/wrath_tables/vehicle_seat.rs +++ b/wow_dbc/src/wrath_tables/vehicle_seat.rs @@ -498,6 +498,20 @@ impl VehicleSeatKey { } +impl From for VehicleSeatKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleSeatKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VehicleSeatKey { fn from(v: i32) -> Self { Self::new(v) @@ -505,6 +519,20 @@ impl From for VehicleSeatKey { } +impl From for VehicleSeatKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleSeatKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct VehicleSeatRow { pub id: VehicleSeatKey, diff --git a/wow_dbc/src/wrath_tables/vehicle_ui_ind_seat.rs b/wow_dbc/src/wrath_tables/vehicle_ui_ind_seat.rs index 795f20e..a05f382 100644 --- a/wow_dbc/src/wrath_tables/vehicle_ui_ind_seat.rs +++ b/wow_dbc/src/wrath_tables/vehicle_ui_ind_seat.rs @@ -138,6 +138,20 @@ impl VehicleUIIndSeatKey { } +impl From for VehicleUIIndSeatKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleUIIndSeatKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VehicleUIIndSeatKey { fn from(v: i32) -> Self { Self::new(v) @@ -145,6 +159,20 @@ impl From for VehicleUIIndSeatKey { } +impl From for VehicleUIIndSeatKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleUIIndSeatKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct VehicleUIIndSeatRow { pub id: VehicleUIIndSeatKey, diff --git a/wow_dbc/src/wrath_tables/vehicle_ui_indicator.rs b/wow_dbc/src/wrath_tables/vehicle_ui_indicator.rs index bb5407b..22caefe 100644 --- a/wow_dbc/src/wrath_tables/vehicle_ui_indicator.rs +++ b/wow_dbc/src/wrath_tables/vehicle_ui_indicator.rs @@ -150,6 +150,20 @@ impl VehicleUIIndicatorKey { } +impl From for VehicleUIIndicatorKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleUIIndicatorKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VehicleUIIndicatorKey { fn from(v: i32) -> Self { Self::new(v) @@ -157,6 +171,20 @@ impl From for VehicleUIIndicatorKey { } +impl From for VehicleUIIndicatorKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VehicleUIIndicatorKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct VehicleUIIndicatorRow { pub id: VehicleUIIndicatorKey, diff --git a/wow_dbc/src/wrath_tables/video_hardware.rs b/wow_dbc/src/wrath_tables/video_hardware.rs index cb5044c..fa7e3f1 100644 --- a/wow_dbc/src/wrath_tables/video_hardware.rs +++ b/wow_dbc/src/wrath_tables/video_hardware.rs @@ -308,6 +308,20 @@ impl VideoHardwareKey { } +impl From for VideoHardwareKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VideoHardwareKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VideoHardwareKey { fn from(v: i32) -> Self { Self::new(v) @@ -315,6 +329,20 @@ impl From for VideoHardwareKey { } +impl From for VideoHardwareKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VideoHardwareKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct VideoHardwareRow { pub id: VideoHardwareKey, diff --git a/wow_dbc/src/wrath_tables/vocal_ui_sounds.rs b/wow_dbc/src/wrath_tables/vocal_ui_sounds.rs index 63d6143..b5747ae 100644 --- a/wow_dbc/src/wrath_tables/vocal_ui_sounds.rs +++ b/wow_dbc/src/wrath_tables/vocal_ui_sounds.rs @@ -144,6 +144,20 @@ impl VocalUISoundsKey { } +impl From for VocalUISoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VocalUISoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for VocalUISoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -151,6 +165,20 @@ impl From for VocalUISoundsKey { } +impl From for VocalUISoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for VocalUISoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct VocalUISoundsRow { pub id: VocalUISoundsKey, diff --git a/wow_dbc/src/wrath_tables/weapon_impact_sounds.rs b/wow_dbc/src/wrath_tables/weapon_impact_sounds.rs index c70e05d..9f29567 100644 --- a/wow_dbc/src/wrath_tables/weapon_impact_sounds.rs +++ b/wow_dbc/src/wrath_tables/weapon_impact_sounds.rs @@ -143,6 +143,20 @@ impl WeaponImpactSoundsKey { } +impl From for WeaponImpactSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponImpactSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeaponImpactSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -150,6 +164,20 @@ impl From for WeaponImpactSoundsKey { } +impl From for WeaponImpactSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponImpactSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WeaponImpactSoundsRow { pub id: WeaponImpactSoundsKey, diff --git a/wow_dbc/src/wrath_tables/weapon_swing_sounds2.rs b/wow_dbc/src/wrath_tables/weapon_swing_sounds2.rs index 95ba9f4..11b41ac 100644 --- a/wow_dbc/src/wrath_tables/weapon_swing_sounds2.rs +++ b/wow_dbc/src/wrath_tables/weapon_swing_sounds2.rs @@ -131,6 +131,20 @@ impl WeaponSwingSounds2Key { } +impl From for WeaponSwingSounds2Key { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponSwingSounds2Key { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeaponSwingSounds2Key { fn from(v: i32) -> Self { Self::new(v) @@ -138,6 +152,20 @@ impl From for WeaponSwingSounds2Key { } +impl From for WeaponSwingSounds2Key { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeaponSwingSounds2Key { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WeaponSwingSounds2Row { pub id: WeaponSwingSounds2Key, diff --git a/wow_dbc/src/wrath_tables/weather.rs b/wow_dbc/src/wrath_tables/weather.rs index 1b6a874..90b50c4 100644 --- a/wow_dbc/src/wrath_tables/weather.rs +++ b/wow_dbc/src/wrath_tables/weather.rs @@ -182,6 +182,20 @@ impl WeatherKey { } +impl From for WeatherKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeatherKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WeatherKey { fn from(v: i32) -> Self { Self::new(v) @@ -189,6 +203,20 @@ impl From for WeatherKey { } +impl From for WeatherKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WeatherKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WeatherRow { pub id: WeatherKey, diff --git a/wow_dbc/src/wrath_tables/wmo_area_table.rs b/wow_dbc/src/wrath_tables/wmo_area_table.rs index 33fd7e3..d017c6c 100644 --- a/wow_dbc/src/wrath_tables/wmo_area_table.rs +++ b/wow_dbc/src/wrath_tables/wmo_area_table.rs @@ -217,6 +217,20 @@ impl WMOAreaTableKey { } +impl From for WMOAreaTableKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WMOAreaTableKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WMOAreaTableKey { fn from(v: i32) -> Self { Self::new(v) @@ -224,6 +238,20 @@ impl From for WMOAreaTableKey { } +impl From for WMOAreaTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WMOAreaTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WMOAreaTableRow { pub id: WMOAreaTableKey, diff --git a/wow_dbc/src/wrath_tables/world_chunk_sounds.rs b/wow_dbc/src/wrath_tables/world_chunk_sounds.rs index abfd25d..0b6562d 100644 --- a/wow_dbc/src/wrath_tables/world_chunk_sounds.rs +++ b/wow_dbc/src/wrath_tables/world_chunk_sounds.rs @@ -168,6 +168,20 @@ impl WorldChunkSoundsKey { } +impl From for WorldChunkSoundsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldChunkSoundsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldChunkSoundsKey { fn from(v: i32) -> Self { Self::new(v) @@ -175,6 +189,20 @@ impl From for WorldChunkSoundsKey { } +impl From for WorldChunkSoundsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldChunkSoundsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WorldChunkSoundsRow { pub id: WorldChunkSoundsKey, diff --git a/wow_dbc/src/wrath_tables/world_map_area.rs b/wow_dbc/src/wrath_tables/world_map_area.rs index 9263f9b..48cb323 100644 --- a/wow_dbc/src/wrath_tables/world_map_area.rs +++ b/wow_dbc/src/wrath_tables/world_map_area.rs @@ -215,6 +215,20 @@ impl WorldMapAreaKey { } +impl From for WorldMapAreaKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapAreaKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapAreaKey { fn from(v: i32) -> Self { Self::new(v) @@ -222,6 +236,20 @@ impl From for WorldMapAreaKey { } +impl From for WorldMapAreaKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapAreaKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldMapAreaRow { pub id: WorldMapAreaKey, diff --git a/wow_dbc/src/wrath_tables/world_map_continent.rs b/wow_dbc/src/wrath_tables/world_map_continent.rs index 601ce29..efd3709 100644 --- a/wow_dbc/src/wrath_tables/world_map_continent.rs +++ b/wow_dbc/src/wrath_tables/world_map_continent.rs @@ -190,6 +190,20 @@ impl WorldMapContinentKey { } +impl From for WorldMapContinentKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapContinentKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapContinentKey { fn from(v: i32) -> Self { Self::new(v) @@ -197,6 +211,20 @@ impl From for WorldMapContinentKey { } +impl From for WorldMapContinentKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapContinentKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldMapContinentRow { pub id: WorldMapContinentKey, diff --git a/wow_dbc/src/wrath_tables/world_map_overlay.rs b/wow_dbc/src/wrath_tables/world_map_overlay.rs index 5d73056..a96f48a 100644 --- a/wow_dbc/src/wrath_tables/world_map_overlay.rs +++ b/wow_dbc/src/wrath_tables/world_map_overlay.rs @@ -238,6 +238,20 @@ impl WorldMapOverlayKey { } +impl From for WorldMapOverlayKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapOverlayKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapOverlayKey { fn from(v: i32) -> Self { Self::new(v) @@ -245,6 +259,20 @@ impl From for WorldMapOverlayKey { } +impl From for WorldMapOverlayKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapOverlayKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WorldMapOverlayRow { pub id: WorldMapOverlayKey, diff --git a/wow_dbc/src/wrath_tables/world_map_transforms.rs b/wow_dbc/src/wrath_tables/world_map_transforms.rs index 599f270..f5815b0 100644 --- a/wow_dbc/src/wrath_tables/world_map_transforms.rs +++ b/wow_dbc/src/wrath_tables/world_map_transforms.rs @@ -162,6 +162,20 @@ impl WorldMapTransformsKey { } +impl From for WorldMapTransformsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapTransformsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldMapTransformsKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for WorldMapTransformsKey { } +impl From for WorldMapTransformsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldMapTransformsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldMapTransformsRow { pub id: WorldMapTransformsKey, diff --git a/wow_dbc/src/wrath_tables/world_safe_locs.rs b/wow_dbc/src/wrath_tables/world_safe_locs.rs index 249c9d7..130de03 100644 --- a/wow_dbc/src/wrath_tables/world_safe_locs.rs +++ b/wow_dbc/src/wrath_tables/world_safe_locs.rs @@ -160,6 +160,20 @@ impl WorldSafeLocsKey { } +impl From for WorldSafeLocsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldSafeLocsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldSafeLocsKey { fn from(v: i32) -> Self { Self::new(v) @@ -167,6 +181,20 @@ impl From for WorldSafeLocsKey { } +impl From for WorldSafeLocsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldSafeLocsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, PartialOrd)] pub struct WorldSafeLocsRow { pub id: WorldSafeLocsKey, diff --git a/wow_dbc/src/wrath_tables/world_state_ui.rs b/wow_dbc/src/wrath_tables/world_state_ui.rs index 5fc2b6a..4382286 100644 --- a/wow_dbc/src/wrath_tables/world_state_ui.rs +++ b/wow_dbc/src/wrath_tables/world_state_ui.rs @@ -261,6 +261,20 @@ impl WorldStateUIKey { } +impl From for WorldStateUIKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldStateUIKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WorldStateUIKey { fn from(v: i32) -> Self { Self::new(v) @@ -268,6 +282,20 @@ impl From for WorldStateUIKey { } +impl From for WorldStateUIKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WorldStateUIKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WorldStateUIRow { pub id: WorldStateUIKey, diff --git a/wow_dbc/src/wrath_tables/wow_error_strings.rs b/wow_dbc/src/wrath_tables/wow_error_strings.rs index 872aa40..c7de3cc 100644 --- a/wow_dbc/src/wrath_tables/wow_error_strings.rs +++ b/wow_dbc/src/wrath_tables/wow_error_strings.rs @@ -162,6 +162,20 @@ impl WowError_StringsKey { } +impl From for WowError_StringsKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WowError_StringsKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for WowError_StringsKey { fn from(v: i32) -> Self { Self::new(v) @@ -169,6 +183,20 @@ impl From for WowError_StringsKey { } +impl From for WowError_StringsKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for WowError_StringsKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[allow(non_camel_case_types)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct WowError_StringsRow { diff --git a/wow_dbc/src/wrath_tables/zone_intro_music_table.rs b/wow_dbc/src/wrath_tables/zone_intro_music_table.rs index b56d3fa..e86802c 100644 --- a/wow_dbc/src/wrath_tables/zone_intro_music_table.rs +++ b/wow_dbc/src/wrath_tables/zone_intro_music_table.rs @@ -172,6 +172,20 @@ impl ZoneIntroMusicTableKey { } +impl From for ZoneIntroMusicTableKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneIntroMusicTableKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ZoneIntroMusicTableKey { fn from(v: i32) -> Self { Self::new(v) @@ -179,6 +193,20 @@ impl From for ZoneIntroMusicTableKey { } +impl From for ZoneIntroMusicTableKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneIntroMusicTableKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ZoneIntroMusicTableRow { pub id: ZoneIntroMusicTableKey, diff --git a/wow_dbc/src/wrath_tables/zone_music.rs b/wow_dbc/src/wrath_tables/zone_music.rs index dce80aa..82cfb66 100644 --- a/wow_dbc/src/wrath_tables/zone_music.rs +++ b/wow_dbc/src/wrath_tables/zone_music.rs @@ -180,6 +180,20 @@ impl ZoneMusicKey { } +impl From for ZoneMusicKey { + fn from(v: i8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneMusicKey { + fn from(v: i16) -> Self { + Self::new(v.into()) + } + +} + impl From for ZoneMusicKey { fn from(v: i32) -> Self { Self::new(v) @@ -187,6 +201,20 @@ impl From for ZoneMusicKey { } +impl From for ZoneMusicKey { + fn from(v: u8) -> Self { + Self::new(v.into()) + } + +} + +impl From for ZoneMusicKey { + fn from(v: u16) -> Self { + Self::new(v.into()) + } + +} + #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ZoneMusicRow { pub id: ZoneMusicKey,