Add Disconnect to Client and Server
This commit is contained in:
parent
b9aacb530b
commit
da0fa50323
@ -65,6 +65,7 @@
|
||||
<Compile Include="scripts\net\Server.cs" />
|
||||
<Compile Include="scripts\net\syncing\PacketDistributor.cs" />
|
||||
<Compile Include="scripts\net\syncing\ConnectionHandler.cs" />
|
||||
<Compile Include="scripts\util\DisconnectReason.cs" />
|
||||
<Compile Include="scripts\util\Optional.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
@ -38,5 +38,8 @@ namespace Network {
|
||||
GD.print("Connected to " + conn.Name + " at " + conn.Address + ":" + conn.Port);
|
||||
PacketDistributor.AddHandler(ServerConn);
|
||||
}
|
||||
|
||||
public override void Disconnected(Connection conn) {
|
||||
}
|
||||
}
|
||||
}
|
@ -31,5 +31,8 @@ namespace Network {
|
||||
public override void Connected(Connection conn) {
|
||||
GD.print("Someone connected at " + conn.Address + ":" + conn.Port);
|
||||
}
|
||||
|
||||
public override void Disconnected(Connection conn) {
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user