add proto file for `implement achievement system`

This commit is contained in:
Akbar Yahya 2023-02-28 07:33:54 +08:00
parent 05047c3052
commit 92d51c60bd
7 changed files with 71 additions and 0 deletions

13
proto/Achievement.proto Normal file
View File

@ -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;
}

View File

@ -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;
}

View File

@ -0,0 +1,9 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "Achievement.proto";
message AchievementUpdateNotify {
repeated Achievement achievementList = 4;
}

10
proto/Status.proto Normal file
View File

@ -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;
}

View File

@ -0,0 +1,7 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message TakeAchievementGoalRewardReq {
repeated uint32 idList = 7;
}

View File

@ -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;
}

View File

@ -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;
}