コード例 #1
0
        public Quest(Player ladyOfTheLakeHolder, int teamSize, int requiredFails)
        {
            QuestSize = teamSize;
            RequiredFails = requiredFails;

            if (ladyOfTheLakeHolder != null)
            {
                LadyOfTheLake = new LadyOfTheLakeUse { Holder = ladyOfTheLakeHolder };
            }

            VoteTracks = new List<VoteTrack>();
        }
コード例 #2
0
 public LadyOfTheLakeUseModel(LadyOfTheLakeUse use, Player player)
 {
     UsedBy = use.Holder.Name;
     UsedOn = use.Target == null ? string.Empty : use.Target.Name;
     if (player == use.Holder)
     {
         Result = use.IsEvil ? "evil" : "good";
     }
     else
     {
         Result = "allegiance";
     }
 }