Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="voter"></param>
        /// <param name="forWho"></param>
        /// <param name="weight"></param>
        /// <param name="weightType"></param>
        /// <exception cref="ArgumentException">Если голосовавший уже голосовал</exception>
        public void Add(InGamePlayerInfo voter, bool value, int weight, EWeightType weightType)
        {
            HasVotes = true;
            var activity = new BooleanVoteActivity(voter, this, value, weight, weightType);

            Votes.Add(voter.User.Id, activity);
            voter.AddActivity(activity);
        }
 public BooleanVoteActivity(InGamePlayerInfo player, BooleanVote vote, bool value, int weight, EWeightType weightType)
     : base(player)
 {
     Vote       = vote;
     Value      = value;
     Weight     = weight;
     WeightType = weightType;
     Player.EveningVoteActivity = this;
 }