Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CObjectManager Class Reference

#include <ObjectManager.h>

Classes

struct  ObjectKey
 

Public Member Functions

 CObjectManager (CMeshManager &meshManager, CSkeletonAnimManager &skeletonAnimManager, CSimulation2 &simulation)
 
 ~CObjectManager ()
 
CMeshManagerGetMeshManager () const
 
CSkeletonAnimManagerGetSkeletonAnimManager () const
 
void UnloadObjects ()
 
CObjectEntryFindObject (const CStrW &objname)
 
void DeleteObject (CObjectEntry *entry)
 
CObjectBaseFindObjectBase (const CStrW &objname)
 
CObjectEntryFindObjectVariation (const CStrW &objname, const std::vector< std::set< CStr > > &selections)
 
CObjectEntryFindObjectVariation (CObjectBase *base, const std::vector< std::set< CStr > > &selections)
 
CTerrainGetTerrain ()
 Get the terrain object that actors managed by this manager should be linked with (primarily for the purpose of decals) More...
 
Status ReloadChangedFile (const VfsPath &path)
 Reload any scripts that were loaded from the given filename. More...
 

Private Member Functions

 NONCOPYABLE (CObjectManager)
 

Private Attributes

CMeshManagerm_MeshManager
 
CSkeletonAnimManagerm_SkeletonAnimManager
 
CSimulation2m_Simulation
 
std::map< ObjectKey,
CObjectEntry * > 
m_Objects
 
std::map< CStrW, CObjectBase * > m_ObjectBases
 

Detailed Description

Definition at line 37 of file ObjectManager.h.

Constructor & Destructor Documentation

CObjectManager::CObjectManager ( CMeshManager meshManager,
CSkeletonAnimManager skeletonAnimManager,
CSimulation2 simulation 
)

Definition at line 61 of file ObjectManager.cpp.

CObjectManager::~CObjectManager ( )

Definition at line 67 of file ObjectManager.cpp.

Member Function Documentation

void CObjectManager::DeleteObject ( CObjectEntry entry)

Definition at line 167 of file ObjectManager.cpp.

CObjectEntry * CObjectManager::FindObject ( const CStrW &  objname)

Definition at line 104 of file ObjectManager.cpp.

CObjectBase * CObjectManager::FindObjectBase ( const CStrW &  objname)

Definition at line 75 of file ObjectManager.cpp.

CObjectEntry * CObjectManager::FindObjectVariation ( const CStrW &  objname,
const std::vector< std::set< CStr > > &  selections 
)

Definition at line 110 of file ObjectManager.cpp.

CObjectEntry * CObjectManager::FindObjectVariation ( CObjectBase base,
const std::vector< std::set< CStr > > &  selections 
)

Definition at line 120 of file ObjectManager.cpp.

CMeshManager& CObjectManager::GetMeshManager ( ) const
inline

Definition at line 63 of file ObjectManager.h.

CSkeletonAnimManager& CObjectManager::GetSkeletonAnimManager ( ) const
inline

Definition at line 64 of file ObjectManager.h.

CTerrain * CObjectManager::GetTerrain ( )

Get the terrain object that actors managed by this manager should be linked with (primarily for the purpose of decals)

Definition at line 159 of file ObjectManager.cpp.

CObjectManager::NONCOPYABLE ( CObjectManager  )
private
Status CObjectManager::ReloadChangedFile ( const VfsPath path)

Reload any scripts that were loaded from the given filename.

(This is used to implement hotloading.)

Definition at line 194 of file ObjectManager.cpp.

void CObjectManager::UnloadObjects ( )

Definition at line 177 of file ObjectManager.cpp.

Member Data Documentation

CMeshManager& CObjectManager::m_MeshManager
private

Definition at line 89 of file ObjectManager.h.

std::map<CStrW, CObjectBase*> CObjectManager::m_ObjectBases
private

Definition at line 94 of file ObjectManager.h.

std::map<ObjectKey, CObjectEntry*> CObjectManager::m_Objects
private

Definition at line 93 of file ObjectManager.h.

CSimulation2& CObjectManager::m_Simulation
private

Definition at line 91 of file ObjectManager.h.

CSkeletonAnimManager& CObjectManager::m_SkeletonAnimManager
private

Definition at line 90 of file ObjectManager.h.


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