Netick.NetworkEventsListner Class Reference
Inheritance diagram for Netick.NetworkEventsListner:
Netick.NetworkEvents

Public Member Functions

virtual void OnConnectRequest (NetworkSandbox sandbox, NetworkConnectionRequest request)
 
virtual void OnConnectFailed (NetworkSandbox sandbox, ConnectionFailedReason reason)
 
virtual void OnInput (NetworkSandbox sandbox)
 
virtual void OnStartup (NetworkSandbox sandbox)
 
virtual void OnShutdown (NetworkSandbox sandbox)
 
virtual void OnSceneLoaded (NetworkSandbox sandbox)
 
virtual void OnSceneLoadStarted (NetworkSandbox sandbox)
 
virtual void OnClientSceneLoaded (NetworkSandbox sandbox, NetworkConnection client)
 
virtual void OnConnectedToServer (NetworkSandbox sandbox, NetworkConnection server)
 
virtual void OnDisconnectedFromServer (NetworkSandbox sandbox, NetworkConnection server)
 
virtual void OnClientConnected (NetworkSandbox sandbox, NetworkConnection client)
 
virtual void OnClientDisconnected (NetworkSandbox sandbox, NetworkConnection client)
 
virtual void OnObjectCreated (NetworkObject entity)
 
virtual void OnObjectDestroyed (NetworkObject entity)
 
virtual void OnMatchListUpdate (NetworkSandbox sandbox, List< Session > sessions)
 
virtual void OnMatchCreated (NetworkSandbox sandbox)
 
void UnlinkFromNetick ()
 

Properties

NetworkSandbox Sandbox [get, set]
 

Member Function Documentation

◆ OnClientConnected()

virtual void Netick.NetworkEventsListner.OnClientConnected ( NetworkSandbox  sandbox,
NetworkConnection  client 
)
virtual

Called on the server when a specific client has connected.

Parameters
sandbox
client

Reimplemented in Netick.NetworkEvents.

◆ OnClientDisconnected()

virtual void Netick.NetworkEventsListner.OnClientDisconnected ( NetworkSandbox  sandbox,
NetworkConnection  client 
)
virtual

Called on the server when a specific client has disconnected.

Parameters
sandbox
client

Reimplemented in Netick.NetworkEvents.

◆ OnClientSceneLoaded()

virtual void Netick.NetworkEventsListner.OnClientSceneLoaded ( NetworkSandbox  sandbox,
NetworkConnection  client 
)
virtual

Called on the server when a specific client finished loading the scene.

Parameters
sandbox
client

Reimplemented in Netick.NetworkEvents.

◆ OnConnectedToServer()

virtual void Netick.NetworkEventsListner.OnConnectedToServer ( NetworkSandbox  sandbox,
NetworkConnection  server 
)
virtual

Called on the client when connection to the server has been initiated.

Parameters
sandbox
server

Reimplemented in Netick.NetworkEvents.

◆ OnConnectFailed()

virtual void Netick.NetworkEventsListner.OnConnectFailed ( NetworkSandbox  sandbox,
ConnectionFailedReason  reason 
)
virtual

Called on the client when the connection to the server was refused, or simply failed.

Parameters
sandbox
reason

Reimplemented in Netick.NetworkEvents.

◆ OnConnectRequest()

virtual void Netick.NetworkEventsListner.OnConnectRequest ( NetworkSandbox  sandbox,
NetworkConnectionRequest  request 
)
virtual

Called on the server when a client tries to connect. Use request to decide whether or not to allow this client to connect.

Parameters
sandbox
request

Reimplemented in Netick.NetworkEvents.

◆ OnDisconnectedFromServer()

virtual void Netick.NetworkEventsListner.OnDisconnectedFromServer ( NetworkSandbox  sandbox,
NetworkConnection  server 
)
virtual

Called on the client when connection to the server ended, or when a network error caused the disconnection.

Parameters
sandbox
server

Reimplemented in Netick.NetworkEvents.

◆ OnInput()

virtual void Netick.NetworkEventsListner.OnInput ( NetworkSandbox  sandbox)
virtual

Called to read inputs.

Parameters
sandbox

Reimplemented in Netick.NetworkEvents.

◆ OnMatchCreated()

virtual void Netick.NetworkEventsListner.OnMatchCreated ( NetworkSandbox  sandbox)
virtual

Reimplemented in Netick.NetworkEvents.

◆ OnMatchListUpdate()

virtual void Netick.NetworkEventsListner.OnMatchListUpdate ( NetworkSandbox  sandbox,
List< Session sessions 
)
virtual

Reimplemented in Netick.NetworkEvents.

◆ OnObjectCreated()

virtual void Netick.NetworkEventsListner.OnObjectCreated ( NetworkObject  entity)
virtual

Called when a network object has been created/initialized.

Parameters
entity

Reimplemented in Netick.NetworkEvents.

◆ OnObjectDestroyed()

virtual void Netick.NetworkEventsListner.OnObjectDestroyed ( NetworkObject  entity)
virtual

Called when a network object has been destroyed/recycled.

Parameters
entity

Reimplemented in Netick.NetworkEvents.

◆ OnSceneLoaded()

virtual void Netick.NetworkEventsListner.OnSceneLoaded ( NetworkSandbox  sandbox)
virtual

Called on both the client and the server when the scene has been loaded.

Parameters
sandbox

Reimplemented in Netick.NetworkEvents.

◆ OnSceneLoadStarted()

virtual void Netick.NetworkEventsListner.OnSceneLoadStarted ( NetworkSandbox  sandbox)
virtual

Called on both the client and the server before beginning to load the new scene.

Parameters
sandbox

Reimplemented in Netick.NetworkEvents.

◆ OnShutdown()

virtual void Netick.NetworkEventsListner.OnShutdown ( NetworkSandbox  sandbox)
virtual

Called when Netick has been shut down.

Parameters
sandbox

Reimplemented in Netick.NetworkEvents.

◆ OnStartup()

virtual void Netick.NetworkEventsListner.OnStartup ( NetworkSandbox  sandbox)
virtual

Called when Netick has been started.

Parameters
sandbox

Reimplemented in Netick.NetworkEvents.

◆ UnlinkFromNetick()

void Netick.NetworkEventsListner.UnlinkFromNetick ( )

Property Documentation

◆ Sandbox

NetworkSandbox Netick.NetworkEventsListner.Sandbox
getset