Class containing methods related to accessing resources.
More...
|
| T | Get< T > (string location) |
| | Retrieves a resource of the specified type from the given location relative to your game's root directory. The location should not include the file's extension. More...
|
| |
| IEnumerable< string > | FindAll< T > (bool recursive, string rootLocation=null) |
| | Retrieves the locations of all resources of the given type within the directory specified by rootLocation . Can optionally recurse into subdirectories. Specify null for rootLocation to search from the game's root directory. More...
|
| |
|
| static string[] | SplitLocation (string location) |
| | Splits a location string by the path separating character '/'. Empty subpaths are ignored. More...
|
| |
Class containing methods related to accessing resources.
| IEnumerable<string> GameAPI.Resources.FindAll< T > |
( |
bool |
recursive, |
|
|
string |
rootLocation = null |
|
) |
| |
|
inline |
Retrieves the locations of all resources of the given type within the directory specified by rootLocation . Can optionally recurse into subdirectories. Specify null for rootLocation to search from the game's root directory.
- Template Parameters
-
| T | Type of the resources to find. |
- Parameters
-
| recursive | If true, subdirectories of the root location are searched too. |
| rootLocation | Directory to search from. |
| T GameAPI.Resources.Get< T > |
( |
string |
location | ) |
|
|
inline |
Retrieves a resource of the specified type from the given location relative to your game's root directory. The location should not include the file's extension.
- Template Parameters
-
| T | Type of the resource to retrieve. |
- Parameters
-
| location | Path to the resource. |
| static string [] GameAPI.Resources.SplitLocation |
( |
string |
location | ) |
|
|
inlinestatic |
Splits a location string by the path separating character '/'. Empty subpaths are ignored.
- Parameters
-
| location | Location string to split. |