Exemplo n.º 1
0
        private void OnPlayersLoggedOff(Error error, Guid[] players)
        {
            if (m_remoteGameServer.IsConnected)
            {
                foreach (Guid player in players)
                {
                    if (m_remoteGameServer.IsLocal(m_gSettings.ClientId, player))
                    {
                        m_notification.ShowError("Player was logged off");

                        Dependencies.RemoteGameServer.CancelRequests();
                        Dependencies.LocalGameServer.CancelRequests();

                        m_navigation.ClearHistory();
                        m_navigation.Navigate("LoginMenu4Players");

                        break;
                    }
                }
            }
        }
Exemplo n.º 2
0
        public bool IsLocalPlayer(int index)
        {
            Player player = m_players[index];

            return(m_gameServer.IsLocal(m_gSettings.ClientId, player.Id));
        }