Class MARSTraitMultiCollection<T>
Map trait names to the list of their objects and values
Inheritance
MARSTraitMultiCollection<T>
Syntax
public class MARSTraitMultiCollection<T> : object
Type Parameters
Name |
Description |
T |
The trait data type
|
Methods
AddOrUpdateTrait(Int32, String, T)
Declaration
public void AddOrUpdateTrait(int dataID, string traitName, T value)
Parameters
Type |
Name |
Description |
Int32 |
dataID |
|
String |
traitName |
|
T |
value |
|
Clear()
Declaration
RemoveTraitById(Int32, String)
Declaration
public bool RemoveTraitById(int dataID, string traitName)
Parameters
Returns
TryGetTraitById(Int32, String, out T)
Declaration
public bool TryGetTraitById(int dataID, string traitName, out T value)
Parameters
Type |
Name |
Description |
Int32 |
dataID |
|
String |
traitName |
|
T |
value |
|
Returns
TryGetValue(String, out Dictionary<Int32, T>)
Declaration
public bool TryGetValue(string traitName, out Dictionary<int, T> traits)
Parameters
Type |
Name |
Description |
String |
traitName |
|
Dictionary<Int32, T> |
traits |
|
Returns