X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fcommand.qh;h=26308b89db807514f60b36ea236b14ccbc32fd9c;hb=7e5268799e95d0dd6f2b77ed4e097b0adc755f2b;hp=31909549a68f82d1d39bfc348601961ab1ca8a48;hpb=3ae1efa7401791e42e3171f4db2cc2d38adde088;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/command.qh b/qcsrc/common/command/command.qh index 31909549a..26308b89d 100644 --- a/qcsrc/common/command/command.qh +++ b/qcsrc/common/command/command.qh @@ -1,13 +1,13 @@ -#ifndef COMMAND_H -#define COMMAND_H +#pragma once 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(int request, int arguments, string command)) { } + 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) - -#endif