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

PlayerEvent is a data class used to define an event that the player has encountered. More...

Inheritance diagram for UserWiseSDK.PlayerEvent:
UserWiseSDK.IDictSerializable< PlayerEvent >

Public Member Functions

 PlayerEvent (string eventId)
 Build a new PlayerEvent instance with no attributes. More...
 
 PlayerEvent (string eventId, PlayerAttribute attribute)
 Build a new PlayerEvent instance with a single attribute. More...
 
 PlayerEvent (string eventId, List< PlayerAttribute > Attributes)
 Build a new PlayerEvent instance with multiple attributes. More...
 
PlayerEvent IDictSerializable< PlayerEvent >. Deserialize (Dictionary< string, object > data)
 
Dictionary< string, object > IDictSerializable< PlayerEvent >. Serialize ()
 
- Public Member Functions inherited from UserWiseSDK.IDictSerializable< PlayerEvent >
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 EventId
 Static identifier for the event encountered (e.g. game_completed). More...
 
List< PlayerAttributeAttributes
 List of PlayerAttribute definitions, used to describe attributes that should be stored with the event. More...
 

Detailed Description

PlayerEvent is a data class used to define an event that the player has encountered.

PlayerEvents are used when calling UserWise.AssignEvent.

Constructor & Destructor Documentation

◆ PlayerEvent() [1/3]

UserWiseSDK.PlayerEvent.PlayerEvent ( string  eventId)
inline

Build a new PlayerEvent instance with no attributes.

◆ PlayerEvent() [2/3]

UserWiseSDK.PlayerEvent.PlayerEvent ( string  eventId,
PlayerAttribute  attribute 
)
inline

Build a new PlayerEvent instance with a single attribute.

◆ PlayerEvent() [3/3]

UserWiseSDK.PlayerEvent.PlayerEvent ( string  eventId,
List< PlayerAttribute Attributes 
)
inline

Build a new PlayerEvent instance with multiple attributes.

Member Data Documentation

◆ Attributes

List<PlayerAttribute> UserWiseSDK.PlayerEvent.Attributes

List of PlayerAttribute definitions, used to describe attributes that should be stored with the event.

◆ EventId

string UserWiseSDK.PlayerEvent.EventId

Static identifier for the event encountered (e.g. game_completed).


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