mirror of
https://gitlab.com/YuukiPS/GC-Proto.git
synced 2024-12-25 07:59:24 +03:00
add proto file for implement achievement system
This commit is contained in:
parent
05047c3052
commit
92d51c60bd
13
proto/Achievement.proto
Normal file
13
proto/Achievement.proto
Normal 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;
|
||||||
|
}
|
10
proto/AchievementAllDataNotify.proto
Normal file
10
proto/AchievementAllDataNotify.proto
Normal 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;
|
||||||
|
}
|
9
proto/AchievementUpdateNotify.proto
Normal file
9
proto/AchievementUpdateNotify.proto
Normal 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
10
proto/Status.proto
Normal 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;
|
||||||
|
}
|
7
proto/TakeAchievementGoalRewardReq.proto
Normal file
7
proto/TakeAchievementGoalRewardReq.proto
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
option java_package = "emu.grasscutter.net.proto";
|
||||||
|
|
||||||
|
message TakeAchievementGoalRewardReq {
|
||||||
|
repeated uint32 idList = 7;
|
||||||
|
}
|
11
proto/TakeAchievementGoalRewardRsp.proto
Normal file
11
proto/TakeAchievementGoalRewardRsp.proto
Normal 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;
|
||||||
|
}
|
11
proto/TakeAchievementRewardRsp.proto
Normal file
11
proto/TakeAchievementRewardRsp.proto
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user