add proto file for `implement achievement system`
This commit is contained in:
parent
05047c3052
commit
92d51c60bd
|
@ -0,0 +1,13 @@
|
|||
syntax = "proto3";
|
||||
|
||||
import "Status.proto";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message Achievement {
|
||||
uint32 curProgress = 10;
|
||||
uint32 id = 13;
|
||||
uint32 totalProgress = 14;
|
||||
Status status = 5;
|
||||
uint32 finishTimestamp = 6;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "Achievement.proto";
|
||||
|
||||
message AchievementAllDataNotify {
|
||||
repeated uint32 rewardTakenGoalIdList = 8;
|
||||
repeated Achievement achievementList = 4;
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "Achievement.proto";
|
||||
|
||||
message AchievementUpdateNotify {
|
||||
repeated Achievement achievementList = 4;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
enum Status {
|
||||
STATUS_INVALID = 0;
|
||||
STATUS_UNFINISHED = 1;
|
||||
STATUS_FINISHED = 2;
|
||||
STATUS_REWARD_TAKEN = 3;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message TakeAchievementGoalRewardReq {
|
||||
repeated uint32 idList = 7;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "ItemParam.proto";
|
||||
|
||||
message TakeAchievementGoalRewardRsp {
|
||||
int32 retcode = 14;
|
||||
repeated ItemParam itemList = 6;
|
||||
repeated uint32 idList = 15;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "ItemParam.proto";
|
||||
|
||||
message TakeAchievementRewardRsp {
|
||||
repeated ItemParam itemList = 7;
|
||||
repeated uint32 idList = 4;
|
||||
int32 retcode = 13;
|
||||
}
|
Loading…
Reference in New Issue