blob: 09d08f5e87bc5a11b0492a0b8d105c4eb522a7bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package NET.worlds.network;
import java.io.IOException;
public class PropertyUpdateCmd extends receivedNetPacket {
public static final byte PROPUPDCMD = 16;
protected PropertyList _propList;
public PropertyUpdateCmd() {
this._commandType = 16;
}
@Override
void parseNetData(ServerInputStream data) throws IOException {
this._propList = new PropertyList();
this._propList.parseNetData(data);
}
@Override
void process(WorldServer _serv) throws Exception {
NetworkObject o = _serv.getObject(this._objID);
if (o != null) {
o.propertyUpdate(this._propList);
} else if ((Galaxy.getDebugLevel() & 32) != 0) {
System.err.println("PropertyUpdateCmd.process() status: message dropped because destination object is null");
}
}
@Override
public String toString(WorldServer serv) {
return "PROPUPD " + this._objID.toString(serv) + " " + this._propList;
}
}
|