Skip to main content

INetworkScene

An interface in Root.Township, Alta.Networking.

The networked scene: the spawner, the special chunks and a few server settings everyone can read. NetworkSceneManager.Current is the one in use.

Properties​

MemberWhat it is
ConnectionChannel ChunkSyncChannel { get; }Connection channel used for chunk sync.
float DecayMultiplier { get; }The server's DecayMultiplier setting.
List<NetworkEntity> Embedded { get; }Entities built into the scene rather than spawned.
Chunk GlobalChunk { get; }Chunk holding the scene's own entities (managers, fixtures, chunk entities). The server loads it at start and adds every player.
bool HasSaveFiles { get; }True if the server's IsSaving setting is on.
bool IsCustomizationEnabled { get; }The server's IsCustomizationEnabled setting.
bool IsSimpleServer { get; set; }True for a server that targets Quest; the player limit is then at most 8.
int LoadingCount { get; set; }Counter of things still loading.
SpawnArea RespawnPoint { get; }Area where players respawn.
SpawnManager Spawner { get; }The spawn manager, for spawning and destroying entities.
Transform SpawnPoint { get; }Default spawn transform.
float SpawnRateMultiplier { get; }The server's SpawningRateMultiplier setting.
Chunk VoidChunk { get; }A parking chunk for bodies waiting for their destination to load.

Events​

MemberWhat it is
event Action ServerStartedRaised when the server has started.

Methods​

MemberWhat it is
NetworkEntity GetEntity(uint identifier)Finds an entity by identifier.

Used in​

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