Caches the active non-transient shapes, supporting fetching by ID.
More...
List of all members.
Public Member Functions |
| bool | Add (uint id, GameObject obj) |
| | Add an object to the cache.
|
| GameObject | Fetch (uint id) |
| | Retrieve the object with the given id .
|
| GameObject | Remove (uint id) |
| | Remove the object with the given id .
|
|
void | Reset () |
| | Remove all object (and destroy).
|
Properties |
|
IEnumerable< GameObject > | Objects [get] |
| | Enumerate active objects in the cache.
|
Detailed Description
Caches the active non-transient shapes, supporting fetching by ID.
Member Function Documentation
| bool Tes::Handlers::ShapeCache::Add |
( |
uint |
id, |
|
|
GameObject |
obj |
|
) |
| [inline] |
Add an object to the cache.
- Parameters:
-
| id | The object ID. |
| obj | The associated object. |
- Returns:
- True when no object using id preexisted. When false, obj is not added.
| GameObject Tes::Handlers::ShapeCache::Fetch |
( |
uint |
id | ) |
[inline] |
Retrieve the object with the given id .
- Parameters:
-
| id | The ID of the object of interest. |
- Returns:
- The requested object or null when not found.
| GameObject Tes::Handlers::ShapeCache::Remove |
( |
uint |
id | ) |
[inline] |
Remove the object with the given id .
- Parameters:
-
| id | The ID of the object to remove. |
- Returns:
- The removed object or null when not found.
The documentation for this class was generated from the following file: