Ejemplo n.º 1
0
        private static void ClientProcessPlayerStatusChange(Entry entry, bool isOnline)
        {
            var isChanged = isOnline
                                ? ClientOnlinePlayersList.Add(entry)
                                : ClientOnlinePlayersList.Remove(entry);

            if (isChanged)
            {
                ClientPlayerAddedOrRemoved?.Invoke(entry, isOnline);
                ClientOnlinePlayersCountChanged?.Invoke(ClientOnlinePlayersCount);
            }
        }
Ejemplo n.º 2
0
 private void ClientRemote_OnlinePlayersCountWhenListHidden(int charactersOnlinePlayersCount)
 {
     clientReceivedOnlinePlayersCountWhenListHidden = charactersOnlinePlayersCount;
     ClientOnlinePlayersCountChanged?.Invoke(ClientOnlinePlayersCount);
 }