Search Results for

    Show / Hide Table of Contents

    Class ScriptableDatabase

    Similar to the Database but it maintains cohesion within the Resources folder.

    Inheritance
    object
    Object
    ScriptableObject
    ScriptableSingleton<ScriptableDatabase>
    ScriptableDatabase
    Inherited Members
    ScriptableSingleton<ScriptableDatabase>.Instance
    ScriptableSingleton<ScriptableDatabase>.GlobalPath
    ScriptableSingleton<ScriptableDatabase>.ResourcesPath
    Namespace: GGL.DB.Scriptable
    Assembly: GGL.dll
    Syntax
    [HelpURL("https://ggl.yoannhaffner.com/articles/database.html#définition-des-données-par-défaut")]
    public class ScriptableDatabase : ScriptableSingleton<ScriptableDatabase>

    Properties

    | Edit this page View Source

    this[Type]

    Access table by scriptable data Type

    Declaration
    public IEnumerable<ScriptableData> this[Type type] { get; }
    Parameters
    Type Name Description
    Type type
    Property Value
    Type Description
    IEnumerable<ScriptableData> Similar to the but it maintains cohesion within the Resources folder.

    Methods

    | Edit this page View Source

    Delete<T>(ScriptableData<T>)

    Delete a scriptable data from scriptable database

    Declaration
    public void Delete<T>(ScriptableData<T> data) where T : class
    Parameters
    Type Name Description
    ScriptableData<T> data
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Init()

    Init the scriptable once created. Called on reset as well.

    Declaration
    protected override void Init()
    Overrides
    ScriptableSingleton<ScriptableDatabase>.Init()
    | Edit this page View Source

    RegisterIfNeeded<T>(ScriptableData<T>)

    Declaration
    public void RegisterIfNeeded<T>(ScriptableData<T> data) where T : class
    Parameters
    Type Name Description
    ScriptableData<T> data Similar to the but it maintains cohesion within the Resources folder.
    Type Parameters
    Name Description
    T Similar to the but it maintains cohesion within the Resources folder.
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX