Ejemplo n.º 1
0
        public void RemoveCommander(long playerId)
        {
            var buckets     = _bucketsGetter.Get();
            var commPlayers = buckets.CommPlayers.Where(x => x.Id != playerId);

            _bucketsSetter.Set(new Buckets(commPlayers, buckets.BestPlayers, buckets.BetterPlayers, buckets.GoodPlayers));
        }
Ejemplo n.º 2
0
        public void AddCommander(IBucketPlayer player)
        {
            var buckets     = _bucketsGetter.Get();
            var commPlayers = buckets.CommPlayers.Where(x => x.Id != player.Id).ToList();

            commPlayers.Add(player);
            _bucketsSetter.Set(new Buckets(commPlayers, buckets.BestPlayers, buckets.BetterPlayers, buckets.GoodPlayers));
        }