The class describes the settings for a game/MOD. More...
#include "GameConfig.hpp"
Classes | |
class | InitErrorT |
Public Member Functions | |
GameConfigT (wxFileConfig &CfgFile, const wxString &Name_, const wxString &ModDir_) | |
EditorMatManT & | GetMatMan () |
const EditorMatManT & | GetMatMan () const |
ModelManagerT & | GetModelMan () |
const CafuModelT * | GetModel (const wxString &FileName, wxString *ErrorMsg=NULL) const |
Returns the model for the given FileName that is relative to ModDir. More... | |
cf::GuiSys::GuiResourcesT & | GetGuiResources () |
All GUIs that are created in this game config (no matter if in the Map Editor, the Gui Editor, or the Model Editor) share their font and model resources via the returned GuiResourcesT instance. More... | |
int | GetMaxMapCoord () const |
int | GetMinMapCoord () const |
BoundingBox3fT | GetMaxMapBB () const |
void | Save (wxFileConfig &CfgFile) const |
Saves this game configuration to CfgFile that has been set to the proper path (directory / group) by the caller. More... | |
Public Attributes | |
const wxString | Name |
const wxString | ModDir |
float | DefaultTextureScale |
float | DefaultLightmapScale |
wxString | CordonTexture |
The class describes the settings for a game/MOD.
Some of the settings are loaded from the CaWE-spefific config file (edited by the user in the main "Configure CaWE" dialog). Other settings are loaded directly from the files and data in the game/MOD directory.
|
inline |
All GUIs that are created in this game config (no matter if in the Map Editor, the Gui Editor, or the Model Editor) share their font and model resources via the returned GuiResourcesT instance.
const CafuModelT * GameConfigT::GetModel | ( | const wxString & | FileName, |
wxString * | ErrorMsg = NULL |
||
) | const |
Returns the model for the given FileName that is relative to ModDir.
void GameConfigT::Save | ( | wxFileConfig & | CfgFile | ) | const |
Saves this game configuration to CfgFile that has been set to the proper path (directory / group) by the caller.