示例#1
0
 public void RemovePart(QuestPart part)
 {
     if (!parts.Contains(part))
     {
         Log.Error("Tried to remove QuestPart which doesn't exist: " + part.ToStringSafe() + ", quest=" + this.ToStringSafe());
         return;
     }
     part.quest = null;
     parts.Remove(part);
 }
示例#2
0
 public void AddPart(QuestPart part)
 {
     if (parts.Contains(part))
     {
         Log.Error("Tried to add the same QuestPart twice: " + part.ToStringSafe() + ", quest=" + this.ToStringSafe());
         return;
     }
     part.quest = this;
     parts.Add(part);
 }