My Project
Public Member Functions | List of all members
AssetManager Class Reference

Class to store all Assets. More...

#include <AssetManager.hpp>

Public Member Functions

 AssetManager (std::string const &assetsFile)
 Construct a new Asset Manager object. More...
 
 AssetManager ()
 Construct a new Asset Manager object.
 
 ~AssetManager ()
 Destroy the Asset Manager object.
 
Asset at (std::string const &index) const
 Get the Asset at index sent as param. More...
 
void loadAssets (std::string const &filepath)
 Load all assets from a config file. More...
 

Detailed Description

Class to store all Assets.

Constructor & Destructor Documentation

◆ AssetManager()

AssetManager::AssetManager ( std::string const &  assetsFile)

Construct a new Asset Manager object.

Parameters
assetsFileFile of all assets

Member Function Documentation

◆ at()

Asset AssetManager::at ( std::string const &  index) const

Get the Asset at index sent as param.

Parameters
indexIndex of the Asset in map
Returns
Asset Asset from the map

◆ loadAssets()

void AssetManager::loadAssets ( std::string const &  filepath)

Load all assets from a config file.

Parameters
filepathConfiguration file path containing data of all assets

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