DungeonMasterEngine.GameConsoleContent.SpellCommand.Run C# (CSharp) Method

Run() public method

public Run ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public override async Task Run()
        {
            var theron = ConsoleContext.AppContext.Theron;
            var spellFactory = symbolParser.ParseSpell(Parameters);
            if (spellFactory != null)
                spellFactory.CastSpell(theron.Location, theron.MapDirection).Run();
            else
                Output.WriteLine("Invalid spell symbols.");

            await Task.CompletedTask;
        }
    }