summaryrefslogtreecommitdiffstats
path: root/src/common/restext.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-19 22:53:06 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-19 22:53:06 +0200
commit7479f486b671acb2a6aea2c84a56b383aaba00ca (patch)
tree4043545a14234dfaa2d7d08d59c7ee9ee97f0de9 /src/common/restext.h
parent901f10b2bac18a2063cd21798f22b3917e8519b5 (diff)
parent57d33d79ea570773d84ad81d4a61f50e079979ef (diff)
downloadcolobot-7479f486b671acb2a6aea2c84a56b383aaba00ca.tar.gz
colobot-7479f486b671acb2a6aea2c84a56b383aaba00ca.tar.bz2
colobot-7479f486b671acb2a6aea2c84a56b383aaba00ca.zip
Forgotten fix in dev-graphics
Diffstat (limited to 'src/common/restext.h')
-rw-r--r--src/common/restext.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/common/restext.h b/src/common/restext.h
index 624803b..6abb7f5 100644
--- a/src/common/restext.h
+++ b/src/common/restext.h
@@ -14,32 +14,36 @@
// * You should have received a copy of the GNU General Public License
// * along with this program. If not, see http://www.gnu.org/licenses/.
-// restext.h
+/**
+ * \file common/restext.h
+ * \brief Translation and string resource utilities
+ */
#pragma once
+#include "common/global.h"
#include "common/restext_ids.h"
-
-class CD3DEngine;
-
-// Possible types of the text resources.
-
+/**
+ * \enum ResType
+ * \brief Types of text resources
+ */
enum ResType
{
- RES_TEXT = 0, // RT_*
- RES_EVENT = 1, // EVENT_* (EventMsg)
- RES_OBJECT = 2, // OBJECT_* (ObjectType)
- RES_ERR = 3, // ERR_* (Error)
- RES_KEY = 4, // VK_* (keys)
- RES_CBOT = 5, // TX_* (cbot.dll)
+ RES_TEXT = 0, //! < RT_*
+ RES_EVENT = 1, //! < EVENT_* (EventMsg)
+ RES_OBJECT = 2, //! < OBJECT_* (ObjectType)
+ RES_ERR = 3, //! < ERR_* (Error)
+ RES_KEY = 4, //! < KEY() (keys)
+ RES_CBOT = 5, //! < TX_* (CBot)
};
-extern void SetEngine(CD3DEngine *engine);
+// TODO: move to CRobotMain
+
extern void SetGlobalGamerName(char *name);
-extern bool SearchKey(char *cmd, KeyRank &key);
+extern bool SearchKey(const char *cmd, InputSlot& slot);
extern bool GetResource(ResType type, int num, char* text);
extern const char * const strings_text[];