Class AssetTypeDefinition<T>
Defines how one asset family is located, decoded from JSON, and validated.
public sealed class AssetTypeDefinition<T> : AssetTypeDefinition where T : notnull
Type Parameters
T
- Inheritance
-
AssetTypeDefinition<T>
- Inherited Members
Remarks
Because the asset codec retains only state needed while loading assets, a definition does not keep BSON code alive.
Constructors
AssetTypeDefinition(string, string, AssetCodec<T>, string)
public AssetTypeDefinition(string name, string path, AssetCodec<T> codec, string extension = ".json")
Parameters
namestringpathstringcodecAssetCodec<T>extensionstring
Properties
Extension
public string Extension { get; }
Property Value
Name
public override string Name { get; }
Property Value
Path
public string Path { get; }