Show / Hide Table of Contents

    Class ScriptableObjectBaseData<TInterface, TConcrete>

    Extend this class to reduce the amount of boilerplate required for a ScriptableObject based IDataProvider. This version is meant to contain a single IData object. See ScriptableObjectBaseDataCollection<TInterface, TConcrete> for a version that uses IMultipleDataProvider<TOutputData>.

    Inheritance
    Object
    ScriptableObjectBaseData<TInterface, TConcrete>
    EnvironmentConfigAsset
    LoggingConfigAsset
    LoggingEnvironmentConfigAsset
    Implements
    ISingleDataProvider<TInterface>
    IDataProvider
    IInjectable
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class ScriptableObjectBaseData<TInterface, TConcrete> : ScriptableObject, ISingleDataProvider<TInterface>, IDataProvider, IInjectable where TInterface : class, IData where TConcrete : class, TInterface
    Type Parameters
    Name Description
    TInterface

    The interface this IData implements. Generally the most derived one.

    TConcrete

    The concrete class of the data. This must implement TInterface.

    Fields

    _data

    Declaration
    protected TConcrete _data
    Field Value
    Type Description
    TConcrete

    Properties

    Data

    Declaration
    public virtual TInterface Data { get; }
    Property Value
    Type Description
    TInterface

    DataType

    Declaration
    public virtual Type DataType { get; }
    Property Value
    Type Description
    Type

    Id

    Declaration
    public virtual string Id { get; }
    Property Value
    Type Description
    String

    IsLoaded

    Declaration
    public virtual bool IsLoaded { get; }
    Property Value
    Type Description
    Boolean

    Methods

    GetData(Action<TInterface>)

    Declaration
    public virtual void GetData(Action<TInterface> onDataRetrieved)
    Parameters
    Type Name Description
    Action<TInterface> onDataRetrieved

    Inject(IResolver)

    Declaration
    public virtual void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver

    Implements

    ISingleDataProvider<TOutputData>
    IDataProvider
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.