Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
cqsp::asset::Package Class Reference

#include <assetmanager.h>

Public Member Functions

template<class T , typename V >
T * GetAsset (const V asset)
 
bool HasAsset (const char *asset)
 
bool HasAsset (const std::string &asset)
 
auto begin ()
 
auto end ()
 

Public Attributes

std::string name
 
std::string version
 
std::string title
 
std::string author
 

Private Member Functions

void ClearAssets ()
 

Private Attributes

std::map< std::string, std::unique_ptr< Asset > > assets
 

Friends

class AssetLoader
 
class AssetManager
 

Member Function Documentation

◆ begin()

auto cqsp::asset::Package::begin ( )
inline

◆ ClearAssets()

void cqsp::asset::Package::ClearAssets ( )
private

◆ end()

auto cqsp::asset::Package::end ( )
inline

◆ GetAsset()

template<class T , typename V >
T * cqsp::asset::Package::GetAsset ( const V  asset)
inline

◆ HasAsset() [1/2]

bool cqsp::asset::Package::HasAsset ( const char *  asset)

◆ HasAsset() [2/2]

bool cqsp::asset::Package::HasAsset ( const std::string &  asset)

Friends And Related Function Documentation

◆ AssetLoader

friend class AssetLoader
friend

◆ AssetManager

friend class AssetManager
friend

Member Data Documentation

◆ assets

std::map<std::string, std::unique_ptr<Asset> > cqsp::asset::Package::assets
private

◆ author

std::string cqsp::asset::Package::author

◆ name

std::string cqsp::asset::Package::name

◆ title

std::string cqsp::asset::Package::title

◆ version

std::string cqsp::asset::Package::version

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