Search Results for

    Show / Hide Table of Contents

    Interface IServiceComponent<T>

    Should be implemented by classes that are part of a Service.

    Namespace: NoSuchStudio.Common.Service
    Assembly: NoSuchStudio-Common.dll
    Syntax
    public interface IServiceComponent<T>
    
        where T : Service<T>
    Type Parameters
    Name Description
    T

    Type of the NoSuchStudio.Common.Service the class is a component of.

    Remarks

    Any class can access services for one time use. By implementing this interface, you make it explicit that the class requires the service to function properly. Your class will also have its Connect<ST>() method called by the Service when there is a change in the service, i.e. when the service is loading initially or the global instance is changing.

    Properties

    mono

    Declaration
    MonoBehaviour mono { get; }
    Property Value
    Type Description
    UnityEngine.MonoBehaviour

    Methods

    Connect<ST>()

    Declaration
    void Connect<ST>()
    
        where ST : T
    Type Parameters
    Name Description
    ST

    Disconnect<ST>()

    Declaration
    void Disconnect<ST>()
    
        where ST : T
    Type Parameters
    Name Description
    ST

    IsConnected<ST>()

    Declaration
    bool IsConnected<ST>()
    
        where ST : T
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    ST
    In This Article
    Back to top Generated by DocFX