Photon Fusion 2.0.5

Public Member Functions | Public Attributes | List of all members
NetSendEnvelope Struct Reference

Represents an envelope for sending network packets in the Fusion.Sockets namespace. More...

Public Member Functions

T * TakeUserData< T > ()
 Takes the user data associated with the envelope and sets the UserData to null. More...
 

Public Attributes

double SendTime
 Gets or sets the time the packet was sent. More...
 
ushort Sequence
 Gets or sets the sequence number of the packet. More...
 
void * UserData
 Gets or sets the user data associated with the envelope. More...
 

Detailed Description

Represents an envelope for sending network packets in the Fusion.Sockets namespace.

Member Function Documentation

◆ TakeUserData< T >()

T* TakeUserData< T > ( )

Takes the user data associated with the envelope and sets the UserData to null.

Template Parameters
TThe type of the user data.
Returns
The user data cast to the specified type.
Exceptions
AssertExceptionThrown if UserData is null.
Type Constraints
T :unmanaged 

Member Data Documentation

◆ SendTime

double SendTime

Gets or sets the time the packet was sent.

◆ Sequence

ushort Sequence

Gets or sets the sequence number of the packet.

◆ UserData

void* UserData

Gets or sets the user data associated with the envelope.