ProjectLifetimeScope
A class in Alta.LifetimeScopes, Alta.ATT.LifetimeScopes.
The root VContainer dependency injection scope for the whole game. Runs first (execution order -32000), survives scene loads, and only one may exist.
- Listed in Other Alta assemblies
- Inherits or implements
AbstractAltaLifetimeScope - Attributes
DefaultExecutionOrder - Documented in Event buses and services
Constructors
| Member | What it is |
|---|---|
ProjectLifetimeScope() | Creates a ProjectLifetimeScope with default values. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private AnalyticsInstaller analyticsInstaller | Private: installs the analytics services. |
private static ProjectLifetimeScope instance | Private: the one live scope, used to reject duplicates. |
private LoadingScreenFactory loadingScreenFactory | Private: the loading screen factory bound into the container. |
private static readonly Logger logger | Private: logger for startup and quit messages. |
private GlobalSettingsInstaller settingsInstaller | Private: installs the global settings assets. |
Methods
4 private and internal methods
| Member | What it is |
|---|---|
private void OnApplicationQuit() | Private: starts OnApplicationQuitRoutine when the application quits. |
private IEnumerator OnApplicationQuitRoutine() (iterator) | Private: at the end of the frame, disposes the container and destroys the scope's object. |
private static void RegisterAltaLifecycle(IContainerBuilder builder) | Private: binds IDisposer to a new Disposer for each request. |
private static void SetBuildVersionForEditorRuntime() | Private: empty in this build. |
Used in
Members of other types that take, return or hold a ProjectLifetimeScope: