Struct NetworkDriverStore
Store and manage an array of NetworkDriver. The capacity is fixed to Capacity. The driver registration should start by calling BeginDriverRegistration() and terminate with EndDriverRegistration(). The store also provide some accessor and utlilty methods.
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public struct NetworkDriverStore
Fields
Name | Description |
---|---|
Capacity | The fixed capacity of the driver container. |
First |
The first assigned uniqued identifier to each driver. |
Properties
Name | Description |
---|---|
Drivers |
The number of registed drivers. Must be always less then the total driver Capacity. |
First |
The first driver id present in the store. Can be used to iterate over all registered drivers in a for loop. |
Is |
Return true if the driver store contains a driver that has a simulator pipeline. |
Last |
The last driver id present in the store. Can be used to iterate over all registered drivers in a for loop. |
Methods
Name | Description |
---|---|
Disconnect(Network |
Utility method to disconnect the Network |
Dispose() | Dispose all the registered drivers instances and their allocated resources. |
For |
Invoke the delegate on all registered drivers. |
Get |
Return the state of the Network |
Get |
Return the Network |
Get |
Return the transport type used by the registered driver. |
Get |
Return the Network |
Register |
Add a new driver to the store. Throw exception if all drivers slot are already occupied or the driver is not created/valid |
Schedule |
Invoke Schedule |