internal static void GetClientLeftEvent(Server_ServerClient server_ServerClient, ServerCore server)
 {
     var msg = new Message_ServerCommand_PlayerLeft(server_ServerClient.info.GUID);
     server.messageSender.SendToAll(msg,server.clientManager.GetClients());
 }
 public void ClientLeft(Server_ServerClient server_ServerClient, ServerCore serverCore)
 {
     clientLeftEvent.Invoke(server_ServerClient, serverCore);
 }
 public void Execute(Type msgType, object data, Server_ServerClient client)
 {
     commands[msgType].Handle(data, client);
 }
示例#4
0
        private void SendResultMessage(Server_ServerClient client, PlayerScore playerScore, bool won)
        {
            Message_Update_MatchFinished msg = new Message_Update_MatchFinished(won, playerScore);

            server.messageSender.Send(msg, client);
        }
示例#5
0
 public void Handle(object objData, Server_ServerClient client)
 {
     manager.RemoveClient(client);
     matchMaker.RemoveClient(client);
 }