Method RegisterClientDriver
RegisterClientDriver(World, ref NetworkDriverStore, NetDebug)
Register a NetworkDriver instance in the driverStore that uses either:
Declaration
public static void RegisterClientDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug)
Parameters
| Type | Name | Description |
|---|---|---|
| World | world | Used for determining whether we are running in a client or server world. |
| NetworkDriverStore | driverStore | Store for NetworkDriver. |
| NetDebug | netDebug | For handling logging. |
RegisterClientDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings)
Register a NetworkDriver instance in the driverStore that uses either:
Declaration
public static void RegisterClientDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug, NetworkSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| World | world | Used for determining whether we are running in a client or server world. |
| NetworkDriverStore | driverStore | Store for NetworkDriver. |
| NetDebug | netDebug | For handling logging. |
| NetworkSettings | settings | A list of the parameters that describe the network configuration. |
RegisterClientDriver(World, ref NetworkDriverStore, NetDebug, ref RelayServerData)
Register a NetworkDriver instance in and stores it in driverStore:
- a single IPCNetworkInterface NetworkDriver if the both client and server worlds are present in the same process.
- a single UDPNetworkInterface driver in all other cases.
These are configured using the default settings. See GetNetworkSettings().
Declaration
public static void RegisterClientDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug, ref RelayServerData relayData)
Parameters
| Type | Name | Description |
|---|---|---|
| World | world | Used for determining whether we are running in a client or server world. |
| NetworkDriverStore | driverStore | Store for NetworkDriver. |
| NetDebug | netDebug | For handling logging. |
| RelayServerData | relayData | Server information to make a connection using a relay server. |