X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fcommand.qh;h=26308b89db807514f60b36ea236b14ccbc32fd9c;hp=fa310fdfc56ca780ff989965d708ff8c8d7739d3;hb=HEAD;hpb=853b6160a59c1e6f1b67af9abd43cf98d25b8625 diff --git a/qcsrc/common/command/command.qh b/qcsrc/common/command/command.qh index fa310fdfc5..26308b89db 100644 --- a/qcsrc/common/command/command.qh +++ b/qcsrc/common/command/command.qh @@ -1,12 +1,13 @@ -#ifndef COMMAND_H -#define COMMAND_H +#pragma once -// ========================================================= -// 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; -#endif + +CLASS(Command, Object) + ATTRIB(Command, m_name, string); + ATTRIB(Command, m_description, string); + METHOD(Command, m_invokecmd, void(Command this, int request, entity caller, int arguments, string command)) + { + TC(Command, this); + } +ENDCLASS(Command)