|
UserWise Unity SDK
3.0.0
|
PlayerAttribute is a data class used to define an attribute update to be applied to a player.
More...
Public Member Functions | |
| PlayerAttribute (string name, object Value, AttributableDataType dataType) | |
Build a new PlayerAttribute instance with the provided data. More... | |
| string | GetName () |
| Getter for the attribute's name More... | |
| object | GetValue () |
Getter for the attribute's value, casted as a generic object. More... | |
| AttributableDataType | GetDataType () |
| Getter for the attribute's data type. AttributableDataType More... | |
| PlayerAttribute IDictSerializable< PlayerAttribute >. | Deserialize (Dictionary< string, object > data) |
| Dictionary< string, object > IDictSerializable< PlayerAttribute >. | Serialize () |
Public Member Functions inherited from UserWiseSDK.IDictSerializable< PlayerAttribute > | |
| Dictionary< string, object > | Serialize () |
Serialize instance into a generic Dictionary{string, object}. More... | |
| T | Deserialize (Dictionary< string, object > data) |
Deserialize generic Dictionary{string, object} into an instance of T. More... | |
Public Attributes | |
| string | Name |
| Name of the attribute. More... | |
| object | Value |
| Value of the attribute. More... | |
| AttributableDataType | DataType |
| Data type of the attribute. More... | |
PlayerAttribute is a data class used to define an attribute update to be applied to a player.
PlayerAttributes are used when calling UserWise.SetAttributes.
|
inline |
Build a new PlayerAttribute instance with the provided data.
| name | Name of the attribute. |
| value | Value of the attribute. |
| dataType | AttributableDataType for the attribute. |
|
inline |
Getter for the attribute's data type. AttributableDataType
Implements UserWiseSDK.IAttributable.
|
inline |
Getter for the attribute's name
Implements UserWiseSDK.IAttributable.
|
inline |
Getter for the attribute's value, casted as a generic object.
Implements UserWiseSDK.IAttributable.
| AttributableDataType UserWiseSDK.PlayerAttribute.DataType |
Data type of the attribute.
| string UserWiseSDK.PlayerAttribute.Name |
Name of the attribute.
| object UserWiseSDK.PlayerAttribute.Value |
Value of the attribute.
1.8.17