The DDD_AssetList class. Maintains a list of Data Director assets.
More...
#include <DDD_AssetList.h>
The DDD_AssetList class. Maintains a list of Data Director assets.
Destructor The DDD_AssetList does NOT manage the storage of its assets. Prior to calling this destructor, the calling code should free all of the assets in this list.
- Returns
- Returns a pointer to the asset with the given instance name Returns NULL if the asset is not found
- Parameters
-
name | The name of the asset to find |
bool InList |
( |
const std::string & |
name | ) |
const |
Searches list for asset with given instance name; unlike Find(), this is const-safe
- Parameters
-
name | The name of the asset to find |
- Returns
- true if asset with matching instance name found; false otherwise
Moves an asset "DOWN" in the list, which means it gets moved closer towards the beginning of the list. (It moves "DOWN" in draw order so it draws earlier)
- Parameters
-
newAsset | The asset to reorder |
- Returns
- True if if the asset was moved, false otherwise
Moves an asset "UP" in the list, which means it gets moved further towards the end of the list. (It moves "UP" in draw order so it draws later)
- Parameters
-
newAsset | The asset to reorder |
- Returns
- True if if the asset was moved, false otherwise
void Replace |
( |
const std::string & |
name, |
|
|
DDD_AssetBase * |
newAsset |
|
) |
| |
Finds the asset with the given name and replaces it with the supplied asset
- Parameters
-
name | The name of the asset to find |
newAsset | Pointer to the asset that will replace the asset |
The documentation for this class was generated from the following file: