Quantum 3
3.1.0
Extension methods to enhance creating and initializing SessionRunner.Arguments to simplify Quantum start procedures. Using any form of Init(ref SessionRunner.Arguments, RuntimeConfig) is optional and can be replaced by setting all arguments manually. More...
Static Public Member Functions | |
| static ref SessionRunner.Arguments | Init (this ref SessionRunner.Arguments arguments, RuntimeConfig runtimeConfig) |
| Init the session runner arguments to bind Unity related and global defaults. It's replacing QuantumRunnerUnityFactory.CreateGameParameters. Sets defaults for AssetSerializer CallbackDispatcher, EventDispatcher, ResourceManager, RunnerFactory, TaskRunner, SessionConfig, RuntimeConfig and PlayerCount. More... | |
| static ref SessionRunner.Arguments | InitForInstantReplay (this ref SessionRunner.Arguments arguments, QuantumGame game, Frame snapshot, IDeterministicReplayProvider replayProvider) |
| Initializes session runner arguments to start a local replay simulation from running simulation. More... | |
| static ref SessionRunner.Arguments | InitForLocal (this ref SessionRunner.Arguments arguments, RuntimeConfig runtimeConfig) |
| Initializes session runner arguments to start a local simulation. Init(ref SessionRunner.Arguments, RuntimeConfig) More... | |
| static ref SessionRunner.Arguments | InitForMultiplayer (this ref SessionRunner.Arguments arguments, RuntimeConfig runtimeConfig, RealtimeClient client, string clientId, ShutdownConnectionOptions clientShutdownOption=ShutdownConnectionOptions.Disconnect) |
| Initializes session runner arguments to start a multiplayer simulation. Init(ref SessionRunner.Arguments, RuntimeConfig) More... | |
| static ref SessionRunner.Arguments | InitForReplay (this ref SessionRunner.Arguments arguments, QuantumReplayFile replayFile, IAssetSerializer serializer=null, byte[] assets=null) |
| Initializes session runner arguments to start a local replay simulation from a file. More... | |
| static ref SessionRunner.Arguments | InitForSnapshot (this ref SessionRunner.Arguments arguments, QuantumReplayFile replayFile, IAssetSerializer serializer=null, byte[] assets=null) |
| Initialized session arguments to start a local game from a snapshot file. Internally uses InitForReplay(ref SessionRunner.Arguments, QuantumReplayFile, IAssetSerializer, byte[]) More... | |
Extension methods to enhance creating and initializing SessionRunner.Arguments to simplify Quantum start procedures. Using any form of Init(ref SessionRunner.Arguments, RuntimeConfig) is optional and can be replaced by setting all arguments manually.
|
inlinestatic |
Init the session runner arguments to bind Unity related and global defaults. It's replacing QuantumRunnerUnityFactory.CreateGameParameters. Sets defaults for AssetSerializer CallbackDispatcher, EventDispatcher, ResourceManager, RunnerFactory, TaskRunner, SessionConfig, RuntimeConfig and PlayerCount.
| arguments | Arguments to initialize |
| runtimeConfig | Runtime config |
|
inlinestatic |
Initializes session runner arguments to start a local simulation. Init(ref SessionRunner.Arguments, RuntimeConfig)
| arguments | Arguments to initialize |
| runtimeConfig | Runtime config |
|
inlinestatic |
Initializes session runner arguments to start a multiplayer simulation. Init(ref SessionRunner.Arguments, RuntimeConfig)
| arguments | Arguments to initialize |
| runtimeConfig | Runtime config |
| client | The connected Realtime client object |
| clientId | The SessionRunner.Arguments.ClientId |
| clientShutdownOption | Optional connection shutdown options |
|
inlinestatic |
Initializes session runner arguments to start a local replay simulation from a file.
| arguments | Arguments to initialize |
| replayFile | Source of the replay data |
| serializer | Optionally the asset serializer, for example QuantumUnityJsonSerializer |
| assets | Optionally the Quantum DB assets as binary serialized (e.g. from a file). |
|
inlinestatic |
Initializes session runner arguments to start a local replay simulation from running simulation.
| arguments | Arguments to initialize |
| game | The main game to copy data from |
| snapshot | The saved snapshot to start from |
| replayProvider | The input provider |
|
inlinestatic |
Initialized session arguments to start a local game from a snapshot file. Internally uses InitForReplay(ref SessionRunner.Arguments, QuantumReplayFile, IAssetSerializer, byte[])
| arguments | Arguments to initialize |
| replayFile | Source of the replay data |
| serializer | Optionally the asset serializer, for example QuantumUnityJsonSerializer |
| assets | Optionally the Quantum DB assets as binary serialized (e.g. from a file). |