diff --git a/proto/Achievement.proto b/proto/Achievement.proto new file mode 100644 index 00000000..107e637b --- /dev/null +++ b/proto/Achievement.proto @@ -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; +} \ No newline at end of file diff --git a/proto/AchievementAllDataNotify.proto b/proto/AchievementAllDataNotify.proto new file mode 100644 index 00000000..4a1aa6c2 --- /dev/null +++ b/proto/AchievementAllDataNotify.proto @@ -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; +} diff --git a/proto/AchievementUpdateNotify.proto b/proto/AchievementUpdateNotify.proto new file mode 100644 index 00000000..85612ba0 --- /dev/null +++ b/proto/AchievementUpdateNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Achievement.proto"; + +message AchievementUpdateNotify { + repeated Achievement achievementList = 4; +} diff --git a/proto/Status.proto b/proto/Status.proto new file mode 100644 index 00000000..0a6682da --- /dev/null +++ b/proto/Status.proto @@ -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; +} \ No newline at end of file diff --git a/proto/TakeAchievementGoalRewardReq.proto b/proto/TakeAchievementGoalRewardReq.proto new file mode 100644 index 00000000..04dba9dc --- /dev/null +++ b/proto/TakeAchievementGoalRewardReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TakeAchievementGoalRewardReq { + repeated uint32 idList = 7; +} diff --git a/proto/TakeAchievementGoalRewardRsp.proto b/proto/TakeAchievementGoalRewardRsp.proto new file mode 100644 index 00000000..441ac1c9 --- /dev/null +++ b/proto/TakeAchievementGoalRewardRsp.proto @@ -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; +} diff --git a/proto/TakeAchievementRewardRsp.proto b/proto/TakeAchievementRewardRsp.proto new file mode 100644 index 00000000..23f23d7a --- /dev/null +++ b/proto/TakeAchievementRewardRsp.proto @@ -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; +}