Make client send stuff

This commit is contained in:
Sofia 2017-11-25 15:30:34 +02:00
parent 2c49aaf4ce
commit 2e1f3e1c16

View File

@ -10,14 +10,10 @@ namespace Network {
private Connection ServerConn;
private PacketBuffer TempBuffer;
private float Timer = 0;
public Client(PacketPeerUDP packetPeer) : base(packetPeer, false) {
PacketPeer = packetPeer;
TempBuffer = PacketBuffer.WithSignature();
TempBuffer.Write(1);
}
public override void Initialize(string address, int port) {
@ -40,6 +36,7 @@ namespace Network {
public override void Connected(Connection conn) {
GD.print("Connected to " + conn.Name + " at " + conn.Address + ":" + conn.Port);
PacketDistributor.AddHandler(ServerConn);
}
}
}