Example #1
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
            MuteNpc action = new MuteNpc(parentQuest);

            return(action);
        }
Example #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
            MuteNpc action = new MuteNpc(parentQuest);

            action.npcSymbol = new Symbol(match.Groups["anNPC"].Value);

            return(action);
        }