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)); }
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)); }