mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-22 20:04:56 +01:00
fix achievement proto (#507)
* fix achievement proto TakeAchievementRewardReq tells client the achievements achieved or not and it's progress. * add import
This commit is contained in:
17
proto/AchievementInfo.proto
Normal file
17
proto/AchievementInfo.proto
Normal file
@@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
message AchievementInfo {
|
||||
enum AchievementInfoStatus {
|
||||
ACHIEVEMENT_INVALID = 0;
|
||||
ACHIEVEMENT_UNFINISHED = 1;
|
||||
ACHIEVEMENT_FINISHED = 2;
|
||||
ACHIEVEMENT_POINT_TAKEN = 3;
|
||||
}
|
||||
|
||||
uint32 id = 1;
|
||||
AchievementInfoStatus status = 2;
|
||||
uint32 current = 3;
|
||||
uint32 goal = 4;
|
||||
uint32 achievedate = 5;
|
||||
}
|
||||
17
proto/TakeAchievementRewardReq.proto
Normal file
17
proto/TakeAchievementRewardReq.proto
Normal file
@@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AchievementInfo.proto";
|
||||
message TakeAchievementRewardReq {
|
||||
enum CmdId {
|
||||
option allow_alias = true;
|
||||
ENET_CHANNEL_ID = 0;
|
||||
NONE = 0;
|
||||
ENET_IS_RELIABLE = 1;
|
||||
IS_ALLOW_CLIENT = 1;
|
||||
CMD_ID = 2677;
|
||||
}
|
||||
|
||||
repeated AchievementInfo a_list = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user