add proto investigation

This commit is contained in:
Akbar Yahya 2023-04-17 00:40:21 +08:00
parent 3fd3554c95
commit 580353c4ae
10 changed files with 131 additions and 4 deletions

21
proto/Investigation.proto Normal file
View File

@ -0,0 +1,21 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// Name: JIDKKFKPDIH
message Investigation {
// Name: PMHIABIOPBE
enum State {
INVALID = 0;
IN_PROGRESS = 1;
COMPLETE = 2;
REWARD_TAKEN = 3;
}
uint32 total_progress = 11;
State state = 8;
uint32 id = 3;
uint32 progress = 15;
}

View File

@ -15,13 +15,13 @@ message InvestigationMonster {
bool is_area_locked = 8;
uint32 city_id = 5;
uint32 refresh_interval = 10; // CBBFLPAGFOI
uint32 CBBFLPAGFOI = 10; // CBBFLPAGFOI
uint32 next_refresh_time = 1;
WeeklyBossResinDiscountInfo weekly_boss_resin_discount_info = 12;
bool is_alive = 14;
uint32 level = 13;
uint32 boss_chest_num = 9; // MGMCKOOBFBJ
uint32 DHMMIBILNEE = 11; // DHMMIBILNEE
uint32 max_boss_chest_num = 9; // MGMCKOOBFBJ
uint32 refresh_interval = 11; // DHMMIBILNEE
Vector pos = 2;
uint32 group_id = 1212;
uint32 id = 7;
@ -29,6 +29,6 @@ message InvestigationMonster {
uint32 resin = 3;
uint32 monster_id = 518;
LockState lock_state = 4;
uint32 max_boss_chest_num = 15; // HKBNEBOAMDI
uint32 boss_chest_num = 15; // HKBNEBOAMDI
}

View File

@ -0,0 +1,22 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// Name: PANKLPDCNBE
message InvestigationTarget {
// Name: OJMGAAEJHAD
enum State {
INVALID = 0;
IN_PROGRESS = 1;
COMPLETE = 2;
REWARD_TAKEN = 3;
}
uint32 investigation_id = 3;
uint32 total_progress = 5;
uint32 progress = 15;
uint32 quest_id = 4;
State state = 9;
}

View File

@ -0,0 +1,14 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "Investigation.proto";
import "InvestigationTarget.proto";
// CmdId: 1917
// Name: AAGKEHNFPPN
message PlayerInvestigationAllInfoNotify {
repeated Investigation investigation_list = 4;
repeated InvestigationTarget investigation_target_list = 12;
}

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "Investigation.proto";
// CmdId: 1910
// Name: HGGBKEKBGJG
message PlayerInvestigationNotify {
repeated Investigation investigation_list = 9;
}

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "InvestigationTarget.proto";
// CmdId: 1927
// Name: LKMFLLAFCCF
message PlayerInvestigationTargetNotify {
repeated InvestigationTarget investigation_target_list = 6;
}

View File

@ -0,0 +1,11 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 1907
// Name: LHPFEHGIOIP
message TakeInvestigationRewardReq {
uint32 id = 6;
}

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 1915
// Name: BHNOHDDKCNG
message TakeInvestigationRewardRsp {
uint32 id = 6;
int32 retcode = 11;
}

View File

@ -0,0 +1,11 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 1911
// Name: ALBAFICCGIB
message TakeInvestigationTargetRewardReq {
uint32 quest_id = 11;
}

View File

@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
// CmdId: 1930
// Name: IHKDFEAHNJI
message TakeInvestigationTargetRewardRsp {
uint32 quest_id = 9;
int32 retcode = 15;
}