Crossfire Server, Trunk
R21670
|
#include <ScriptFileManager.h>
Public Member Functions | |
ScriptFile * | getFile (const QString &path) |
void | removeMap (CREMapInformation *map) |
ScriptFileManager () | |
QList< ScriptFile * > | scripts () const |
QList< ScriptFile * > | scriptsForMap (CREMapInformation *map) |
virtual | ~ScriptFileManager () |
Private Attributes | |
QHash< QString, ScriptFile * > | myScripts |
Manage scripts for items.
Definition at line 10 of file ScriptFileManager.h.
ScriptFileManager::ScriptFileManager | ( | ) |
Definition at line 4 of file ScriptFileManager.cpp.
|
virtual |
Definition at line 8 of file ScriptFileManager.cpp.
References myScripts.
ScriptFile * ScriptFileManager::getFile | ( | const QString & | path | ) |
Get information about a script path.
path | full script path. |
Definition at line 26 of file ScriptFileManager.cpp.
References myScripts.
Referenced by CREMapInformationManager::checkEvent(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().
void ScriptFileManager::removeMap | ( | CREMapInformation * | map | ) |
Remove scripts linked to a map.
map | map to remove scripts of. |
Definition at line 35 of file ScriptFileManager.cpp.
References myScripts.
Referenced by CREMapInformationManager::process().
QList< ScriptFile * > ScriptFileManager::scripts | ( | ) | const |
Definition at line 53 of file ScriptFileManager.cpp.
References myScripts.
Referenced by CREResourcesWindow::fillScripts().
QList< ScriptFile * > ScriptFileManager::scriptsForMap | ( | CREMapInformation * | map | ) |
Definition at line 13 of file ScriptFileManager.cpp.
References ScriptFile::forMap(), and myScripts.
Referenced by CREMapPanel::setItem(), and CREMapInformationManager::storeCache().
|
private |
Definition at line 34 of file ScriptFileManager.h.
Referenced by getFile(), removeMap(), scripts(), scriptsForMap(), and ~ScriptFileManager().