Table of Contents

Class AssetTypeDefinition<T>

Namespace
Shard.Assets
Assembly
Shard.Assets.dll

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

name string
path string
codec AssetCodec<T>
extension string

Properties

Extension

public string Extension { get; }

Property Value

string

Name

public override string Name { get; }

Property Value

string

Path

public string Path { get; }

Property Value

string