]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/command/command.qh
#pragma once
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / command / command.qh
index fa310fdfc56ca780ff989965d708ff8c8d7739d3..0b3741a06cd2976007bc34dfd38da44d1eab8a0e 100644 (file)
@@ -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, 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)