Enfusion Script API
|
Public Member Functions | |
proto native void | SearchRooms (JsonApiStruct searchParams, BackendCallback callback) |
Search first batch of rooms. | |
proto native int | Rooms (out notnull array< Room > rooms) |
Get room data for current position. | |
proto native void | GetRoomsByIds (GetRoomsIds searchParams, BackendCallback callback) |
proto native void | GetRoomsByHostIds (GetRoomsIds searchParams, BackendCallback callback) |
proto native void | Scroll (int position, BackendCallback callback) |
Update current position. | |
proto native void | SetViewSize (int size) |
View size is expected size of rooms from Rooms(rooms). | |
proto native int | TotalRoomCount () |
The total room count by the current filter. | |
proto native void | KillGeneratedRooms () |
proto native void | GenerateRooms () |
proto native Room | GetInviteRoom () |
Get room for the last invite request. | |
proto native bool | InvitationFailed () |
Clear the room from GetInviteRoom() | |
proto native void | ClearInviteRoom () |
Clear the room from GetInviteRoom() | |
proto native JsonApiStruct | GetParameters () |
Get parameters created in the current run. | |
proto native void | ClearParams () |
Clear serialized data. | |
proto native string | GetStrParams () |
Get serialized parameters. | |
proto native void | StoreParams () |
Serialize params before reload. | |
proto native void | SetRefreshCallback (BackendCallback callback) |
Set callback for periodical room refresh. | |
proto native void | SetRefreshRate (int iRate) |
Set a time span between page updates (in ms). | |
proto native int | Target (out notnull array< Room > rooms) |
Get room searched by SearchTarget. | |
proto native int | SearchTarget (JsonApiStruct searchParams, BackendCallback callback) |
Search for a specific room and keep cached data. | |
proto native string | GetMyIP () |
Get automatically detected IP of the network adapter. | |
proto native string | GetPreviousRoomId () |
In case of a disconnection you can retrieve the previous room ID. | |
proto native void | ClearPreviousRoomId () |
proto native Room | GetRoomById (string id) |
Find the room by its ID in cached data. | |
proto native void | MeasureLatency (BackendCallback callback) |
Retrieve the pings sites and start to measure latency. | |
proto native bool | IsPingAvailable () |
True if ping data to the ping sites are ready to use. | |
proto native void | ProcessLastHostError (BackendCallback callback) |
Triggers OnError/OnTimeout in case the previous listen server initialization failed. | |
proto native void ClientLobbyApi.ClearInviteRoom | ( | ) |
Clear the room from GetInviteRoom()
proto native void ClientLobbyApi.ClearParams | ( | ) |
Clear serialized data.
proto native void ClientLobbyApi.ClearPreviousRoomId | ( | ) |
proto native void ClientLobbyApi.GenerateRooms | ( | ) |
proto native Room ClientLobbyApi.GetInviteRoom | ( | ) |
Get room for the last invite request.
Returns null if no room is available
proto native string ClientLobbyApi.GetMyIP | ( | ) |
Get automatically detected IP of the network adapter.
TODO: This will be obsolete when the proper LAN server support is ready
proto native JsonApiStruct ClientLobbyApi.GetParameters | ( | ) |
Get parameters created in the current run.
proto native string ClientLobbyApi.GetPreviousRoomId | ( | ) |
In case of a disconnection you can retrieve the previous room ID.
It should be cleared after that to prevent acquiring the same id twice.
proto native void ClientLobbyApi.GetRoomsByHostIds | ( | GetRoomsIds | searchParams, |
BackendCallback | callback | ||
) |
proto native void ClientLobbyApi.GetRoomsByIds | ( | GetRoomsIds | searchParams, |
BackendCallback | callback | ||
) |
proto native string ClientLobbyApi.GetStrParams | ( | ) |
Get serialized parameters.
proto native bool ClientLobbyApi.InvitationFailed | ( | ) |
Clear the room from GetInviteRoom()
proto native bool ClientLobbyApi.IsPingAvailable | ( | ) |
True if ping data to the ping sites are ready to use.
proto native void ClientLobbyApi.KillGeneratedRooms | ( | ) |
proto native void ClientLobbyApi.MeasureLatency | ( | BackendCallback | callback | ) |
Retrieve the pings sites and start to measure latency.
proto native void ClientLobbyApi.ProcessLastHostError | ( | BackendCallback | callback | ) |
Triggers OnError/OnTimeout in case the previous listen server initialization failed.
Get room data for current position.
proto native void ClientLobbyApi.Scroll | ( | int | position, |
BackendCallback | callback | ||
) |
Update current position.
proto native void ClientLobbyApi.SearchRooms | ( | JsonApiStruct | searchParams, |
BackendCallback | callback | ||
) |
Search first batch of rooms.
proto native int ClientLobbyApi.SearchTarget | ( | JsonApiStruct | searchParams, |
BackendCallback | callback | ||
) |
Search for a specific room and keep cached data.
proto native void ClientLobbyApi.SetRefreshCallback | ( | BackendCallback | callback | ) |
Set callback for periodical room refresh.
proto native void ClientLobbyApi.SetRefreshRate | ( | int | iRate | ) |
Set a time span between page updates (in ms).
proto native void ClientLobbyApi.SetViewSize | ( | int | size | ) |
View size is expected size of rooms from Rooms(rooms).
proto native void ClientLobbyApi.StoreParams | ( | ) |
Serialize params before reload.
Get room searched by SearchTarget.
proto native int ClientLobbyApi.TotalRoomCount | ( | ) |
The total room count by the current filter.