Skip to main content

GameLifetimeScope

A class in Alta.LifetimeScopes, Alta.ATT.LifetimeScopes.

VContainer scope for the game scene. Registers the respawn system and, outside the tutorial scene, the domain controller and micro tutorial system.

Constructors​

MemberWhat it is
GameLifetimeScope()Creates a GameLifetimeScope with default values.

Fields​

4 private and internal fields
MemberWhat it is
private DomainController domainControllerThe scene's domain controller.
private bool isTutorialSceneTrue for the tutorial scene, which uses a default respawn provider and no micro tutorials.
private MicroTutorialSystem microTutorialSystemThe scene's micro tutorial system.
private RespawnSystem respawnSystemThe scene's respawn system.

Methods​

MemberWhat it is
protected override void ConfigureScope(IContainerBuilder builder)Runs the static game setup, then registers respawn and micro tutorial services.
2 private and internal methods
MemberWhat it is
private void RegisterMicroTutorialDependencies(IContainerBuilder builder)Outside the tutorial scene, binds IDomainController and IMicroTutorialSystem to the scene objects.
private void RegisterRespawnSystemDependencies(IContainerBuilder builder)In the tutorial scene, binds a default respawn position provider; otherwise binds the scene's RespawnSystem.