Photon Fusion 2.0.3

Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
NetCommandHeader Struct Reference

Network Command Header Describe its type and usual settings for all commands More...

Static Public Member Functions

static NetCommandHeader Create (NetCommands command)
 Create a new NetCommandHeader based on a NetCommands type More...
 
static implicit operator NetCommandHeader (NetCommands commands)
 

Public Attributes

NetCommands Command
 
NetPacketType PacketType
 

Static Public Attributes

const int SIZE_BITS = SIZE_BYTES * 8
 
const int SIZE_BYTES = 2
 

Detailed Description

Network Command Header Describe its type and usual settings for all commands

Member Function Documentation

◆ Create()

static NetCommandHeader Create ( NetCommands  command)
static

Create a new NetCommandHeader based on a NetCommands type

Parameters
commandType of Command that should be created
Returns
New NetCommandHeader reference based on the Command Type