IAssetStorage
Declaration
public interface Strawberry.Platform.IAssetStorage
The storage service that reads game asset files.
Implements: Strawberry.Platform.IPlatformService
Methods
Open abstract
Opens a stream to the specified file.
Stream Open(string path)
Parameters:
| Name | Type | Description |
|---|---|---|
path |
System.String |
Path to the file. |
Returns: A stream to the specified file.
ReadAllBytes abstract
Reads all the bytes in the specified file
byte[] ReadAllBytes(string path)
Parameters:
| Name | Type | Description |
|---|---|---|
path |
System.String |
Path to the file. |
Returns: Bytes in the specified file
List abstract
Lists all files in the specified directory.
string[] List(string path)
Parameters:
| Name | Type | Description |
|---|---|---|
path |
System.String |
Path to the directory. |
Returns: An array of files in the specified directory.