public override IQuestAction CreateNew(string source, Quest parentQuest)
        {
            // Source must match pattern
            Match match = Test(source);

            if (!match.Success)
            {
                return(null);
            }

            // Factory new action
            LegalRepute action = new LegalRepute(parentQuest);

            return(action);
        }
Beispiel #2
0
        public override IQuestAction CreateNew(string source, Quest parentQuest)
        {
            // Source must match pattern
            Match match = Test(source);

            if (!match.Success)
            {
                return(null);
            }

            // Factory new action
            LegalRepute action = new LegalRepute(parentQuest);

            action.amount = Parser.ParseInt(match.Groups["amount"].Value);

            return(action);
        }