forked from Grasscutters/Grasscutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Grasscutters#355 from Grasscutters/dungeon-scripts
Implemented Dungeon Support
- Loading branch information
Showing
71 changed files
with
2,179 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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; | ||
uint32 unk1 = 7; | ||
uint32 unk2 = 8; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
import "ParamList.proto"; | ||
import "StrengthenPointData.proto"; | ||
|
||
message DungeonSettleNotify { | ||
uint32 dungeon_id = 1; | ||
bool is_success = 2; | ||
repeated uint32 fail_cond_list = 3; | ||
map<uint32, ParamList> settle_show = 4; | ||
uint32 close_time = 5; | ||
map<uint32, StrengthenPointData> strengthen_point_data_map = 6; | ||
uint32 result = 7; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message ParamList { | ||
repeated uint32 param_list_ = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message PlayerEnterDungeonReq { | ||
uint32 point_id = 1; | ||
uint32 dungeon_id = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message PlayerEnterDungeonRsp { | ||
int32 retcode = 1; | ||
uint32 point_id = 2; | ||
uint32 dungeon_id = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message PlayerQuitDungeonReq { | ||
uint32 point_id = 1; | ||
bool is_quit_immediately = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message PlayerQuitDungeonRsp { | ||
int32 retcode = 1; | ||
uint32 point_id = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message SelectWorktopOptionReq { | ||
uint32 gadget_entity_id = 1; | ||
uint32 option_id = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message StrengthenPointData { | ||
uint32 base_point = 1; | ||
uint32 cur_point = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,30 @@ | ||
package emu.grasscutter.data.common; | ||
|
||
public class PointData { | ||
private pos tranPos; | ||
import emu.grasscutter.utils.Position; | ||
|
||
public pos getTranPos() { | ||
public class PointData { | ||
private int id; | ||
private String $type; | ||
private Position tranPos; | ||
private int[] dungeonIds; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getType() { | ||
return $type; | ||
} | ||
|
||
public Position getTranPos() { | ||
return tranPos; | ||
} | ||
|
||
public void setTranPos(pos tranPos) { | ||
this.tranPos = tranPos; | ||
} | ||
|
||
public class pos { | ||
private float x; | ||
private float y; | ||
private float z; | ||
|
||
public float getX() { | ||
return x; | ||
} | ||
|
||
public void setX(float x) { | ||
this.x = x; | ||
} | ||
|
||
public float getY() { | ||
return y; | ||
} | ||
|
||
public void setY(float y) { | ||
this.y = y; | ||
} | ||
|
||
public float getZ() { | ||
return z; | ||
} | ||
|
||
public void setZ(float z) { | ||
this.z = z; | ||
} | ||
} | ||
public int[] getDungeonIds() { | ||
return dungeonIds; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package emu.grasscutter.data.def; | ||
|
||
import emu.grasscutter.data.GameData; | ||
import emu.grasscutter.data.GameResource; | ||
import emu.grasscutter.data.ResourceType; | ||
|
||
import emu.grasscutter.game.props.SceneType; | ||
|
||
@ResourceType(name = "DungeonExcelConfigData.json") | ||
public class DungeonData extends GameResource { | ||
private int Id; | ||
private int SceneId; | ||
private int ShowLevel; | ||
private String InvolveType; // TODO enum | ||
|
||
@Override | ||
public int getId() { | ||
return this.Id; | ||
} | ||
|
||
public int getSceneId() { | ||
return SceneId; | ||
} | ||
|
||
public int getShowLevel() { | ||
return ShowLevel; | ||
} | ||
|
||
@Override | ||
public void onLoad() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.