UserWise Unity SDK  3.0.0
Public Member Functions | Public Attributes | List of all members
UserWiseSDK.PlayerAttribute Struct Reference

PlayerAttribute is a data class used to define an attribute update to be applied to a player. More...

Inheritance diagram for UserWiseSDK.PlayerAttribute:
UserWiseSDK.IDictSerializable< PlayerAttribute > UserWiseSDK.IAttributable

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...
 
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...
 

Detailed Description

PlayerAttribute is a data class used to define an attribute update to be applied to a player.

PlayerAttributes are used when calling UserWise.SetAttributes.

Constructor & Destructor Documentation

◆ PlayerAttribute()

UserWiseSDK.PlayerAttribute.PlayerAttribute ( string  name,
object  Value,
AttributableDataType  dataType 
)
inline

Build a new PlayerAttribute instance with the provided data.

Parameters
nameName of the attribute.
valueValue of the attribute.
dataTypeAttributableDataType for the attribute.

Member Function Documentation

◆ GetDataType()

AttributableDataType UserWiseSDK.PlayerAttribute.GetDataType ( )
inline

Getter for the attribute's data type. AttributableDataType

Implements UserWiseSDK.IAttributable.

◆ GetName()

string UserWiseSDK.PlayerAttribute.GetName ( )
inline

Getter for the attribute's name

Implements UserWiseSDK.IAttributable.

◆ GetValue()

object UserWiseSDK.PlayerAttribute.GetValue ( )
inline

Getter for the attribute's value, casted as a generic object.

Implements UserWiseSDK.IAttributable.

Member Data Documentation

◆ DataType

AttributableDataType UserWiseSDK.PlayerAttribute.DataType

Data type of the attribute.

◆ Name

string UserWiseSDK.PlayerAttribute.Name

Name of the attribute.

◆ Value

object UserWiseSDK.PlayerAttribute.Value

Value of the attribute.


The documentation for this struct was generated from the following file: