Class DataSetScriptableObject<TItem, TOpenSet>
Data set stored as a scriptable object.
Inheritance
object
UnityEngine.Object
UnityEngine.ScriptableObject
DataSetScriptableObject<TItem, TOpenSet>
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(string)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, bool)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, bool)
UnityEngine.Object.Destroy(UnityEngine.Object, float)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, bool)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, float)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
[Serializable]
public abstract class DataSetScriptableObject<TItem, TOpenSet> : VersionedScriptableObject, IVersioned, IDataSet<TItem>, IDataSet where TItem : IDataSetItem where TOpenSet : IOpenDataSet<TItem>
Type Parameters
Name | Description |
---|---|
TItem | Type of the items stored in the data set. |
TOpenSet | The type of the open set. |
Properties
Names
Declaration
public IReadOnlyCollection<string> Names { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<T><string> |
OpenSet
Gets the less restricted set of items for protected use.
Declaration
protected abstract TOpenSet OpenSet { get; }
Property Value
Type | Description |
---|---|
TOpenSet |
OrderedIds
Declaration
public ReadOnlyCollection<string> OrderedIds { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<T><string> |
Methods
Add(TItem)
Declaration
public virtual void Add(TItem element)
Parameters
Type | Name | Description |
---|---|---|
TItem | element |
ContainsId(string)
Declaration
public bool ContainsId(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
Returns
Type | Description |
---|---|
bool |
ContainsName(string)
Declaration
public bool ContainsName(string elementName)
Parameters
Type | Name | Description |
---|---|---|
string | elementName |
Returns
Type | Description |
---|---|
bool |
Get(string)
Gets the item with the given ID.
Declaration
protected TItem Get(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The item's ID. |
Returns
Type | Description |
---|---|
TItem | The item. |
GetByName(string)
Gets the item with the given name.
Declaration
protected TItem GetByName(string elementName)
Parameters
Type | Name | Description |
---|---|---|
string | elementName | The item's name. |
Returns
Type | Description |
---|---|
TItem | The item. |
GetName(string)
Declaration
public string GetName(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
Returns
Type | Description |
---|---|
string |
Move(string, int)
Declaration
public virtual void Move(string id, int newIndex)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
int | newIndex |
Remove(string)
Declaration
public virtual void Remove(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id |
Rename(string, string)
Declaration
public virtual void Rename(string id, string newName)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
string | newName |
Events
OnAdded
Declaration
public event Action<string> OnAdded
Event Type
Type | Description |
---|---|
System.Action<T><string> |
OnMoved
Declaration
public event Action<int, int> OnMoved
Event Type
Type | Description |
---|---|
System.Action<T1, T2><int, int> |
OnRemoved
Declaration
public event Action<string, string> OnRemoved
Event Type
Type | Description |
---|---|
System.Action<T1, T2><string, string> |
OnRenamed
Declaration
public event Action<string, string, string> OnRenamed
Event Type
Type | Description |
---|---|
System.Action<T1, T2, T3><string, string, string> |