Search Results for

    Show / Hide Table of Contents

    Class AssetSourceLoadableConverter<T, K>

    Converts an Asset Source into a Loadable.

    Inheritance
    object
    AssetSourceLoadableConverter<T, K>
    EffectSourceLoader
    FontSourceLoader
    FrameBufferSourceLoader
    MaterialSourceLoader
    ModelSourceLoader
    ParticleSystemSourceLoader
    PostProcessingGraphSourceLoader
    PrefabSourceConverter
    ReflectionProbeSourceLoader
    RenderLayerSourceLoader
    SamplerSourceLoader
    SceneSourceConverter
    SoundSourceLoader
    TextureSourceLoader
    Implements
    IAssetSourceLoadableConverter
    Namespace: Evergine.Framework.Assets
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class AssetSourceLoadableConverter<T, K> : IAssetSourceLoadableConverter where T : IAssetSource where K : ILoadable
    Type Parameters
    Name Description
    T

    The Asset Source type.

    K

    The Loadable Asset type.

    Properties

    ExportedExtension

    Gets the exported asset extension.

    Declaration
    public abstract string ExportedExtension { get; }
    Property Value
    Type Description
    string

    LoadableType

    Gets the loadable type.

    Declaration
    public Type LoadableType { get; }
    Property Value
    Type Description
    Type

    Methods

    Convert(T)

    Converts an asset source into a loadable element.

    Declaration
    public abstract K Convert(T source)
    Parameters
    Type Name Description
    T source

    The asset source.

    Returns
    Type Description
    K

    The loadable element.

    Convert(T, Type)

    Converts an Asset Source into a loadable of a specific type.

    Declaration
    public virtual K Convert(T source, Type loadableType)
    Parameters
    Type Name Description
    T source

    The asset source.

    Type loadableType

    The loadable type.

    Returns
    Type Description
    K

    The loadable element.

    Convert<TLoadable>(T)

    Converts an Asset Source into a loadable of a specific type.

    Declaration
    public virtual TLoadable Convert<TLoadable>(T source) where TLoadable : K
    Parameters
    Type Name Description
    T source

    The asset source.

    Returns
    Type Description
    TLoadable

    The loadable element.

    Type Parameters
    Name Description
    TLoadable

    The type of ILoadable object to return.

    Implements

    IAssetSourceLoadableConverter

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX