From eaf0dd0b3b4f02dd943933428f04c56b926e6ee4 Mon Sep 17 00:00:00 2001 From: ShiroSaki <62388797+ShigemoriHakura@users.noreply.github.com> Date: Fri, 6 May 2022 07:43:45 +0800 Subject: [PATCH] Add all AvatarExpedition protos Expedition system has almost done but still has some bug so it will be uploaded later --- proto/AvatarExpeditionAllDataRsp.proto | 19 +++++++++++++++++++ proto/AvatarExpeditionCallBackReq.proto | 16 ++++++++++++++++ proto/AvatarExpeditionCallBackRsp.proto | 17 +++++++++++++++++ proto/AvatarExpeditionDataNotify.proto | 16 ++++++++++++++++ proto/AvatarExpeditionGetRewardReq.proto | 16 ++++++++++++++++ proto/AvatarExpeditionGetRewardRsp.proto | 19 +++++++++++++++++++ proto/AvatarExpeditionInfo.proto | 12 ++++++++++++ proto/AvatarExpeditionStartReq.proto | 18 ++++++++++++++++++ proto/AvatarExpeditionStartRsp.proto | 17 +++++++++++++++++ 9 files changed, 150 insertions(+) create mode 100644 proto/AvatarExpeditionAllDataRsp.proto create mode 100644 proto/AvatarExpeditionCallBackReq.proto create mode 100644 proto/AvatarExpeditionCallBackRsp.proto create mode 100644 proto/AvatarExpeditionDataNotify.proto create mode 100644 proto/AvatarExpeditionGetRewardReq.proto create mode 100644 proto/AvatarExpeditionGetRewardRsp.proto create mode 100644 proto/AvatarExpeditionInfo.proto create mode 100644 proto/AvatarExpeditionStartReq.proto create mode 100644 proto/AvatarExpeditionStartRsp.proto diff --git a/proto/AvatarExpeditionAllDataRsp.proto b/proto/AvatarExpeditionAllDataRsp.proto new file mode 100644 index 000000000..5ff61dbcd --- /dev/null +++ b/proto/AvatarExpeditionAllDataRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "AvatarExpeditionInfo.proto"; + +message AvatarExpeditionAllDataRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1783; + } + + int32 retcode = 1; + map expedition_info_map = 2; + repeated uint32 open_expedition_list = 3; + uint32 expedition_count_limit = 4; +} diff --git a/proto/AvatarExpeditionCallBackReq.proto b/proto/AvatarExpeditionCallBackReq.proto new file mode 100644 index 000000000..b1131a2aa --- /dev/null +++ b/proto/AvatarExpeditionCallBackReq.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarExpeditionCallBackReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1618; + } + + repeated uint64 avatar_guid = 1; +} diff --git a/proto/AvatarExpeditionCallBackRsp.proto b/proto/AvatarExpeditionCallBackRsp.proto new file mode 100644 index 000000000..75adca0f6 --- /dev/null +++ b/proto/AvatarExpeditionCallBackRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "AvatarExpeditionInfo.proto"; + +message AvatarExpeditionCallBackRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1633; + } + + int32 retcode = 1; + map expedition_info_map = 2; +} diff --git a/proto/AvatarExpeditionDataNotify.proto b/proto/AvatarExpeditionDataNotify.proto new file mode 100644 index 000000000..8adef648a --- /dev/null +++ b/proto/AvatarExpeditionDataNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "AvatarExpeditionInfo.proto"; + +message AvatarExpeditionDataNotify { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1621; + } + + map expedition_info_map = 1; +} diff --git a/proto/AvatarExpeditionGetRewardReq.proto b/proto/AvatarExpeditionGetRewardReq.proto new file mode 100644 index 000000000..847f96fee --- /dev/null +++ b/proto/AvatarExpeditionGetRewardReq.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarExpeditionGetRewardReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1610; + } + + uint64 avatar_guid = 1; +} diff --git a/proto/AvatarExpeditionGetRewardRsp.proto b/proto/AvatarExpeditionGetRewardRsp.proto new file mode 100644 index 000000000..c494b77a2 --- /dev/null +++ b/proto/AvatarExpeditionGetRewardRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "AvatarExpeditionInfo.proto"; + +import "ItemParam.proto"; +message AvatarExpeditionGetRewardRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1670; + } + + int32 retcode = 1; + map expedition_info_map = 2; + repeated ItemParam item_list = 3; +} diff --git a/proto/AvatarExpeditionInfo.proto b/proto/AvatarExpeditionInfo.proto new file mode 100644 index 000000000..180482bd0 --- /dev/null +++ b/proto/AvatarExpeditionInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "AvatarExpeditionState.proto"; + +message AvatarExpeditionInfo { + AvatarExpeditionState state = 1; + uint32 exp_id = 2; + uint32 hour_time = 3; + uint32 start_time = 4; + float shorten_ratio = 5; +} diff --git a/proto/AvatarExpeditionStartReq.proto b/proto/AvatarExpeditionStartReq.proto new file mode 100644 index 000000000..cbfe1a15d --- /dev/null +++ b/proto/AvatarExpeditionStartReq.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarExpeditionStartReq { + enum CmdId { + option allow_alias = true; + ENET_CHANNEL_ID = 0; + NONE = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 1609; + } + + uint64 avatar_guid = 1; + uint32 exp_id = 2; + uint32 hour_time = 3; +} diff --git a/proto/AvatarExpeditionStartRsp.proto b/proto/AvatarExpeditionStartRsp.proto new file mode 100644 index 000000000..c48fe2ad4 --- /dev/null +++ b/proto/AvatarExpeditionStartRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "AvatarExpeditionInfo.proto"; + +message AvatarExpeditionStartRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 1646; + } + + int32 retcode = 1; + map expedition_info_map = 2; +}