ConsoleMethodAttribute.cs 680 B

1234567891011121314151617181920212223
  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. private string[] m_parameterNames;
  10. public string Command { get { return m_command; } }
  11. public string Description { get { return m_description; } }
  12. public string[] ParameterNames { get { return m_parameterNames; } }
  13. public ConsoleMethodAttribute( string command, string description, params string[] parameterNames )
  14. {
  15. m_command = command;
  16. m_description = description;
  17. m_parameterNames = parameterNames;
  18. }
  19. }
  20. }