diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-09 17:51:10 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-09 17:51:10 +0200 |
commit | efe4f0baddf10124581e4fcb88d55a52838b06a1 (patch) | |
tree | c07882eb005e486abe1dbb03d008f6cca2898fe6 /src/common/restext.h | |
parent | b3d5491af4f953e8d63800897c40d602de9e9305 (diff) | |
download | colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.gz colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.bz2 colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.zip |
Refactoring in src/common
- refactored CInstanceManager and some headers
- removed old headers
Diffstat (limited to 'src/common/restext.h')
-rw-r--r-- | src/common/restext.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/common/restext.h b/src/common/restext.h index 624803b..0dba89a 100644 --- a/src/common/restext.h +++ b/src/common/restext.h @@ -14,30 +14,32 @@ // * 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); extern void SetGlobalGamerName(char *name); extern bool SearchKey(char *cmd, KeyRank &key); extern bool GetResource(ResType type, int num, char* text); |