Photon Fusion 2.1.1

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.

Public Attributes

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

Properties

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

Detailed Description

Represents the configuration for network simulation.

Member Function Documentation

◆ WithLossNotifySequences()

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.