Photon Fusion 2.0.3

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

Represents the configuration for network simulation. More...

Static Public Member Functions

static NetConfigSimulation WithLossNotifySequences (params short[] sequences)
 Creates a configuration with specified loss notification sequences. More...
 

Public Attributes

NetConfigSimulationOscillator DelayOscillator
 The oscillator used for simulating delay. More...
 
double DuplicateChance
 The chance of a duplicate packet. More...
 
short * LossNotifySequences
 Pointer to the sequences used for loss notifications. More...
 
int LossNotifySequencesLength
 The length of the loss notification sequences. More...
 
NetConfigSimulationOscillator LossOscillator
 The oscillator used for simulating loss. More...
 

Properties

static NetConfigSimulation Defaults [get]
 Gets the default configuration for network simulation. More...
 

Detailed Description

Represents the configuration for network simulation.

Member Function Documentation

◆ WithLossNotifySequences()

static NetConfigSimulation WithLossNotifySequences ( params short[]  sequences)
static

Creates a configuration with specified loss notification sequences.

Parameters
sequencesThe sequences to be used for loss notifications.
Returns
A new instance of NetConfigSimulation with the specified sequences.

Member Data Documentation

◆ DelayOscillator

The oscillator used for simulating delay.

◆ DuplicateChance

double DuplicateChance

The chance of a duplicate packet.

◆ LossNotifySequences

short* LossNotifySequences

Pointer to the sequences used for loss notifications.

◆ LossNotifySequencesLength

int LossNotifySequencesLength

The length of the loss notification sequences.

◆ LossOscillator

The oscillator used for simulating loss.

Property Documentation

◆ Defaults

NetConfigSimulation Defaults
staticget

Gets the default configuration for network simulation.