Client System API Reference
The System module provides some relatively scattered APIs and events.
API List
| API | Description |
|---|---|
| GetServerTime | Get the current UTC time of the server in seconds. |
Event List
| Event | Description |
|---|---|
| OnTssHandled | When some apis are called, if the api requires TSS information, this event will be triggered, and the game needs to return TSS information in this event. |
| OnGameCustomMsg | The event will be triggered when the game calls the HTTP API 'PushMsg'. |
API Details
GetServerTime
Get the current UTC time of the server in seconds.
/// <summary>Get the current UTC time of the server in seconds.</summary>
public Int64 GetServerTime();
Parameters:
(No parameters)
Return: Int64
The current UTC time of the server in seconds. The return value is 0 before logging in.
Event Details
OnTssHandled
When some apis are called, if the api requires TSS information, this event will be triggered, and the game needs to return TSS information in this event.
/// <summary>When some apis are called, if the api requires TSS information, this event will be triggered, and the game needs to return TSS information in this event.</summary>
public event SystemDelegate0 OnTssHandled;
Type Reference:
OnGameCustomMsg
The event will be triggered when the game calls the HTTP API 'PushMsg'.
/// <summary>The event will be triggered when the game calls the HTTP API 'PushMsg'.</summary>
public event SystemDelegate1 OnGameCustomMsg;
Type Reference:
All Delegates
public delegate void SystemDelegate0(TssHandledIn a0, ref TssHandledOut a1);
public delegate void SystemDelegate1(GameCustomMsgEvt a0);
Type Reference: