Multinet 0.2
 
Loading...
Searching...
No Matches
Multinet.Client.GameClient Class Reference

Client implementation for the multiplayer game. More...

Inheritance diagram for Multinet.Client.GameClient:

Public Member Functions

delegate void JoinServerFailedEventHandler (int error)
 Signal emitted when the client fails to establish a connection to the server.
 
void SetConfiguration (ClientConfiguration newConfiguration)
 Sets the client configuration for the multiplayer game.
 
int Connect ()
 Connects to the server.
 
void Disconnect ()
 Disconnects from the server.
 

Properties

float TimerOffset [get]
 The time in ms that all clients are offset from the server.
 

Detailed Description

Client implementation for the multiplayer game.

Member Function Documentation

◆ Connect()

int Multinet.Client.GameClient.Connect ( )

Connects to the server.

Returns
The generated peer ID from Godot Multipayer API.

◆ Disconnect()

void Multinet.Client.GameClient.Disconnect ( )

Disconnects from the server.

◆ JoinServerFailedEventHandler()

delegate void Multinet.Client.GameClient.JoinServerFailedEventHandler ( int error)

Signal emitted when the client fails to establish a connection to the server.

Parameters
errorThe error code from Godot Multiplayer API.

◆ SetConfiguration()

void Multinet.Client.GameClient.SetConfiguration ( ClientConfiguration newConfiguration)

Sets the client configuration for the multiplayer game.

Property Documentation

◆ TimerOffset

float Multinet.Client.GameClient.TimerOffset
get

The time in ms that all clients are offset from the server.


The documentation for this class was generated from the following file: