Photon Fusion 2.0.4

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

Represents a reliable key structure used in the Fusion.Sockets namespace. More...

Public Member Functions

void GetInts (out int key0, out int key1, out int key2, out int key3)
 Gets the key data as integers. More...
 
void GetUlongs (out ulong key0, out ulong key1)
 Gets the key data as unsigned long integers. More...
 

Static Public Member Functions

static ReliableKey FromInts (int key0=0, int key1=0, int key2=0, int key3=0)
 Creates a ReliableKey from integer values. More...
 
static ReliableKey FromULongs (ulong key0=0, ulong key1=0)
 Creates a ReliableKey from unsigned long values. More...
 

Public Attributes

fixed byte Data [16]
 Fixed byte array to store the key data. More...
 

Static Public Attributes

const int SIZE = 16
 The size of the ReliableKey structure in bytes. More...
 

Detailed Description

Represents a reliable key structure used in the Fusion.Sockets namespace.

Member Function Documentation

◆ FromInts()

static ReliableKey FromInts ( int  key0 = 0,
int  key1 = 0,
int  key2 = 0,
int  key3 = 0 
)
static

Creates a ReliableKey from integer values.

Parameters
key0The first integer key.
key1The second integer key.
key2The third integer key.
key3The fourth integer key.
Returns
A new ReliableKey instance.

◆ FromULongs()

static ReliableKey FromULongs ( ulong  key0 = 0,
ulong  key1 = 0 
)
static

Creates a ReliableKey from unsigned long values.

Parameters
key0The first unsigned long key.
key1The second unsigned long key.
Returns
A new ReliableKey instance.

◆ GetInts()

void GetInts ( out int  key0,
out int  key1,
out int  key2,
out int  key3 
)

Gets the key data as integers.

Parameters
key0The first integer key.
key1The second integer key.
key2The third integer key.
key3The fourth integer key.

◆ GetUlongs()

void GetUlongs ( out ulong  key0,
out ulong  key1 
)

Gets the key data as unsigned long integers.

Parameters
key0The first unsigned long key.
key1The second unsigned long key.

Member Data Documentation

◆ Data

fixed byte Data[16]

Fixed byte array to store the key data.

◆ SIZE

const int SIZE = 16
static

The size of the ReliableKey structure in bytes.