ClanSoft logo
ClanSoft logo

    CL_Res_Boolean

The Boolean resource is used to read boolean values from a resource file.

Parents: public CL_ResourceType

Description

CL_Res_Boolean, CL_Res_Integer and CL_Res_String helps you with seperating the game code from the constants used in the game.

Using these resource types, you can easily change the text used in the game. Just by changing the resource file, you can make you game speak Danish (or Dutch), or any other language. You can change the constants like weapon damage, movement speed, and so on.

These resources can also be used to apply theme support into your application. By letting each theme become a datafile, you can give the player full control of the visual parts of the game - and without using much work on it yourself.

Class members

static bool load(
        std::string res_id,
        CL_ResourceManager *manager,
        bool _default)
static bool load( std::string res_id, CL_ResourceManager *manager )
CL_Res_Boolean()

See Also

None


Back to index



This page was built using the Perceps documentation system.