EdgeMultiplay.GamePlayEvent Class Reference

GamePlayEvent is the main event for GamePlayEvents More...

Public Member Functions

 GamePlayEvent (string eventName, Vector3 position)
 GamePlayEvent Constructor More...
 
 GamePlayEvent (string eventName, Quaternion rotation)
 GamePlayEvent Constructor More...
 
 GamePlayEvent (string eventName, Vector3 position, Quaternion rotation)
 GamePlayEvent Constructor More...
 
 GamePlayEvent (string eventName, List< int > scoreArray)
 GamePlayEvent Constructor More...
 
 GamePlayEvent (string eventName, List< float > scoreArray)
 GamePlayEvent Constructor More...
 
 GamePlayEvent (string roomId, string playerId, string eventName, string[] stringData, int[] integerData, float[] floatData, bool[] booleanData)
 GamePlayEvent Constructor More...
 
string ToJson ()
 Converts the GamePlayEvent From an Object to JSON string using JsonUtility More...
 

Public Attributes

string type
 type of Event More...
 
string roomId
 unique room id assigned on room creation, the id is generated using uuid() module on the server More...
 
string senderId
 the player id of the sender More...
 
string eventName
 the GamePlayEvent event name, use event names as a way to differentiate between your GamePlayEvents More...
 
string[] stringData
 An Array of strings as part of the custom data in the GamePlayEvent More...
 
int[] integerData
 An Array of integers as part of the custom data in the GamePlayEvent More...
 
float[] floatData
 An Array of floating numbers as part of the custom data in the GamePlayEvent More...
 
bool[] booleanData
 An Array of boolean values as part of the custom data in the GamePlayEvent More...