From c59a63570bfc1f3015859ea0d84b09c2ceb37aac Mon Sep 17 00:00:00 2001 From: Akbar Yahya Date: Sun, 5 Feb 2023 11:07:31 +0800 Subject: [PATCH] Add proto (Teapot Implementations & Fixes) --- proto/BackMyWorldReq.proto | 5 +++++ proto/BackMyWorldRsp.proto | 6 ++++++ proto/GetHomeLevelUpRewardReq.proto | 6 ++++++ proto/GetHomeLevelUpRewardRsp.proto | 7 +++++++ proto/HomeChangeModuleReq.proto | 19 +++++++++++++++++++ proto/HomeChangeModuleRsp.proto | 7 +++++++ proto/HomeModuleSeenReq.proto | 6 ++++++ proto/HomeModuleSeenRsp.proto | 7 +++++++ proto/HomeModuleUnlockNotify.proto | 6 ++++++ 9 files changed, 69 insertions(+) create mode 100644 proto/BackMyWorldReq.proto create mode 100644 proto/BackMyWorldRsp.proto create mode 100644 proto/GetHomeLevelUpRewardReq.proto create mode 100644 proto/GetHomeLevelUpRewardRsp.proto create mode 100644 proto/HomeChangeModuleReq.proto create mode 100644 proto/HomeChangeModuleRsp.proto create mode 100644 proto/HomeModuleSeenReq.proto create mode 100644 proto/HomeModuleSeenRsp.proto create mode 100644 proto/HomeModuleUnlockNotify.proto diff --git a/proto/BackMyWorldReq.proto b/proto/BackMyWorldReq.proto new file mode 100644 index 00000000..636d7d9c --- /dev/null +++ b/proto/BackMyWorldReq.proto @@ -0,0 +1,5 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message BackMyWorldReq { +} diff --git a/proto/BackMyWorldRsp.proto b/proto/BackMyWorldRsp.proto new file mode 100644 index 00000000..02e73015 --- /dev/null +++ b/proto/BackMyWorldRsp.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message BackMyWorldRsp { + int32 retcode = 9; +} diff --git a/proto/GetHomeLevelUpRewardReq.proto b/proto/GetHomeLevelUpRewardReq.proto new file mode 100644 index 00000000..6cb195cc --- /dev/null +++ b/proto/GetHomeLevelUpRewardReq.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message GetHomeLevelUpRewardReq { + uint32 level = 13; +} diff --git a/proto/GetHomeLevelUpRewardRsp.proto b/proto/GetHomeLevelUpRewardRsp.proto new file mode 100644 index 00000000..a1324a0e --- /dev/null +++ b/proto/GetHomeLevelUpRewardRsp.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message GetHomeLevelUpRewardRsp { + uint32 level = 5; + int32 retcode = 6; +} diff --git a/proto/HomeChangeModuleReq.proto b/proto/HomeChangeModuleReq.proto new file mode 100644 index 00000000..8fa430d4 --- /dev/null +++ b/proto/HomeChangeModuleReq.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + + + +message HomeChangeModuleReq { + //enum KMCKOHBLHIJ { + // option allow_alias= true; + // NONE = 0; + // PEPPOHPHJOJ = 4484; + // DCDNILFDFLB = 0; + // NNBKOLMPOEA = 1; + // EAJIABGAOCI = 1; + //} + + uint32 targetModuleId = 12; +} diff --git a/proto/HomeChangeModuleRsp.proto b/proto/HomeChangeModuleRsp.proto new file mode 100644 index 00000000..38621d81 --- /dev/null +++ b/proto/HomeChangeModuleRsp.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message HomeChangeModuleRsp { + uint32 targetModuleId = 11; + int32 retcode = 13; +} diff --git a/proto/HomeModuleSeenReq.proto b/proto/HomeModuleSeenReq.proto new file mode 100644 index 00000000..b5bd1a74 --- /dev/null +++ b/proto/HomeModuleSeenReq.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message HomeModuleSeenReq { + repeated uint32 seenModuleIdList = 4; +} diff --git a/proto/HomeModuleSeenRsp.proto b/proto/HomeModuleSeenRsp.proto new file mode 100644 index 00000000..a9e40742 --- /dev/null +++ b/proto/HomeModuleSeenRsp.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message HomeModuleSeenRsp { + int32 retcode = 9; + repeated uint32 seenModuleIdList = 12; +} diff --git a/proto/HomeModuleUnlockNotify.proto b/proto/HomeModuleUnlockNotify.proto new file mode 100644 index 00000000..bb222bd5 --- /dev/null +++ b/proto/HomeModuleUnlockNotify.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message HomeModuleUnlockNotify { + uint32 moduleId = 14; +}