Implement script support needed for dungeons

Only a few are supported right now
You will need certain script files in ./resources/Scripts
This commit is contained in:
Melledy
2022-04-28 22:19:14 -07:00
parent 17addc1522
commit c1e69ce343
49 changed files with 1604 additions and 44 deletions

View File

@@ -0,0 +1,9 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message ChallengeDataNotify {
uint32 challenge_index = 1;
uint32 param_index = 2;
uint32 value = 3;
}

View File

@@ -0,0 +1,11 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message ChannellerSlabLoopDungeonResultInfo {
uint32 dungeon_index = 1;
bool is_success = 2;
uint32 challenge_score = 3;
uint32 challenge_max_score = 4;
bool is_in_time_limit = 5;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message DungeonChallengeBeginNotify {
uint32 challenge_id = 1;
uint32 challenge_index = 2;
repeated uint32 param_list = 3;
uint32 group_id = 4;
uint32 father_index = 5;
repeated uint32 uid_list = 6;
}

View File

@@ -0,0 +1,20 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
import "ChannellerSlabLoopDungeonResultInfo.proto";
import "EffigyChallengeDungeonResultInfo.proto";
import "StrengthenPointData.proto";
message DungeonChallengeFinishNotify {
oneof Detail {
ChannellerSlabLoopDungeonResultInfo channeller_slab_loop_dungeon_result_info = 101;
EffigyChallengeDungeonResultInfo effigy_challenge_dungeon_result_info = 102;
}
uint32 challenge_index = 1;
bool is_success = 2;
bool is_new_record = 3;
uint32 challenge_record_type = 4;
uint32 current_value = 5;
map<uint32, StrengthenPointData> strengthen_point_data_map = 6;
}

View File

@@ -0,0 +1,11 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message EffigyChallengeDungeonResultInfo {
uint32 challenge_id = 1;
bool is_success = 2;
uint32 challenge_score = 3;
uint32 challenge_max_score = 4;
bool is_in_time_limit = 5;
}

View File

@@ -0,0 +1,9 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message GadgetStateNotify {
uint32 gadget_entity_id = 1;
uint32 gadget_state = 2;
bool is_enable_interact = 3;
}

View File

@@ -0,0 +1,8 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message SelectWorktopOptionReq {
uint32 gadget_entity_id = 1;
uint32 option_id = 2;
}

View File

@@ -0,0 +1,9 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message SelectWorktopOptionRsp {
int32 retcode = 1;
uint32 gadget_entity_id = 2;
uint32 option_id = 3;
}

View File

@@ -0,0 +1,8 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message StrengthenPointData {
uint32 base_point = 1;
uint32 cur_point = 2;
}

View File

@@ -0,0 +1,8 @@
syntax = "proto3";
option java_package = "emu.grasscutter.net.proto";
message WorktopOptionNotify {
uint32 gadget_entity_id = 1;
repeated uint32 option_list = 2;
}