API usage instruction › Arcalet Scene › Method
Method
void Launch()
Method to enter the scene. Please refer to the constructor for a detailed description.
void Match()
Pair up to enter the scene. Please refer to the constructor for a detailed description.
void FairMatch()
Method to enter the scene with server pair up. Please refer to the constructor for a detailed description.
void Send(string msg)
msg Message data This method sends data to the preset scenes and all players in the scene will receive the message, including the sender. Game developers should pay attention when setting the content of messages.
void SetProperty(string key,string value,OnCallCompletion cb, object token)
key The key attribute value value Attribute value of type string Set the scene attributes, using string values, for example: key = value. void cb(int code, object token) code has a value of 0 if the setup succeeded. A code value other than 0 means the setup failed.
void GetCreatorInfo(OnCallCompletionWithData cb, object token)
key The key attribute value value Integer property value This method sets the scene attributes. The attribute is an integer value, for example, as key = value. void cb(int code, object token) code 0 means the setup succeeded. A code other than 0 means the setup failed.
void GetCreatorInfo(OnCallCompletionWithData cb, object token)
This method obtains the relevant information from the dynamic scene builders. It returns a Listwith cb. Each Hashtable contains three columns. Each of them builds a copy of the players in the scene. The three columns are: 'userid' which is the player's account, 'poid' is the private scene id for the player, and 'certificate' is the player's fingerprint. void cb(int code, object obj, object token) code 0 means the setup succeeded. A code other than 0 means the setup failed. Example: Getting the Builder's Information from a Dynamic Scene
C#
void Leave(OnCallCompletion cb, object token)
Leave the scene. void cb(int code, object token) code 0 means the setup succeeded. A code other than 0 means the setup failed.
Was this page helpful?
Yes
No