1
0
Fork 0
This repository has been archived on 2024-01-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
First-2D-Game-UDP/First Game Engine Project/src/mrdev023/network/packet/ClientDisconnect.java
Florian Richer (MrDev023) a00f214911 Add Network
2015-12-25 13:29:35 +01:00

31 lines
651 B
Java

package mrdev023.network.packet;
import java.net.*;
import mrdev023.network.common.*;
import mrdev023.network.packet.main.*;
public class ClientDisconnect implements IPacket{
public String pseudo;
public ClientDisconnect(){}
public ClientDisconnect(String pseudo){this.pseudo = pseudo;}
public void write(DataBuffer buff) throws Exception {
buff.put(pseudo);
}
public void read(DataBuffer buff) throws Exception {
this.pseudo = buff.getString();
}
public void manage(Client client, IPacket packet) throws Exception {
}
public void manage(Client client, IPacket packet, DatagramSocket server) throws Exception {
}
}