public override IQuestAction CreateNew(string source, Quest parentQuest) { // Source must match pattern Match match = Test(source); if (!match.Success) { return(null); } // Factory new action ReputeExceedsDo action = new ReputeExceedsDo(parentQuest); return(action); }
public override IQuestAction CreateNew(string source, Quest parentQuest) { // Source must match pattern Match match = Test(source); if (!match.Success) { return(null); } // Factory new action ReputeExceedsDo action = new ReputeExceedsDo(parentQuest); action.npcSymbol = new Symbol(match.Groups["npcSymbol"].Value); action.taskSymbol = new Symbol(match.Groups["taskSymbol"].Value); action.minReputation = Parser.ParseInt(match.Groups["minReputation"].Value); return(action); }