Photon Fusion 1.1.9

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

Fusion Start Arguments, used to configure the simulation mode and other settings. More...

Public Member Functions

override string ToString ()
 StartGameArgs ToString()
 

Public Attributes

NetAddressAddress
 Peer Binding Address.
 
AuthenticationValues AuthValues
 Custom Authentication Data.
 
NetworkProjectConfig Config
 Custom NetworkProjectConfig used to start the simulation.
 
byte[] ConnectionToken
 Connection token sent by client to server. Not used in shared mode.
 
Type[] CustomCallbackInterfaces
 User defined callback interfaces we will provide O(1) constant time lookup for.
 
string CustomLobbyName
 Session Custom Lobby to be published in.
 
AppSettings CustomPhotonAppSettings
 Custom Photon Application Settings.
 
NetAddressCustomPublicAddress
 Custom Public Reflexive Address.
 
string CustomSTUNServer
 Specify a Custom STUN Server used to Resolve the peer Reflexive Addresses.
 
bool DisableClientSessionCreation
 Disables the Session creation when starting a Client with an specific Session Name.
 
bool DisableNATPunchthrough
 Flag to disable the NAT Punchthrough implementation and connect only via Relay.
 
GameMode GameMode
 Fusion.GameMode in which this peer will start
 
Action< NetworkRunnerHostMigrationResume
 Callback invoked when the new Host is migrating from the old Host state.
 
HostMigrationToken HostMigrationToken
 Host Migration Token used when restarting the Fusion Simulation.
 
Action< NetworkRunnerInitialized
 Callback that is invoked when the Fusion has fully started.
 
bool? IsOpen
 Session should be created Open or Closed to accept joins.
 
bool? IsVisible
 Session should be Visible or not in the Session Lobby list.
 
MatchmakingMode? MatchmakingMode
 Session Join Matchmaking Mode when joining a Session. For more information, check Fusion.Photon.Realtime.MatchmakingMode
 
INetworkObjectPool ObjectPool
 Object pool to use.
 
int? PlayerCount
 Number of players allowed to connect to this peer, when running in Server/Host Mode.
 
SceneRef? Scene
 Scene that will be set as the starting Scene when running in Server/Host Mode.
 
INetworkSceneManager SceneManager
 See INetworkSceneManager.
 
string SessionName
 Photon Cloud Session Name used either to Create or Join a Session.
 
Dictionary< string, SessionProperty > SessionProperties
 Custom Session Properties. This dictionary can be used to either setup the initial Session Properties when creating a Session but also to set the matchmaking filters when joining a Random Session.
 
bool? UseDefaultPhotonCloudPorts
 Signal if the internal Realtime Client should use the Default Photon ports to connect to the Photon Cloud. By default, Fusion uses ports: 27000, 27001 and 27002. Set this to True to use ports: 5058, 5055 and 5056.

See also
https://doc.photonengine.com/fusion/current/connection-and-authentication/tcp-and-udp-port-numbers

 

Detailed Description

Fusion Start Arguments, used to configure the simulation mode and other settings.

More about matchmaking: https://doc.photonengine.com/fusion/v1/manual/matchmaking

Member Data Documentation

◆ Address

NetAddress? Address

Peer Binding Address.

Default: NetAddress.Any(ushort)

◆ AuthValues

AuthenticationValues AuthValues

Custom Authentication Data.

Default: null (default authentication values)

◆ Config

Custom NetworkProjectConfig used to start the simulation.

Default: Global NetworkProjectConfig

More about NetworkProjectConfig: https://doc.photonengine.com/en-us/fusion/current/manual/network-project-config

◆ ConnectionToken

byte [] ConnectionToken

Connection token sent by client to server. Not used in shared mode.

Default: null (empty connection token)

◆ CustomCallbackInterfaces

Type [] CustomCallbackInterfaces

User defined callback interfaces we will provide O(1) constant time lookup for.

Default: null

◆ CustomLobbyName

string CustomLobbyName

Session Custom Lobby to be published in.

Default: null (default Lobby for each Session Type, LobbyClientServer or LobbyShared)

◆ CustomPhotonAppSettings

AppSettings CustomPhotonAppSettings

Custom Photon Application Settings.

Default: null (Global PhotonAppSettings)

◆ CustomPublicAddress

NetAddress? CustomPublicAddress

Custom Public Reflexive Address.

Default: null

◆ CustomSTUNServer

string CustomSTUNServer

Specify a Custom STUN Server used to Resolve the peer Reflexive Addresses.

Default: null (no custom STUN Server)

◆ DisableClientSessionCreation

bool DisableClientSessionCreation

Disables the Session creation when starting a Client with an specific Session Name.

Default: false (clients can create new Sessions)

◆ DisableNATPunchthrough

bool DisableNATPunchthrough

Flag to disable the NAT Punchthrough implementation and connect only via Relay.

Default: false

◆ HostMigrationResume

Action<NetworkRunner> HostMigrationResume

Callback invoked when the new Host is migrating from the old Host state.

Default: null

◆ HostMigrationToken

Host Migration Token used when restarting the Fusion Simulation.

Default: null

◆ Initialized

Action<NetworkRunner> Initialized

Callback that is invoked when the Fusion has fully started.

Default: null

◆ IsOpen

bool? IsOpen

Session should be created Open or Closed to accept joins.

Default: true

◆ IsVisible

bool? IsVisible

Session should be Visible or not in the Session Lobby list.

Default: true

◆ MatchmakingMode

MatchmakingMode? MatchmakingMode

Session Join Matchmaking Mode when joining a Session. For more information, check Fusion.Photon.Realtime.MatchmakingMode

Default: MatchmakingMode.FillRoom

◆ ObjectPool

INetworkObjectPool ObjectPool

Object pool to use.

Default: null

◆ PlayerCount

int? PlayerCount

Number of players allowed to connect to this peer, when running in Server/Host Mode.

Default: DefaultPlayers from the Global NetworkProjectConfig

◆ Scene

SceneRef? Scene

Scene that will be set as the starting Scene when running in Server/Host Mode.

Default: null (no scene set)

◆ SceneManager

INetworkSceneManager SceneManager

See INetworkSceneManager.

Default: null

More about Scene Loading: https://doc.photonengine.com/en-us/fusion/current/manual/scene-loading

◆ SessionName

string SessionName

Photon Cloud Session Name used either to Create or Join a Session.

Default: null (random session matching)

◆ SessionProperties

Dictionary<string, SessionProperty> SessionProperties

Custom Session Properties. This dictionary can be used to either setup the initial Session Properties when creating a Session but also to set the matchmaking filters when joining a Random Session.

Default: null (empty custom properties)

◆ UseDefaultPhotonCloudPorts

bool? UseDefaultPhotonCloudPorts

Signal if the internal Realtime Client should use the Default Photon ports to connect to the Photon Cloud. By default, Fusion uses ports: 27000, 27001 and 27002. Set this to True to use ports: 5058, 5055 and 5056.

See also
https://doc.photonengine.com/fusion/current/connection-and-authentication/tcp-and-udp-port-numbers

Default: false (uses ports 27000, 27001 and 27002)