Cafu Engine
GameConfigT Class Reference

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_)
 
EditorMatManTGetMatMan ()
 
const EditorMatManTGetMatMan () const
 
ModelManagerTGetModelMan ()
 
const CafuModelTGetModel (const wxString &FileName, wxString *ErrorMsg=NULL) const
 Returns the model for the given FileName that is relative to ModDir. More...
 
cf::GuiSys::GuiResourcesTGetGuiResources ()
 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
 

Detailed Description

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.

Member Function Documentation

cf::GuiSys::GuiResourcesT& GameConfigT::GetGuiResources ( )
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.


The documentation for this class was generated from the following files: