Class ScriptableDatabase
Similar to the Database but it maintains cohesion within the Resources
folder.
Inheritance
Object
ScriptableObject
ScriptableDatabase
Inherited Members
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 Sourcethis[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 SourceDelete<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 |
Init()
Init the scriptable once created. Called on reset as well.
Declaration
protected override void Init()
Overrides
| Edit this page View SourceRegisterIfNeeded<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. |