コード例 #1
0
 public override void Cleanup()
 {
     base.Cleanup();
     if (leaveOnCleanup)
     {
         LeaveQuestPartUtility.MakePawnsLeave(pawns, sendStandardLetter, quest);
     }
 }
コード例 #2
0
 public override void Notify_QuestSignalReceived(Signal signal)
 {
     base.Notify_QuestSignalReceived(signal);
     if (signal.tag == inSignal)
     {
         LeaveQuestPartUtility.MakePawnsLeave(pawns, sendStandardLetter, quest);
     }
 }
コード例 #3
0
 private void LeavePlayer()
 {
     for (int i = 0; i < pawns.Count; i++)
     {
         pawns[i].SetFaction(faction);
     }
     LeaveQuestPartUtility.MakePawnsLeave(pawns, sendLetter: false, quest);
     Complete();
 }
コード例 #4
0
 public override void Notify_QuestSignalReceived(Signal signal)
 {
     base.Notify_QuestSignalReceived(signal);
     if (signal.tag == inSignalRemovePawn && signal.args.TryGetArg("SUBJECT", out Pawn arg) && pawns.Contains(arg))
     {
         pawns.Remove(arg);
     }
     if (signal.tag == inSignal)
     {
         LeaveQuestPartUtility.MakePawnsLeave(pawns, sendStandardLetter, quest);
     }
 }