Class MARSTraitDataProvider<T>
Inheritance
MARSTraitDataProvider<T>
Syntax
public class MARSTraitDataProvider<T> : MARSTraitDataProvider
Type Parameters
Constructors
MARSTraitDataProvider(Action<Int32>, MARSDatabase)
Declaration
public MARSTraitDataProvider(Action<int> setDataDirty, MARSDatabase database)
Parameters
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
RemoveTrait(Int32, String)
Declaration
public bool RemoveTrait(int dataID, string traitName)
Parameters
Returns
RemoveTraitNoop(Int32, String)
Declaration
public bool RemoveTraitNoop(int dataID, string traitName)
Parameters
Returns
TryGetAllTraitsWithSemanticTag(String, String, out Dictionary<Int32, T>)
Declaration
public bool TryGetAllTraitsWithSemanticTag(string traitName, string tag, out Dictionary<int, T> traits)
Parameters
Returns
TryGetAllTraitValues(String, out Dictionary<Int32, T>)
Declaration
public bool TryGetAllTraitValues(string traitName, out Dictionary<int, T> traits)
Parameters
Returns
TryGetTraitValue(Int32, String, out T)
Declaration
public bool TryGetTraitValue(int dataID, string traitName, out T value)
Parameters
Type |
Name |
Description |
Int32 |
dataID |
|
String |
traitName |
|
T |
value |
|
Returns