diff options
| author | Fuwn <[email protected]> | 2024-06-12 07:10:28 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-12 07:10:28 -0700 |
| commit | ebd9a84b39c9b5e7004e4ba96b5c900c949e24e5 (patch) | |
| tree | 4e87fe1120432457d91dfa7d30b0fe6058a89d2a | |
| parent | refactor: rename ObjID (diff) | |
| download | worldserver-protobufs-ebd9a84b39c9b5e7004e4ba96b5c900c949e24e5.tar.xz worldserver-protobufs-ebd9a84b39c9b5e7004e4ba96b5c900c949e24e5.zip | |
refactor: move commands to command module
| -rw-r--r-- | Tupfile | 1 | ||||
| -rw-r--r-- | build/test.py | 2 | ||||
| -rw-r--r-- | commands/app_init_command.proto (renamed from app_init_command.proto) | 0 | ||||
| -rw-r--r-- | commands/appear_actor_command.proto (renamed from appear_actor_command.proto) | 0 | ||||
| -rw-r--r-- | commands/buddy_list_notify_command.proto (renamed from buddy_list_notify_command.proto) | 0 | ||||
| -rw-r--r-- | commands/buddy_list_update_command.proto (renamed from buddy_list_update_command.proto) | 0 | ||||
| -rw-r--r-- | commands/channel_command.proto (renamed from channel_command.proto) | 0 | ||||
| -rw-r--r-- | commands/disappear_actor_command.proto (renamed from disappear_actor_command.proto) | 0 | ||||
| -rw-r--r-- | commands/finger_reply_command.proto (renamed from finger_reply_command.proto) | 0 | ||||
| -rw-r--r-- | commands/finger_request_command.proto (renamed from finger_request_command.proto) | 0 | ||||
| -rw-r--r-- | commands/long_location_command.proto (renamed from long_location_command.proto) | 0 | ||||
| -rw-r--r-- | commands/prop_command.proto (renamed from prop_command.proto) | 0 | ||||
| -rw-r--r-- | commands/prop_request_command.proto (renamed from prop_request_command.proto) | 0 | ||||
| -rw-r--r-- | commands/property_set_command.proto (renamed from property_set_command.proto) | 0 | ||||
| -rw-r--r-- | commands/property_update_command.proto (renamed from property_update_command.proto) | 0 | ||||
| -rw-r--r-- | commands/redirect_command.proto (renamed from redirect_command.proto) | 0 | ||||
| -rw-r--r-- | commands/redirect_id_command.proto (renamed from redirect_id_command.proto) | 0 | ||||
| -rw-r--r-- | commands/room_id_command.proto (renamed from room_id_command.proto) | 0 | ||||
| -rw-r--r-- | commands/room_id_request_command.proto (renamed from room_id_request_command.proto) | 0 | ||||
| -rw-r--r-- | commands/session_exit_command.proto (renamed from session_exit_command.proto) | 0 | ||||
| -rw-r--r-- | commands/session_init_command.proto (renamed from session_init_command.proto) | 0 | ||||
| -rw-r--r-- | commands/short_location_command.proto (renamed from short_location_command.proto) | 0 | ||||
| -rw-r--r-- | commands/subscribe_distance_command.proto (renamed from subscribe_distance_command.proto) | 0 | ||||
| -rw-r--r-- | commands/subscribe_room_command.proto (renamed from subscribe_room_command.proto) | 0 | ||||
| -rw-r--r-- | commands/teleport_command.proto (renamed from teleport_command.proto) | 0 | ||||
| -rw-r--r-- | commands/text_command.proto (renamed from text_command.proto) | 0 | ||||
| -rw-r--r-- | commands/unsubscribe_room_command.proto (renamed from unsubscribe_room_command.proto) | 0 | ||||
| -rw-r--r-- | commands/whisper_command.proto (renamed from whisper_command.proto) | 0 | ||||
| -rw-r--r-- | network_packet.proto | 52 |
29 files changed, 28 insertions, 27 deletions
@@ -1,3 +1,4 @@ BUILD_DIRECTORY = build : foreach ./*.proto |> protoc --python_out=$(BUILD_DIRECTORY) --proto_path=. -I. %f |> $(BUILD_DIRECTORY)/%B_pb2.py +: foreach ./commands/*.proto |> protoc --python_out=$(BUILD_DIRECTORY) --proto_path=. -I. %f |> $(BUILD_DIRECTORY)/commands/%B_pb2.py diff --git a/build/test.py b/build/test.py index cf4b869..cf2d28c 100644 --- a/build/test.py +++ b/build/test.py @@ -1,5 +1,5 @@ import network_packet_pb2 as network_packet -import buddy_list_notify_command_pb2 as buddy_list_notify_command +from commands import buddy_list_notify_command_pb2 as buddy_list_notify_command request = network_packet.NetworkPacket() diff --git a/app_init_command.proto b/commands/app_init_command.proto index d7feed5..d7feed5 100644 --- a/app_init_command.proto +++ b/commands/app_init_command.proto diff --git a/appear_actor_command.proto b/commands/appear_actor_command.proto index 718af2d..718af2d 100644 --- a/appear_actor_command.proto +++ b/commands/appear_actor_command.proto diff --git a/buddy_list_notify_command.proto b/commands/buddy_list_notify_command.proto index 34259ea..34259ea 100644 --- a/buddy_list_notify_command.proto +++ b/commands/buddy_list_notify_command.proto diff --git a/buddy_list_update_command.proto b/commands/buddy_list_update_command.proto index d422f55..d422f55 100644 --- a/buddy_list_update_command.proto +++ b/commands/buddy_list_update_command.proto diff --git a/channel_command.proto b/commands/channel_command.proto index b76f984..b76f984 100644 --- a/channel_command.proto +++ b/commands/channel_command.proto diff --git a/disappear_actor_command.proto b/commands/disappear_actor_command.proto index fe7770a..fe7770a 100644 --- a/disappear_actor_command.proto +++ b/commands/disappear_actor_command.proto diff --git a/finger_reply_command.proto b/commands/finger_reply_command.proto index 0821c32..0821c32 100644 --- a/finger_reply_command.proto +++ b/commands/finger_reply_command.proto diff --git a/finger_request_command.proto b/commands/finger_request_command.proto index 4727e9c..4727e9c 100644 --- a/finger_request_command.proto +++ b/commands/finger_request_command.proto diff --git a/long_location_command.proto b/commands/long_location_command.proto index 913dbd2..913dbd2 100644 --- a/long_location_command.proto +++ b/commands/long_location_command.proto diff --git a/prop_command.proto b/commands/prop_command.proto index c847c92..c847c92 100644 --- a/prop_command.proto +++ b/commands/prop_command.proto diff --git a/prop_request_command.proto b/commands/prop_request_command.proto index 040bf4d..040bf4d 100644 --- a/prop_request_command.proto +++ b/commands/prop_request_command.proto diff --git a/property_set_command.proto b/commands/property_set_command.proto index df6b7bc..df6b7bc 100644 --- a/property_set_command.proto +++ b/commands/property_set_command.proto diff --git a/property_update_command.proto b/commands/property_update_command.proto index 5259978..5259978 100644 --- a/property_update_command.proto +++ b/commands/property_update_command.proto diff --git a/redirect_command.proto b/commands/redirect_command.proto index 7c1ce16..7c1ce16 100644 --- a/redirect_command.proto +++ b/commands/redirect_command.proto diff --git a/redirect_id_command.proto b/commands/redirect_id_command.proto index 023377d..023377d 100644 --- a/redirect_id_command.proto +++ b/commands/redirect_id_command.proto diff --git a/room_id_command.proto b/commands/room_id_command.proto index 237a96f..237a96f 100644 --- a/room_id_command.proto +++ b/commands/room_id_command.proto diff --git a/room_id_request_command.proto b/commands/room_id_request_command.proto index 75f5d54..75f5d54 100644 --- a/room_id_request_command.proto +++ b/commands/room_id_request_command.proto diff --git a/session_exit_command.proto b/commands/session_exit_command.proto index 9a5fc4f..9a5fc4f 100644 --- a/session_exit_command.proto +++ b/commands/session_exit_command.proto diff --git a/session_init_command.proto b/commands/session_init_command.proto index 42a3bdb..42a3bdb 100644 --- a/session_init_command.proto +++ b/commands/session_init_command.proto diff --git a/short_location_command.proto b/commands/short_location_command.proto index 2be8ac1..2be8ac1 100644 --- a/short_location_command.proto +++ b/commands/short_location_command.proto diff --git a/subscribe_distance_command.proto b/commands/subscribe_distance_command.proto index 5881a2e..5881a2e 100644 --- a/subscribe_distance_command.proto +++ b/commands/subscribe_distance_command.proto diff --git a/subscribe_room_command.proto b/commands/subscribe_room_command.proto index 9866e43..9866e43 100644 --- a/subscribe_room_command.proto +++ b/commands/subscribe_room_command.proto diff --git a/teleport_command.proto b/commands/teleport_command.proto index d0c92b9..d0c92b9 100644 --- a/teleport_command.proto +++ b/commands/teleport_command.proto diff --git a/text_command.proto b/commands/text_command.proto index 31c93d0..31c93d0 100644 --- a/text_command.proto +++ b/commands/text_command.proto diff --git a/unsubscribe_room_command.proto b/commands/unsubscribe_room_command.proto index a0bab2b..a0bab2b 100644 --- a/unsubscribe_room_command.proto +++ b/commands/unsubscribe_room_command.proto diff --git a/whisper_command.proto b/commands/whisper_command.proto index 24ad47c..24ad47c 100644 --- a/whisper_command.proto +++ b/commands/whisper_command.proto diff --git a/network_packet.proto b/network_packet.proto index d58d303..29aeec1 100644 --- a/network_packet.proto +++ b/network_packet.proto @@ -2,32 +2,32 @@ syntax = "proto3"; package whirl; -import "appear_actor_command.proto"; -import "app_init_command.proto"; -import "prop_command.proto"; -import "buddy_list_notify_command.proto"; -import "buddy_list_update_command.proto"; -import "channel_command.proto"; -import "disappear_actor_command.proto"; -import "finger_reply_command.proto"; -import "finger_request_command.proto"; -import "long_location_command.proto"; -import "property_set_command.proto"; -import "property_update_command.proto"; -import "prop_request_command.proto"; -import "redirect_command.proto"; -import "redirect_id_command.proto"; -import "room_id_command.proto"; -import "room_id_request_command.proto"; -import "session_exit_command.proto"; -import "session_init_command.proto"; -import "short_location_command.proto"; -import "subscribe_distance_command.proto"; -import "subscribe_room_command.proto"; -import "teleport_command.proto"; -import "text_command.proto"; -import "unsubscribe_room_command.proto"; -import "whisper_command.proto"; +import "commands/appear_actor_command.proto"; +import "commands/app_init_command.proto"; +import "commands/prop_command.proto"; +import "commands/buddy_list_notify_command.proto"; +import "commands/buddy_list_update_command.proto"; +import "commands/channel_command.proto"; +import "commands/disappear_actor_command.proto"; +import "commands/finger_reply_command.proto"; +import "commands/finger_request_command.proto"; +import "commands/long_location_command.proto"; +import "commands/property_set_command.proto"; +import "commands/property_update_command.proto"; +import "commands/prop_request_command.proto"; +import "commands/redirect_command.proto"; +import "commands/redirect_id_command.proto"; +import "commands/room_id_command.proto"; +import "commands/room_id_request_command.proto"; +import "commands/session_exit_command.proto"; +import "commands/session_init_command.proto"; +import "commands/short_location_command.proto"; +import "commands/subscribe_distance_command.proto"; +import "commands/subscribe_room_command.proto"; +import "commands/teleport_command.proto"; +import "commands/text_command.proto"; +import "commands/unsubscribe_room_command.proto"; +import "commands/whisper_command.proto"; message NetworkPacket { uint32 length = 1; |