mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 03:58:29 +00:00
- code refactoring
- made more and more easily extensible: * commands automatically loaded from plugins dlls * declarative and automatic command parameter parsing * common code moved to base classes - other fixes svn path=/trunk/; revision=33344
This commit is contained in:
parent
e3407fdd9c
commit
d7b2077ed8
42 changed files with 2263 additions and 1689 deletions
35
irc/TechBot/TechBot.Library/Attributes/CommandAttribute.cs
Normal file
35
irc/TechBot/TechBot.Library/Attributes/CommandAttribute.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TechBot.Library
|
||||
{
|
||||
public class CommandAttribute : Attribute
|
||||
{
|
||||
private string m_Name = null;
|
||||
private string m_Help = "No help for this command is available";
|
||||
private string m_Desc = "No description for this command is available";
|
||||
|
||||
public CommandAttribute(string name)
|
||||
{
|
||||
m_Name = name;
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return m_Name; }
|
||||
}
|
||||
|
||||
public string Help
|
||||
{
|
||||
get { return m_Help; }
|
||||
set { m_Help = value; }
|
||||
}
|
||||
|
||||
public string Description
|
||||
{
|
||||
get { return m_Desc; }
|
||||
set { m_Desc = value; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue