|
Init(args)
Scripting Reference
|
◆ AddFor< TService >() [2/2]
Registers a service with the defining type TService available to a limited set of clients. If the provided instance is available to clients Clients.Everywhere then the ServiceChanged<TService>.listeners event will be raised.
This must be a base type that the service derives from, or the exact type of the service. This must also be a component type. If you want to register a service that is not a component, or want to register a component service using an interface that it implements, you can use the overload that lets you provide a Component type reference separately.
|