예제 #1
0
 /// <summary>
 /// Writes the <see cref="Mortar.Core.Attributes.ConsoleHelp"/> of the passed <see cref="IEvent"/> to the in-game console output.
 /// </summary>
 /// <param name="e"><see cref="IEvent"/> to promt console help for.</param>
 private void PromptCommandHelp(IEvent e)
 {
     if(e.HasCustomAttribute<ConsoleHelp>())
     {
         ConsoleHelp consoleHelp = e.GetAttribute<ConsoleHelp>();
         WriteLine(string.Format("Example: {0}", consoleHelp.Text));
     }
 }