ConsoleMethodAttribute.cs 503 B

1234567891011121314151617181920
  1. using System;
  2. namespace IngameDebugConsole
  3. {
  4. [AttributeUsage( AttributeTargets.Method, Inherited = false, AllowMultiple = true )]
  5. public class ConsoleMethodAttribute : Attribute
  6. {
  7. private string m_command;
  8. private string m_description;
  9. public string Command { get { return m_command; } }
  10. public string Description { get { return m_description; } }
  11. public ConsoleMethodAttribute( string command, string description )
  12. {
  13. m_command = command;
  14. m_description = description;
  15. }
  16. }
  17. }