GameModeServiceContainerAddServiceTServiceType Method (TServiceType) |
Namespace: SampSharp.GameMode
public void AddService<TServiceType>( TServiceType service ) where TServiceType : IService
Exception | Condition |
---|---|
ArgumentNullException | Thrown if service is null. |
ArgumentException | serviceType must be of type IService |