From eaba1029447262efc7279393c4ace2a61554f41b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 12 Jun 2024 06:42:44 -0700 Subject: refactor: rename location commands --- LongLocCmd.proto | 10 ---------- LongLocationCmd.proto | 10 ++++++++++ NetPacket.proto | 8 ++++---- ShortLocCmd.proto | 9 --------- ShortLocationCmd.proto | 9 +++++++++ 5 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 LongLocCmd.proto create mode 100644 LongLocationCmd.proto delete mode 100644 ShortLocCmd.proto create mode 100644 ShortLocationCmd.proto diff --git a/LongLocCmd.proto b/LongLocCmd.proto deleted file mode 100644 index 6b27d7f..0000000 --- a/LongLocCmd.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - -package whirl; - -message LongLocCmd { - int32 x = 1; - int32 y = 2; - int32 z = 3; - int32 direction = 4; -} diff --git a/LongLocationCmd.proto b/LongLocationCmd.proto new file mode 100644 index 0000000..be70f7f --- /dev/null +++ b/LongLocationCmd.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package whirl; + +message LongLocationCmd { + int32 x = 1; + int32 y = 2; + int32 z = 3; + int32 direction = 4; +} diff --git a/NetPacket.proto b/NetPacket.proto index b923ab1..3e5f7c1 100644 --- a/NetPacket.proto +++ b/NetPacket.proto @@ -11,7 +11,7 @@ import "ChannelCmd.proto"; import "DisappearActorCmd.proto"; import "FingerReplyCmd.proto"; import "FingerReqCmd.proto"; -import "LongLocCmd.proto"; +import "LongLocationCmd.proto"; import "PropertySetCmd.proto"; import "PropertyUpdateCmd.proto"; import "PropReqCmd.proto"; @@ -21,7 +21,7 @@ import "RoomIDCmd.proto"; import "RoomIDReqCmd.proto"; import "SessionExitCmd.proto"; import "SessionInitCmd.proto"; -import "ShortLocCmd.proto"; +import "ShortLocationCmd.proto"; import "SubscribeDistCmd.proto"; import "SubscribeRoomCmd.proto"; import "TeleportCmd.proto"; @@ -46,7 +46,7 @@ message NetPacket { DisappearActorCmd disappear_actor_cmd = 11; FingerReplyCmd finger_reply_cmd = 12; FingerReqCmd finger_req_cmd = 13; - LongLocCmd long_loc_cmd = 14; + LongLocationCmd long_location_cmd = 14; PropertySetCmd property_set_cmd = 15; PropertyUpdateCmd property_update_cmd = 16; PropReqCmd prop_req_cmd = 17; @@ -56,7 +56,7 @@ message NetPacket { RoomIDReqCmd room_id_req_cmd = 21; SessionExitCmd session_exit_cmd = 22; SessionInitCmd session_init_cmd = 23; - ShortLocCmd short_loc_cmd = 24; + ShortLocationCmd short_location_cmd = 24; SubscribeDistCmd subscribe_dist_cmd = 25; SubscribeRoomCmd subscribe_room_cmd = 26; TeleportCmd teleport_cmd = 27; diff --git a/ShortLocCmd.proto b/ShortLocCmd.proto deleted file mode 100644 index cba1070..0000000 --- a/ShortLocCmd.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - -package whirl; - -message ShortLocCmd { - int32 dx = 1; - int32 dy = 2; - int32 ddirection = 3; -} diff --git a/ShortLocationCmd.proto b/ShortLocationCmd.proto new file mode 100644 index 0000000..b26b8da --- /dev/null +++ b/ShortLocationCmd.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package whirl; + +message ShortLocationCmd { + int32 dx = 1; + int32 dy = 2; + int32 ddirection = 3; +} -- cgit v1.2.3