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#2 from Grasscutters/development
Development
- Loading branch information
Showing
36 changed files
with
1,181 additions
and
337 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message TowerBuffSelectReq { | ||
enum CmdId { | ||
option allow_alias = true; | ||
ENET_CHANNEL_ID = 0; | ||
NONE = 0; | ||
ENET_IS_RELIABLE = 1; | ||
IS_ALLOW_CLIENT = 1; | ||
CMD_ID = 2424; | ||
} | ||
|
||
uint32 tower_buff_id = 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,16 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message TowerBuffSelectRsp { | ||
enum CmdId { | ||
option allow_alias = true; | ||
NONE = 0; | ||
ENET_CHANNEL_ID = 0; | ||
ENET_IS_RELIABLE = 1; | ||
CMD_ID = 2491; | ||
} | ||
|
||
int32 retcode = 1; | ||
uint32 tower_buff_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,17 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
import "TowerCurLevelRecord.proto"; | ||
|
||
message TowerCurLevelRecordChangeNotify { | ||
enum CmdId { | ||
option allow_alias = true; | ||
NONE = 0; | ||
ENET_CHANNEL_ID = 0; | ||
ENET_IS_RELIABLE = 1; | ||
CMD_ID = 2489; | ||
} | ||
|
||
TowerCurLevelRecord cur_level_record = 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,16 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message TowerEnterLevelReq { | ||
enum CmdId { | ||
option allow_alias = true; | ||
ENET_CHANNEL_ID = 0; | ||
NONE = 0; | ||
ENET_IS_RELIABLE = 1; | ||
IS_ALLOW_CLIENT = 1; | ||
CMD_ID = 2412; | ||
} | ||
|
||
uint32 enter_point_id = 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,18 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message TowerEnterLevelRsp { | ||
enum CmdId { | ||
option allow_alias = true; | ||
NONE = 0; | ||
ENET_CHANNEL_ID = 0; | ||
ENET_IS_RELIABLE = 1; | ||
CMD_ID = 2426; | ||
} | ||
|
||
int32 retcode = 1; | ||
uint32 floor_id = 2; | ||
uint32 level_index = 3; | ||
repeated uint32 tower_buff_id_list = 4; | ||
} |
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 TowerLevelStarCondData { | ||
uint32 star_cond_index = 3; | ||
uint32 cond_value = 4; | ||
bool is_pause = 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,19 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
import "TowerLevelStarCondData.proto"; | ||
|
||
message TowerLevelStarCondNotify { | ||
enum CmdId { | ||
option allow_alias = true; | ||
NONE = 0; | ||
ENET_CHANNEL_ID = 0; | ||
ENET_IS_RELIABLE = 1; | ||
CMD_ID = 2492; | ||
} | ||
|
||
uint32 floor_id = 1; | ||
uint32 level_index = 2; | ||
repeated TowerLevelStarCondData cond_data_list = 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,19 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
import "TowerTeam.proto"; | ||
|
||
message TowerTeamSelectReq { | ||
enum CmdId { | ||
option allow_alias = true; | ||
ENET_CHANNEL_ID = 0; | ||
NONE = 0; | ||
ENET_IS_RELIABLE = 1; | ||
IS_ALLOW_CLIENT = 1; | ||
CMD_ID = 2401; | ||
} | ||
|
||
uint32 floor_id = 1; | ||
repeated TowerTeam tower_team_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "emu.grasscutter.net.proto"; | ||
|
||
message TowerTeamSelectRsp { | ||
enum CmdId { | ||
option allow_alias = true; | ||
NONE = 0; | ||
ENET_CHANNEL_ID = 0; | ||
ENET_IS_RELIABLE = 1; | ||
CMD_ID = 2494; | ||
} | ||
|
||
int32 retcode = 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,15 @@ | ||
syntax = "proto3"; | ||
option csharp_namespace = "YSFreedom.Common.Protocol"; | ||
|
||
|
||
message WorldPlayerReviveReq { | ||
enum CmdId { | ||
option allow_alias = true; | ||
ENET_CHANNEL_ID = 0; | ||
NONE = 0; | ||
ENET_IS_RELIABLE = 1; | ||
IS_ALLOW_CLIENT = 1; | ||
CMD_ID = 288; | ||
} | ||
|
||
} |
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
73 changes: 73 additions & 0 deletions
73
src/main/java/emu/grasscutter/data/def/TowerFloorData.java
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,73 @@ | ||
package emu.grasscutter.data.def; | ||
|
||
import emu.grasscutter.data.GameResource; | ||
import emu.grasscutter.data.ResourceType; | ||
|
||
@ResourceType(name = "TowerFloorExcelConfigData.json") | ||
public class TowerFloorData extends GameResource { | ||
|
||
private int FloorId; | ||
private int FloorIndex; | ||
private int LevelId; | ||
private int OverrideMonsterLevel; | ||
private int TeamNum; | ||
private int FloorLevelConfigId; | ||
|
||
@Override | ||
public int getId() { | ||
return this.FloorId; | ||
} | ||
|
||
@Override | ||
public void onLoad() { | ||
super.onLoad(); | ||
} | ||
|
||
public int getFloorId() { | ||
return FloorId; | ||
} | ||
|
||
public void setFloorId(int floorId) { | ||
FloorId = floorId; | ||
} | ||
|
||
public int getFloorIndex() { | ||
return FloorIndex; | ||
} | ||
|
||
public void setFloorIndex(int floorIndex) { | ||
FloorIndex = floorIndex; | ||
} | ||
|
||
public int getLevelId() { | ||
return LevelId; | ||
} | ||
|
||
public void setLevelId(int levelId) { | ||
LevelId = levelId; | ||
} | ||
|
||
public int getOverrideMonsterLevel() { | ||
return OverrideMonsterLevel; | ||
} | ||
|
||
public void setOverrideMonsterLevel(int overrideMonsterLevel) { | ||
OverrideMonsterLevel = overrideMonsterLevel; | ||
} | ||
|
||
public int getTeamNum() { | ||
return TeamNum; | ||
} | ||
|
||
public void setTeamNum(int teamNum) { | ||
TeamNum = teamNum; | ||
} | ||
|
||
public int getFloorLevelConfigId() { | ||
return FloorLevelConfigId; | ||
} | ||
|
||
public void setFloorLevelConfigId(int floorLevelConfigId) { | ||
FloorLevelConfigId = floorLevelConfigId; | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
src/main/java/emu/grasscutter/data/def/TowerLevelData.java
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,55 @@ | ||
package emu.grasscutter.data.def; | ||
|
||
import emu.grasscutter.data.GameResource; | ||
import emu.grasscutter.data.ResourceType; | ||
|
||
@ResourceType(name = "TowerLevelExcelConfigData.json") | ||
public class TowerLevelData extends GameResource { | ||
|
||
private int ID; | ||
private int LevelId; | ||
private int LevelIndex; | ||
private int DungeonId; | ||
|
||
@Override | ||
public int getId() { | ||
return this.ID; | ||
} | ||
|
||
@Override | ||
public void onLoad() { | ||
super.onLoad(); | ||
} | ||
|
||
public int getID() { | ||
return ID; | ||
} | ||
|
||
public void setID(int ID) { | ||
this.ID = ID; | ||
} | ||
|
||
public int getLevelId() { | ||
return LevelId; | ||
} | ||
|
||
public void setLevelId(int levelId) { | ||
LevelId = levelId; | ||
} | ||
|
||
public int getLevelIndex() { | ||
return LevelIndex; | ||
} | ||
|
||
public void setLevelIndex(int levelIndex) { | ||
LevelIndex = levelIndex; | ||
} | ||
|
||
public int getDungeonId() { | ||
return DungeonId; | ||
} | ||
|
||
public void setDungeonId(int dungeonId) { | ||
DungeonId = dungeonId; | ||
} | ||
} |
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
Oops, something went wrong.