API usage instruction › arcalet API › Functions Related to the arcalet system. Summary of arcalet Objects
Functions Related to the arcalet system. Summary of arcalet Objects
ArcaletGame
Constructor ArcaletGame(string userid,string passwd,string gguid,string sguid, byte[] certificate)
Method void Dispoise() void Launch() void Launch(int timeout) void WebLaunch() void WebLaunch(int timeout) void STALaunch() void STALaunch(int timeout) void Send(string msg) void PrivacySend(string msg,int poid) void SendOnClose(string msg) void StartDelayDetectionRadar(int speed) void GetDelayMilliseconds() void SetPlayerStatus(int status,OnCallCompletion cb, object token) void SetPlayerStatus(int status,int level, OnCallCompletion cb, object token) void SetPlayerLevel(int level, OnCallCompletion cb, object token) void FindPlayersByStatus(int status, OnCallCompletionWithData cb, object token) void FindPlayersByLevel(int level, OnCallCompletionWithData cb, object token) void GetSceneInstances(string sguid,OnCallCompletionWithData cb, object token) void EventDispatcher()
Property int sid (read only) int poid (read only) object token (read / write)
Event (can override) void OnCompletion(int code, ArcaletGame game) void OnStateChanged(int state, int code, ArcaletGame game) void OnMessageIn(string Msg, int delayMilliSecond, ArcaletGame game) void OnPrivateMessageIn(string Msg, int delayMilliSecond, ArcaletGame game)
Event Property (Choose Event or Event Property) onCompletion onStateChanged onMessageIn onPrivateMessageIn
The Event handler function defined in the Event Property corresponds exactly to the Event function with the same name. Please refer to the previous definition for the Event prototype.
ArcaletScene
Constructor ArcaletScene(ArcaletGame game,string sguid) ArcaletScene(ArcaletGame game,string sguid,int sid) ArcaletScene(ArcaletGame game,string sguid,bool isLocked)
Method void Launch() void Match() void FairMatch() void Send(string msg) void SetProperty(string key,string value, OnCallCompletion cb, object token) void SetProperty(string key, int value, OnCallCompletion cb, object token) void GetCreatorInfo(OnCallCompletionWithData cb, object token) void Leave(OnCallCompletion cb, object token)
Property int sid (read only) string sguid (read only) object token (read / write)
Event (can override) void OnCompletion(int code, ArcaletScene scene) void OnMessageIn(string Msg, int delayMilliSecond, ArcaletScene scene)
Event Property (Choose Event or Event Property) onCompletion onMessageIn
The Event functions are defined and named in the same way as the Event Property. Please refer to the previous definition for Event prototype.
Was this page helpful?
Yes
No