![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <TilesetCache.h>
Public Member Functions | |
| std::shared_ptr< TiledTileset > | GetTileset (const std::string &filepath) |
| void | AddTileset (const std::string &filepath, std::shared_ptr< TiledTileset > tileset) |
| void | Clear () |
| bool | HasTileset (const std::string &filepath) const |
Static Public Member Functions | |
| static TilesetCache & | GetInstance () |
Private Member Functions | |
| TilesetCache ()=default | |
| ~TilesetCache ()=default | |
| TilesetCache (const TilesetCache &)=delete | |
| TilesetCache & | operator= (const TilesetCache &)=delete |
Private Attributes | |
| std::map< std::string, std::shared_ptr< TiledTileset > > | cache_ |
| std::mutex | mutex_ |
Definition at line 20 of file TilesetCache.h.
|
privatedefault |
|
privatedefault |
|
privatedelete |
| void Olympe::Tiled::TilesetCache::AddTileset | ( | const std::string & | filepath, |
| std::shared_ptr< TiledTileset > | tileset | ||
| ) |
Definition at line 44 of file TilesetCache.cpp.
References cache_, GetComponentTypeID_Static(), and mutex_.
Here is the call graph for this function:| void Olympe::Tiled::TilesetCache::Clear | ( | ) |
Definition at line 50 of file TilesetCache.cpp.
References cache_, GetComponentTypeID_Static(), mutex_, and SYSTEM_LOG.
Here is the call graph for this function:
|
static |
Definition at line 12 of file TilesetCache.cpp.
References GetComponentTypeID_Static().
Referenced by Olympe::Tiled::TiledLevelLoader::LoadExternalTileset(), and TilesetManager::LoadTilesets().
Here is the call graph for this function:
Here is the caller graph for this function:| std::shared_ptr< TiledTileset > Olympe::Tiled::TilesetCache::GetTileset | ( | const std::string & | filepath | ) |
Definition at line 18 of file TilesetCache.cpp.
References cache_, GetComponentTypeID_Static(), mutex_, and SYSTEM_LOG.
Referenced by Olympe::Tiled::TiledLevelLoader::LoadExternalTileset(), and TilesetManager::LoadTilesets().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 57 of file TilesetCache.cpp.
References cache_, GetComponentTypeID_Static(), and mutex_.
Here is the call graph for this function:
|
privatedelete |
|
private |
Definition at line 45 of file TilesetCache.h.
Referenced by AddTileset(), Clear(), GetTileset(), and HasTileset().
|
mutableprivate |
Definition at line 46 of file TilesetCache.h.
Referenced by AddTileset(), Clear(), GetTileset(), and HasTileset().