AppLoadContext
Summary
Contains the application load information when the game initially loads.
Definition
Namespace: SDT4.Managed.Core
Assembly: SDT4.Managed.Core.dll
struct AppLoadContext
Implements:
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; Args |
String[] | The application arguments used when launching |
public get; Env |
String[] | The environment variables available when launching the application |
public get; InstanceReadyTask |
Task<AppInstance> | Task containing the app instance once the components are ready. |
public get; GameReadyTask |
Task | Task that finishes once the opening screen finishes playing. In the event of AppLoadContext.InstanceReadyTask |
| throws an exception, this task throws a InvalidOperationException. |
Args Remarks
Warning
This includes engine specific arguments such as -rhi, refer to the engine manual to avoid usage of certain argument names
InstanceReadyTask Remarks
Warning
This task may throw a InvalidOperationException in case of the application failing to load any components. In this situation, the application cannot be loaded and the app must be restarted by the user.
GameReadyTask Remarks
Note
In the case of a headless application, this task is NULL.