Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
Public Member Functions

ConfigManager Class Reference

The config manager is designed to contain the list of the mode and their information. More...

#include <header.hpp>

List of all members.

Public Member Functions

ModeInfo GetModeInfo (string idName)
 Get information about mode idName.
ModeInfo GetModeInfo (number id)
 Get information about mode number id.
string GetCurrentModeId ()
 Get the current mode id.
ConfigNode GetRootConfigNode ()
 Get the root ConfigNode for the current mode.
number GetModeCount ()
 Return the number of mode.
ConfigNode GetGlobalConfigNode ()
 Get the global ConfigNode (Configuration shared between every mode)
nil InitLocales (string path)
 Init the locales.

Detailed Description

The config manager is designed to contain the list of the mode and their information.

It also contain the configuration node shared between all mode. Textdomain sould be bottle2d !


Member Function Documentation

string ConfigManager::GetCurrentModeId ( )

Get the current mode id.

ConfigNode ConfigManager::GetGlobalConfigNode ( )

Get the global ConfigNode (Configuration shared between every mode)

number ConfigManager::GetModeCount ( )

Return the number of mode.

ModeInfo ConfigManager::GetModeInfo ( number  id)

Get information about mode number id.

ModeInfo ConfigManager::GetModeInfo ( string  idName)

Get information about mode idName.

ConfigNode ConfigManager::GetRootConfigNode ( )

Get the root ConfigNode for the current mode.

nil ConfigManager::InitLocales ( string  path)

Init the locales.

Path should contain the language dir (like en, fr...). Usualy, Path is "<ModePath>/local/"


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables