Method | Description | |
---|---|---|
AssetFormat ( |
|
|
Create ( AssetManager manager, |
Create a new Asset of the PrimaryType.
|
|
Load ( |
Load an Asset. This should have previously matched using LoadMatch.
|
|
LoadAsset ( |
Load an Asset.
|
|
LoadAssetAsync ( |
Load an Asset.
|
|
LoadMatch ( |
Attempt to match this AssetFormat against the loader.
|
|
LoadMatchAsset ( LoadMatchStrength &matchStrength, |
Find the best AssetFormat for loading an Asset.
|
|
MatchStrengthToString ( LoadMatchStrength value ) : string |
Get a string describing a match strength, which handles values in between like "Perfect-2" or "Strong+3".
|
|
Save ( Asset asset, |
Save the asset to the file.
|
|
SaveCheck ( Asset resource ) : |
Check whether the Asset can be saved with this AssetFormat.
|
Method | Description | |
---|---|---|
LoadMatchMagic ( |
Perform a quick match based on a magic Int32 value.
|
|
LoadMatchMagic ( |
Perform a quick match based on a magic string and a minimum length.
|
Method | Description | |
---|---|---|
CreateConflictException ( |
||
MatchStrengthToString ( LoadMatchStrength reference, LoadMatchStrength value ) : string |
public AssetFormat ( |
||
pluginResource | The context for the |
|
primaryType | The primary |
|
canLoad | bool | Whether this can load |
loadTypes | IList |
Any additional |
canSave | bool | Whether this can save |
saveTypes | IList |
Any additional |
canCreate | bool | Whether this can create an |
createTypes | IList |
Any additional |
extension | string | File extension that this format uses in the form of ".ext". |
extensions | IList |
File extensions that this format uses in the form of |
return | System |
public Create ( AssetManager manager, |
||
manager | AssetManager | |
resourceType | ||
return | Asset |
public static LoadAsset ( |
||
loader | ||
formats | IEnumerable |
|
resolveConflict | ResolveLoadConflictCallback | |
return | Asset |
public static LoadAssetAsync ( |
||
loader | ||
formats | IEnumerable |
|
resolveConflict | ResolveLoadConflictCallback | |
progress | AssetLoaderProgressCallback | |
progressUpdateRate | System.TimeSpan | |
return | Task |
public LoadMatch ( |
||
loader | ||
return | LoadMatchStrength |
public static LoadMatchAsset ( LoadMatchStrength &matchStrength, |
||
matchStrength | LoadMatchStrength | |
loader | ||
formats | IEnumerable |
|
resolveConflict | ResolveLoadConflictCallback | |
return |
protected LoadMatchMagic ( |
||
loader | ||
magic | int | |
minimumLength | int | |
return | LoadMatchStrength |
protected LoadMatchMagic ( |
||
loader | ||
magic | string | |
minimumLength | int | |
return | LoadMatchStrength |
public static MatchStrengthToString ( LoadMatchStrength value ) : string | ||
value | LoadMatchStrength | |
return | string |
public Save ( Asset asset, |
||
asset | Asset | |
writer | ||
fileManager | The |
|
return | void |
public SaveCheck ( Asset resource ) : |
||
resource | Asset | |
return |