Class DataSet<T>
Inheritance
object
DataSet<T>
Implements
UnityEngine.ISerializationCallbackReceiver
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Syntax
[Serializable]
public abstract class DataSet<T> : IDataSet<T>, IDataSet, ISerializationCallbackReceiver where T : IDataSetItem
Type Parameters
Properties
Names
Declaration
public IReadOnlyCollection<string> Names { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<T><string> |
|
OrderedIds
Declaration
public ReadOnlyCollection<string> OrderedIds { get; }
Property Value
Type |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<T><string> |
|
Methods
Add(T)
Declaration
public virtual void Add(T element)
Parameters
Type |
Name |
Description |
T |
element |
|
ChangeId(string, string)
Declaration
public void ChangeId(string oldId, string newId)
Parameters
Type |
Name |
Description |
string |
oldId |
|
string |
newId |
|
ContainsId(string)
Declaration
public bool ContainsId(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
ContainsName(string)
Declaration
public bool ContainsName(string elementName)
Parameters
Type |
Name |
Description |
string |
elementName |
|
Returns
Get(string)
Declaration
protected T Get(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
GetByName(string)
Declaration
protected T GetByName(string elementName)
Parameters
Type |
Name |
Description |
string |
elementName |
|
Returns
GetName(string)
Declaration
public string GetName(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
Move(string, int)
Declaration
public void Move(string id, int newIndex)
Parameters
Type |
Name |
Description |
string |
id |
|
int |
newIndex |
|
OnAfterDeserialize()
Declaration
public virtual void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
Remove(string)
Declaration
public virtual void Remove(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Rename(string, string)
Declaration
public 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> |
|
Implements
UnityEngine.ISerializationCallbackReceiver