RootLifetimeScope
Concepts
The top-level LifetimeScope for a project.
It lasts from the start of the game to the end.
The ScreenSystem is also responsible for launching a kind of EntryPoint.
Implementation policy
Page containers and modal containers are referenced via SerializeField.
Register the two referenced containers.
IContainerBuilder
type as an extension method of the ScreenSystem-supportedRegisterPageSystem
andRegisterModalSystem
methods supported by ScreenSystem.
Push the first page.
Create an EntryPoint class.
Implement it using the IStartable interface.
Register as a RegisterEntryPoint in the RootLifetimeScope.
Inject a PageEventPublisher and send a PageBuilder as a message to push the page.
Register other message brokers, network-related dependencies, etc.
Last updated