Skip to content

Commit ac5c178

Browse files
author
magiclu550
committed
[JSMOD@2_471_COMMIT] Set/GetPacket -> *MapPacket
1 parent 2266d1c commit ac5c178

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

JSMod2Protocol/src/main/java/cn/jsmod2/network/protocol/map/map/GetBlastDoorPointsPacket.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import cn.jsmod2.api.team.Role;
44
import cn.jsmod2.core.math.Vector;
55

6+
import java.util.List;
7+
68
public class GetBlastDoorPointsPacket extends GetMapPacket {
79

810
public Role role;
@@ -14,7 +16,7 @@ public GetBlastDoorPointsPacket(){
1416
}
1517

1618
@Override
17-
public Object send() {
18-
return requester.with("role",role).to();
19+
public List send() {
20+
return requester.with("role",role).get().getArray();
1921
}
2022
}
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
package cn.jsmod2.network.protocol.map.map;
22

3-
public class GetElevatorsPacket {
3+
import cn.jsmod2.api.map.Elevator;
4+
5+
public class GetElevatorsPacket extends GetMapPacket {
6+
7+
8+
public static final int ID = 153;
9+
10+
public GetElevatorsPacket() {
11+
super(ID, Elevator.class);
12+
}
13+
14+
@Override
15+
public Object send() {
16+
return null;
17+
}
418
}

0 commit comments

Comments
 (0)