![]() |
Paradox Game Engine
v1.0.0 beta06
|
A registry for file extensions, IAssetImporter, IAssetFactory and aliases associated with assets. More...
Static Public Member Functions | |
static void | RegisterSupportedPlatforms (List< SolutionPlatform > platforms) |
Registers the supported platforms. More... | |
static void | RegisterStringExpander (Func< object, string, string > expander) |
Registers the string expander used by the package references. More... | |
static string | ExpandString (object context, string stringToExpand) |
Expands a string using the registered string expander (RegisterStringExpander) More... | |
static string[] | GetAssetFileExtensions () |
Gets the asset file extensions. More... | |
static bool | IsAssetFileExtension (string extension) |
Determines whether the extension is an asset file type. More... | |
static string | GetDefaultExtension (Type assetType) |
Gets the default extension associated with an asset. More... | |
static int | GetFormatVersion (Type assetType) |
Gets the current format version of an asset. More... | |
static Type[] | GetFormatVersionUpdaterTypes (Type assetType) |
Gets the current format version of an asset. More... | |
static string | GetDefaultExtension< T > () |
Gets the default extension associated with an asset. More... | |
static Type[] | GetInstantiableTypes () |
Returns an array of asset types that can be instanced with NewDefaultInstance. More... | |
static AssetDescription | GetDescription (Type assetType) |
Gets the description associated to the asset type, if available. More... | |
static Type[] | GetDescribedTypes () |
Returns an array of asset types that have a description. More... | |
static Asset | NewDefaultInstance (Type assetType) |
Creates a default instance for an asset type. More... | |
static bool | IsImporterSupportingExtension (string extension) |
Determines whether [is importer supporting extension] [the specified extension]. More... | |
static IEnumerable < IAssetImporter > | FindImporterByExtension (string extension) |
Finds the importer associated with an asset by the extension of the file to import. More... | |
static IAssetImporter | FindImporterById (Guid importerId) |
Finds an importer by its id. More... | |
static void | RegisterImporter (IAssetImporter importer) |
Registers a IAssetImporter for the specified asset type. More... | |
static void | RegisterFactory (Type assetType, IAssetFactory factory) |
Registers a IAssetFactory for the specified asset type. More... | |
static void | RegisterDescription (Type assetType, AssetDescription description) |
Registers a AssetDescription for the specified asset type. More... | |
static void | RegisterAssembly (Assembly assembly) |
Registers the asset assembly. This assembly should provide Asset objects, associated with ICompiler and optionaly a IAssetImporter. More... | |
Properties | |
static SolutionPlatformCollection | SupportedPlatforms [get] |
Gets the supported platforms. More... | |
static IEnumerable < IAssetImporter > | RegisteredImporters [get] |
Gets an enumeration of registered importers. More... | |
A registry for file extensions, IAssetImporter, IAssetFactory and aliases associated with assets.
Definition at line 22 of file AssetRegistry.cs.
|
static |
Expands a string using the registered string expander (RegisterStringExpander)
context | The context. |
stringToExpand | The string to expand. |
Definition at line 79 of file AssetRegistry.cs.
Referenced by SiliconStudio.Assets.PackageSession.Save().
|
static |
Finds the importer associated with an asset by the extension of the file to import.
extension | The extension of the file to import. |
Definition at line 245 of file AssetRegistry.cs.
|
static |
Finds an importer by its id.
importerId | The importer identifier. |
Definition at line 266 of file AssetRegistry.cs.
|
static |
Gets the asset file extensions.
Definition at line 92 of file AssetRegistry.cs.
|
static |
Gets the default extension associated with an asset.
assetType | The type. |
Definition at line 128 of file AssetRegistry.cs.
|
static |
Gets the default extension associated with an asset.
T | Type of the asset. |
T | : | Asset |
Definition at line 167 of file AssetRegistry.cs.
|
static |
Returns an array of asset types that have a description.
Definition at line 198 of file AssetRegistry.cs.
|
static |
Gets the description associated to the asset type, if available.
assetType | Type of the asset. |
null
otherwise.Definition at line 186 of file AssetRegistry.cs.
|
static |
Gets the current format version of an asset.
assetType | The asset type. |
Definition at line 141 of file AssetRegistry.cs.
|
static |
Gets the current format version of an asset.
assetType | The asset type. |
Definition at line 154 of file AssetRegistry.cs.
Referenced by SiliconStudio.Assets.AssetMigration.MigrateAssetIfNeeded().
|
static |
Returns an array of asset types that can be instanced with NewDefaultInstance.
Definition at line 176 of file AssetRegistry.cs.
|
static |
Determines whether the extension is an asset file type.
extension | The extension. |
true
if [is asset file extension] [the specified extension]; otherwise, false
.Definition at line 117 of file AssetRegistry.cs.
Referenced by SiliconStudio.Assets.Package.LoadTemporaryAssets().
|
static |
Determines whether [is importer supporting extension] [the specified extension].
extension | The extension. |
true
if [is importer supporting extension] [the specified extension]; otherwise, false
.System.ArgumentNullException | extension |
Definition at line 230 of file AssetRegistry.cs.
|
static |
Creates a default instance for an asset type.
assetType | Type of the asset. |
Definition at line 208 of file AssetRegistry.cs.
|
static |
Registers the asset assembly. This assembly should provide Asset objects, associated with ICompiler and optionaly a IAssetImporter.
assembly | The assembly. |
System.ArgumentNullException | assembly |
AssetException | Invalid compiler type [{0}], must inherit from IAssetImporter.ToFormat(assetCompiler.CompilerTypeName) or Unable to instantiate compiler [{0}].ToFormat(assetCompiler.CompilerTypeName) or Invalid importer type [{0}], must inherit from IAssetImporter.ToFormat(assetImporter.ImpoterTypeName) or Unable to instantiate importer [{0}].ToFormat(assetImporter.ImpoterTypeName) |
Definition at line 356 of file AssetRegistry.cs.
|
static |
Registers a AssetDescription for the specified asset type.
assetType | Type of the asset. |
description | The description. |
Definition at line 334 of file AssetRegistry.cs.
|
static |
Registers a IAssetFactory for the specified asset type.
assetType | Type of the asset. |
factory | The factory. |
Definition at line 323 of file AssetRegistry.cs.
|
static |
Registers a IAssetImporter for the specified asset type.
importer | The importer. |
System.ArgumentNullException | importer |
Definition at line 284 of file AssetRegistry.cs.
References SiliconStudio.Assets.IAssetImporter.Id.
|
static |
Registers the string expander used by the package references.
expander | The expander. |
Definition at line 68 of file AssetRegistry.cs.
|
static |
Registers the supported platforms.
platforms | The platforms. |
System.ArgumentNullException | platforms |
Definition at line 56 of file AssetRegistry.cs.
|
staticget |
Gets an enumeration of registered importers.
The registered importers.
Definition at line 102 of file AssetRegistry.cs.
|
staticget |
Gets the supported platforms.
The supported platforms.
Definition at line 44 of file AssetRegistry.cs.