X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fcommand.qh;h=72eaa18dabb3189c7185ced9e66eeb686ddab832;hb=669311cae7c93d70ff08fa2e3dd30cabdd2da8fa;hp=fa310fdfc56ca780ff989965d708ff8c8d7739d3;hpb=b09b7687da385e1cdc51e2f63fb7de4c9f9e12a3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/command.qh b/qcsrc/common/command/command.qh index fa310fdfc..72eaa18da 100644 --- a/qcsrc/common/command/command.qh +++ b/qcsrc/common/command/command.qh @@ -1,12 +1,16 @@ #ifndef COMMAND_H #define COMMAND_H -// ========================================================= -// Shared declarations for all commands, written by Samual -// Last updated: December 13th, 2011 -// ========================================================= - -// identifiers for subfunction requests by the command code structure const int CMD_REQUEST_COMMAND = 1; const int CMD_REQUEST_USAGE = 2; + +CLASS(Command, Object) + ATTRIB(Command, m_name, string, string_null); + ATTRIB(Command, m_description, string, string_null); + METHOD(Command, m_invokecmd, void(Command this, int request, entity caller, int arguments, string command)) + { + TC(Command, this); + } +ENDCLASS(Command) + #endif