Skip to main content

IDomainController

An interface in Root.Township, ATT.Domains.

Creates and tracks per-player domains (spawned areas tied to one player). Implemented by DomainController and bound in GameLifetimeScope. Create and destroy are server only.

Methods​

MemberWhat it is
Task<Domain> CreateDomainForPlayer(IPlayer player)Server: spawns a domain for the player at the next free offset.
Task DestroyDomain(Domain domain)Server: destroys a domain and clears its save.
Domain GetDomainForPlayer(IPlayer player)Returns the player's domain, or null.

Used in​

Members of other types that take, return or hold a IDomainController: