Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/BuildMessages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function(build_messages
message_schema)

set(protogen "protogen")
set(output_root "${CMAKE_BINARY_DIR}/generated")
set(output_root "${CMAKE_BINARY_DIR}/protocol")
set(templates_dir "$<TARGET_PROPERTY:${protogen},PROTOGEN_TEMPLATES_DIR>")

file(GLOB message_jsons CONFIGURE_DEPENDS "${messages_dir}/*.json")
Expand Down
5 changes: 5 additions & 0 deletions schemas/world/message.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"pattern": "^(cmsg|smsg|msg)_[a-z0-9_]+$",
"description": "Wire opcode identifier in snake_case (e.g. smsg_login_verify_world)"
},
"alias": {
"type": "string",
"pattern": "^(cmsg|smsg|msg)_[a-z0-9_]+$",
"description": "Alias override to allow for the message name to be differentiated from the opcode"
},
"direction": {
"type": "string",
"enum": ["client", "server"],
Expand Down
8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_auction_hello_client.json

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion schemas/world/packets/cmsg_cancel_growth_aura.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "CancelGrowthAura",
"opcode": "cmsg_cancel_growthaura",
"opcode": "cmsg_cancel_growth_aura",
"direction": "client"
}
5 changes: 0 additions & 5 deletions schemas/world/packets/cmsg_corpse_query_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_inspect_honor_stats_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_list_stabled_pets_client.json

This file was deleted.

5 changes: 0 additions & 5 deletions schemas/world/packets/cmsg_looking_for_group_client.json

This file was deleted.

6 changes: 3 additions & 3 deletions schemas/world/packets/cmsg_messagechat.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
"opcode": "cmsg_messagechat",
"direction": "client",
"fields": [
{ "name": "chat_type", "type": "uint32" },
{ "name": "type", "type": "ChatType" },
{ "name": "language", "type": "Language" },
{
"type": "if_chain",
"branches": [
{
"when": { "op": "eq", "field": "chat_type", "value": 6 },
"when": { "op": "eq", "field": "type", "value": "whisper" },
"fields": [
{ "name": "target_player", "type": "CString" }
]
},
{
"when": { "op": "eq", "field": "chat_type", "value": 14 },
"when": { "op": "eq", "field": "type", "value": "channel" },
"fields": [
{ "name": "channel", "type": "CString" }
]
Expand Down
8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_fall_land_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_set_facing_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_set_pitch_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_set_run_mode_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_set_walk_mode_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_backward_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_forward_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_pitch_down_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_pitch_up_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_strafe_left_client.json

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_swim_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_turn_left_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_start_turn_right_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_stop_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_stop_pitch_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_stop_strafe_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_stop_swim_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_move_stop_turn_client.json

This file was deleted.

5 changes: 0 additions & 5 deletions schemas/world/packets/cmsg_pvp_log_data_client.json

This file was deleted.

5 changes: 0 additions & 5 deletions schemas/world/packets/cmsg_query_next_mail_time_client.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemas/world/packets/cmsg_talent_wipe_confirm_client.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"fields": [
{ "name": "name", "type": "CString" },
{ "name": "race", "type": "Race" },
{ "name": "class", "type": "Class" },
{ "name": "class_", "type": "Class" },
{ "name": "gender", "type": "Gender" },
{ "name": "skin_color", "type": "uint8" },
{ "name": "face", "type": "uint8" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "AcceptLevelGrant",
"opcode": "cmsg_accept_level_grants",
"opcode": "cmsg_accept_level_grant",
"direction": "client",
"fields": [
{ "name": "guid", "type": "uint64" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "BattlegroundPlayerPositionsServer",
"opcode": "smsg_battleground_player_positions_server",
"name": "BattlegroundPlayerPositions",
"opcode": "msg_battleground_player_positions",
"alias": "msg_battleground_player_positions_s",
"direction": "server",
"fields": [
{ "name": "amount_of_teammates", "type": "uint32" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ChannelStartServer",
"opcode": "smsg_channel_start_server",
"name": "ChannelStart",
"opcode": "msg_channel_start",
"alias": "msg_channel_start_s",
"direction": "server",
"fields": [
{ "name": "spell", "type": "uint32" },
Expand Down
9 changes: 9 additions & 0 deletions schemas/world/packets/msg_channel_update_server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "ChannelUpdate",
"opcode": "msg_channel_update",
"alias": "msg_channel_update_s",
"direction": "server",
"fields": [
{ "name": "time", "type": "uint32" }
]
}
9 changes: 9 additions & 0 deletions schemas/world/packets/msg_inspect_honor_stats_client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "InspectHonorStats",
"opcode": "msg_inspect_honor_stats",
"alias": "msg_inspect_honor_stats_c",
"direction": "client",
"fields": [
{ "name": "guid", "type": "uint64" }
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "InspectHonorStatsServer",
"opcode": "smsg_inspect_honor_stats_server",
"name": "InspectHonorStats",
"opcode": "msg_inspect_honor_stats",
"alias": "msg_inspect_honor_stats_s",
"direction": "server",
"fields": [
{ "name": "guid", "type": "uint64" },
Expand Down
9 changes: 9 additions & 0 deletions schemas/world/packets/msg_list_stabled_pets_client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "ListStabledPets",
"opcode": "msg_list_stabled_pets",
"alias": "msg_list_stabled_pets_c",
"direction": "client",
"fields": [
{ "name": "npc", "type": "uint64" }
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ListStabledPetsServer",
"opcode": "smsg_list_stabled_pets_server",
"name": "ListStabledPets",
"opcode": "msg_list_stabled_pets",
"alias": "msg_list_stabled_pets_s",
"direction": "server",
"fields": [
{ "name": "npc", "type": "uint64" },
Expand Down
6 changes: 6 additions & 0 deletions schemas/world/packets/msg_looking_for_group_client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "LookingForGroup",
"opcode": "msg_looking_for_group",
"alias": "msg_looking_for_group_c",
"direction": "client"
}
9 changes: 9 additions & 0 deletions schemas/world/packets/msg_looking_for_group_server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "LookingForGroup",
"opcode": "msg_looking_for_group",
"alias": "msg_looking_for_group_s",
"direction": "server",
"fields": [
{ "name": "unknown1", "type": "uint32" }
]
}
Loading
Loading