WOWW: Add character looks to SMSG_CHAR_ENUM

This commit is contained in:
Gtker 2021-07-24 22:19:42 +02:00 committed by Wireshark GitLab Utility
parent b1e1d0b755
commit fccca6ee7b
1 changed files with 51 additions and 1 deletions

View File

@ -87,6 +87,11 @@ static int hf_woww_character_name = -1;
static int hf_woww_character_race = -1;
static int hf_woww_character_class = -1;
static int hf_woww_character_gender = -1;
static int hf_woww_character_skin = -1;
static int hf_woww_character_face = -1;
static int hf_woww_character_hairstyle = -1;
static int hf_woww_character_haircolor = -1;
static int hf_woww_character_facialhair = -1;
#define WOWW_TCP_PORT 8085
@ -2446,8 +2451,28 @@ parse_SMSG_CHAR_ENUM(proto_tree* tree,
offset, len, ENC_NA);
offset += len;
proto_tree_add_item(char_tree, hf_woww_character_skin, tvb,
offset, len, ENC_NA);
offset += len;
proto_tree_add_item(char_tree, hf_woww_character_face, tvb,
offset, len, ENC_NA);
offset += len;
proto_tree_add_item(char_tree, hf_woww_character_hairstyle, tvb,
offset, len, ENC_NA);
offset += len;
proto_tree_add_item(char_tree, hf_woww_character_haircolor, tvb,
offset, len, ENC_NA);
offset += len;
proto_tree_add_item(char_tree, hf_woww_character_facialhair, tvb,
offset, len, ENC_NA);
offset += len;
(void)race; (void)class;
offset += 147;
offset += 142;
}
}
@ -2724,6 +2749,31 @@ proto_register_woww(void)
FT_UINT8, BASE_HEX, VALS(genders_strings), 0,
NULL, HFILL }
},
{ &hf_woww_character_skin,
{ "Skin Color", "woww.skin",
FT_UINT8, BASE_HEX, NULL, 0,
NULL, HFILL }
},
{ &hf_woww_character_face,
{ "Face", "woww.face",
FT_UINT8, BASE_HEX, NULL, 0,
NULL, HFILL }
},
{ &hf_woww_character_hairstyle,
{ "Hair Style", "woww.hairstyle",
FT_UINT8, BASE_HEX, NULL, 0,
NULL, HFILL }
},
{ &hf_woww_character_haircolor,
{ "Hair Color", "woww.haircolor",
FT_UINT8, BASE_HEX, NULL, 0,
NULL, HFILL }
},
{ &hf_woww_character_facialhair,
{ "Facial Hair/Accessory", "woww.facialhair",
FT_UINT8, BASE_HEX, NULL, 0,
NULL, HFILL }
},
};
static gint *ett[] = {