コード例 #1
0
 public SerializableRoundParticipant(IRoundParticipant participant)
 {
     Player = new Player {
         Id = participant.Player.Id, Name = participant.Player.Name
     };
     IsImposter   = participant.IsImposter;
     Answer       = participant.Answer;
     Accusation   = participant.Accusation != null ? new Accusation(participant.Accusation.PlayerId, participant.Accusation.PlayerName, participant.Accusation.Wager) : null;
     ScoredPoints = participant.ScoredPoints;
 }
コード例 #2
0
 public AccusationStatisticsParticipant(IRoundParticipant participant, IEnumerable <string> accusedByNames)
 {
     Participant    = participant;
     AccusedByNames = accusedByNames;
 }
コード例 #3
0
 public Accusation(IRoundParticipant participant, int wager)
 {
     PlayerId   = participant.Player.Id;
     PlayerName = participant.Player.Name;
     Wager      = wager;
 }