RemovePlayerMessage is empty (#142)

This commit is contained in:
Paul Pacheco 2018-12-08 03:55:00 -06:00 committed by vis2k
parent 8ce2489df0
commit 56007f3c8b
3 changed files with 1 additions and 5 deletions

View File

@ -140,7 +140,7 @@ public override void Serialize(NetworkWriter writer)
} }
} }
public class RemovePlayerMessage : MessageBase public class RemovePlayerMessage : EmptyMessage
{ {
} }

View File

@ -588,8 +588,6 @@ internal void OnServerRemovePlayerMessageInternal(NetworkMessage netMsg)
{ {
if (LogFilter.Debug) { Debug.Log("NetworkManager:OnServerRemovePlayerMessageInternal"); } if (LogFilter.Debug) { Debug.Log("NetworkManager:OnServerRemovePlayerMessageInternal"); }
RemovePlayerMessage msg = netMsg.ReadMessage<RemovePlayerMessage>();
if (netMsg.conn.playerController != null) if (netMsg.conn.playerController != null)
{ {
OnServerRemovePlayer(netMsg.conn, netMsg.conn.playerController); OnServerRemovePlayer(netMsg.conn, netMsg.conn.playerController);

View File

@ -861,8 +861,6 @@ static void OnClientReadyMessage(NetworkMessage netMsg)
// default remove player handler // default remove player handler
static void OnRemovePlayerMessage(NetworkMessage netMsg) static void OnRemovePlayerMessage(NetworkMessage netMsg)
{ {
RemovePlayerMessage msg = netMsg.ReadMessage<RemovePlayerMessage>();
if (netMsg.conn.playerController != null) if (netMsg.conn.playerController != null)
{ {
netMsg.conn.RemovePlayerController(); netMsg.conn.RemovePlayerController();