Photon Fusion 2.0.3

Public Member Functions | Public Attributes | List of all members
NetworkBehaviour.BehaviourReader< T > Struct Template Reference

Provides a reader for network behaviours of type T. More...

Public Member Functions

T Read (NetworkBehaviourBuffer first)
 Reads a network behaviour from the provided network behaviour buffer. More...
 
T Read (NetworkBehaviourBuffer first, NetworkBehaviourBuffer second)
 

Public Attributes

 T
 Reads two network behaviours from the provided network behaviour buffers. More...
 

Detailed Description

Provides a reader for network behaviours of type T.

Template Parameters
TThe type of the network behaviour.
Type Constraints
T :NetworkBehaviour 

Member Function Documentation

◆ Read()

T Read ( NetworkBehaviourBuffer  first)

Reads a network behaviour from the provided network behaviour buffer.

Parameters
firstThe network behaviour buffer to read the network behaviour from.
Returns
The network behaviour of type T read from the buffer. Returns null if the behaviour is not found.

Member Data Documentation

◆ T

T

Reads two network behaviours from the provided network behaviour buffers.

Parameters
firstThe first network behaviour buffer to read the network behaviour from.
secondThe second network behaviour buffer to read the network behaviour from.
Returns
A tuple containing the two network behaviours of type T read from the buffers.