Kanda Foundation 0.2.0
Loading...
Searching...
No Matches
EntityWorldService Class Reference

More...

+ Inheritance diagram for EntityWorldService:

Public Member Functions

 EntityWorldService (IPlatformInfoService platform)
 
void SetupLobbyWorlds ()
 Sets up local ECS world for use in the Lobby.
 
void SetupOfflineSessionWorlds ()
 Sets up NetCode client and server world for use in offline sessions.
 
void SetupServerHostedSessionWorlds ()
 Sets up NetCode client or server world (depending on platform) for server hosted sessions.
 
void SetupClientHostedLanSessionWorlds (bool clientIsHost)
 Sets up NetCode client and server worlds (depending on if client is host) for client hosted sessions.
 

Static Public Member Functions

static void DestroyActiveWorlds ()
 Destroys any active simulation worlds. This is relevant in the case where, in the lobby, we are running the local world, but when joining a NetCode session, we want to destroy it and have only client/server worlds.
 

Properties

World LocalWorld [get]
 
World ClientWorld [get]
 
World ServerWorld [get]
 
- Properties inherited from IEntityWorldService

Detailed Description

Member Function Documentation

◆ SetupClientHostedLanSessionWorlds()

void SetupClientHostedLanSessionWorlds ( bool clientIsHost)
inline

Sets up NetCode client and server worlds (depending on if client is host) for client hosted sessions.

Implements IEntityWorldService.

◆ SetupLobbyWorlds()

void SetupLobbyWorlds ( )
inline

Sets up local ECS world for use in the Lobby.

Implements IEntityWorldService.

◆ SetupOfflineSessionWorlds()

void SetupOfflineSessionWorlds ( )
inline

Sets up NetCode client and server world for use in offline sessions.

Implements IEntityWorldService.

◆ SetupServerHostedSessionWorlds()

void SetupServerHostedSessionWorlds ( )
inline

Sets up NetCode client or server world (depending on platform) for server hosted sessions.

Implements IEntityWorldService.

Property Documentation

◆ ClientWorld

World ClientWorld
get

Implements IEntityWorldService.

◆ LocalWorld

World LocalWorld
get

Implements IEntityWorldService.

◆ ServerWorld

World ServerWorld
get

Implements IEntityWorldService.


The documentation for this class was generated from the following file: