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

More...

+ Inheritance diagram for AppLifecycleService:

Public Member Functions

 AppLifecycleService (IStandardSceneService standardSceneService, IEntityWorldService entityWorldService, IPlatformInfoService platformInfoService, IPlatformSettings platformSettings, IConnectionSettings connectionSettings, IUnityServicesSettings unityServicesSettings, ILocalPlayerInfoService localPlayerInfoService, ICloudClient cloudClient, IConnectionService connectionService)
 
async Task< AppLifecycleResultStartOfflineSession ()
 Instructs the application to start an offline session.
 
async Task< AppLifecycleResultStartServerHostedSession ()
 Instructs the app to start a server-hosted session. This will be handled differently depending on whether the current platform is a client or a server.
 
async Task< HostLanSessionResultHostLanSession ()
 Instructs application to start a self-hosted LAN session.
 
async Task< AppLifecycleResultJoinLanSession (string hostIp)
 Instructs application to join a LAN session hosted by someone else.
Parameters
hostIpThe local network IP of the host.

 
async Task< AppLifecycleResultGoToLobby ()
 Instructs application to go to the Lobby.
Returns
True if the Lobby scene could be loaded.

 

Properties

IStandardSceneService StandardScenes [get]
 
- Properties inherited from IAppLifecycleService

Detailed Description

Member Function Documentation

◆ GoToLobby()

async Task< AppLifecycleResult > GoToLobby ( )
inline

Instructs application to go to the Lobby.

Returns
True if the Lobby scene could be loaded.

Implements IAppLifecycleService.

◆ HostLanSession()

async Task< HostLanSessionResult > HostLanSession ( )
inline

Instructs application to start a self-hosted LAN session.

Implements IAppLifecycleService.

◆ JoinLanSession()

async Task< AppLifecycleResult > JoinLanSession ( string hostIp)
inline

Instructs application to join a LAN session hosted by someone else.

Parameters
hostIpThe local network IP of the host.

Implements IAppLifecycleService.

◆ StartOfflineSession()

async Task< AppLifecycleResult > StartOfflineSession ( )
inline

Instructs the application to start an offline session.

Implements IAppLifecycleService.

◆ StartServerHostedSession()

async Task< AppLifecycleResult > StartServerHostedSession ( )
inline

Instructs the app to start a server-hosted session. This will be handled differently depending on whether the current platform is a client or a server.

Implements IAppLifecycleService.

Property Documentation

◆ StandardScenes

IStandardSceneService StandardScenes
get

Implements IAppLifecycleService.


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