add proto file for `Implement home resource gain`

This commit is contained in:
Akbar Yahya 2023-02-27 08:15:29 +08:00
parent 650acd1337
commit 05047c3052
6 changed files with 67 additions and 0 deletions

9
proto/HomeResource.proto Normal file
View File

@ -0,0 +1,9 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message HomeResource {
uint32 storeLimit = 15;
uint32 storeValue = 10;
uint32 nextRefreshTime = 1;
}

View File

@ -0,0 +1,10 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "HomeResource.proto";
message HomeResourceNotify {
HomeResource fetterExp = 9;
HomeResource homeCoin = 1;
}

View File

@ -0,0 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message HomeResourceTakeFetterExpReq {
enum HAAKPPLLECB {
option allow_alias = true;
NONE = 0;
PEPPOHPHJOJ = 4525;
DCDNILFDFLB = 0;
NNBKOLMPOEA = 1;
EAJIABGAOCI = 1;
}
}

View File

@ -0,0 +1,10 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "HomeResource.proto";
message HomeResourceTakeFetterExpRsp {
HomeResource fetterExp = 12;
int32 retcode = 3;
}

View File

@ -0,0 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message HomeResourceTakeHomeCoinReq {
enum ALJGALOMLPM {
option allow_alias = true;
NONE = 0;
PEPPOHPHJOJ = 4460;
DCDNILFDFLB = 0;
NNBKOLMPOEA = 1;
EAJIABGAOCI = 1;
}
}

View File

@ -0,0 +1,10 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "HomeResource.proto";
message HomeResourceTakeHomeCoinRsp {
HomeResource homeCoin = 15;
int32 retcode = 14;
}