blob: 5a567714b26768ab991f6954968befb9493d43ec (
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
|
package NET.worlds.network;
import java.io.IOException;
public class UnsubscribeRoomCmd extends netPacket {
public static final byte UNSUBSCRIBEROOMCMD = 23;
protected int _roomNumber;
public UnsubscribeRoomCmd(int room) {
super(null, 23);
this._roomNumber = (short)room;
}
@Override
int packetSize() {
return 2 + super.packetSize();
}
@Override
void send(ServerOutputStream o) throws IOException {
super.send(o);
o.writeShort(this._roomNumber);
}
@Override
public String toString(WorldServer serv) {
return "UNSUBSCR " + this._roomNumber;
}
}
|