| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- namespace BansheeEngine
- {
- /** @addtogroup Utility-Engine
- * @{
- */
- /**
- * Helper class used for constructing HString%s that references the engine string table. Engine string table is just
- * a separate string table so it doesn't conflict with the game string table.
- */
- class BS_EXPORT HEString
- {
- public:
- /**
- * Creates a new localized string with the specified identifier in the engine string table. If the identifier
- * doesn't previously exist in the string table, identifier value will also be used for initializing the default
- * language version of the string.
- *
- * @param[in] identifier String you can use for later referencing the localized string.
- */
- HEString(const WString& identifier);
- /**
- * Creates a new localized string with the specified identifier in the engine string table and sets the default
- * language version of the string. If a string with that identifier already exists default language string will be
- * updated.
- *
- * @param[in] identifier String you can use for later referencing the localized string.
- * @param[in] default Default string to assign to the specified identifier. Language to which it
- * will be assigned depends on the StringTable::DEFAULT_LANGUAGE value.
- */
- HEString(const WString& identifier, const WString& default);
- /** Creates a new empty localized string in the engine string table. */
- HEString();
- /** Implicitly casts the editor string type to a generic string type. */
- operator HString() const;
- private:
- static const UINT32 ENGINE_STRING_TABLE_ID;
- HString mInternal;
- };
- /** @} */
- }
|