Crossfire Server, Trunk
AssetsCollection.h File Reference
#include <string>
#include <unordered_map>
#include <set>
#include <vector>
#include <algorithm>
#include <functional>
+ Include dependency graph for AssetsCollection.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  AssetsCollection< T, Key >
 

Functions

template<class T , class Key >
T * asset_create (const Key &key)
 
template<class T >
void asset_destroy (T *asset)
 

Function Documentation

◆ asset_create()

template<class T , class Key >
T* asset_create ( const Key &  key)

Create an asset with the specified key.

Parameters
keyunique asset key.
Returns
newly created asset.

◆ asset_destroy()

template<class T >
void asset_destroy ( T *  asset)

Destroy an asset.

Parameters
assetasset to destroy.

Referenced by AssetsCollection< Animations >::clear().

+ Here is the caller graph for this function: