Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ Exists< TService >()

static bool Sisus.Init.Service.Exists< TService > ( )
static

Determines whether a global service of type TService is available.

The service can be a service registered using the ServiceAttribute, manually using Set<TService> or one registered using a ServiceTag or a Services component with availability set to Clients.Everywhere.

This method can only be called from the main thread.

Template Parameters
TServiceThe defining type of the service.
Returns
true if service exists for the client; otherwise, false.