Search Results for

    Show / Hide Table of Contents

    Class NPCEngineManager

    Manager class that handles services and server lifetime and status.

    Inheritance
    Object
    NPCEngineManager
    Namespace: NPCEngine.Components
    Assembly: cs.temp.dll.dll
    Syntax
    public class NPCEngineManager : Singleton<NPCEngineManager>

    Properties

    InferenceEngineProcessId

    Declaration
    protected int InferenceEngineProcessId { get; set; }
    Property Value
    Type Description
    Int32

    InferenceEngineRunning

    Declaration
    public bool InferenceEngineRunning { get; }
    Property Value
    Type Description
    Boolean

    Services

    Declaration
    public List<ServiceMetadata> Services { get; }
    Property Value
    Type Description
    List<ServiceMetadata>

    ServicesById

    Declaration
    public Dictionary<string, ServiceMetadata> ServicesById { get; }
    Property Value
    Type Description
    Dictionary<String, ServiceMetadata>

    ServiceStatuses

    Declaration
    public List<ServiceStatus> ServiceStatuses { get; }
    Property Value
    Type Description
    List<ServiceStatus>

    ServiceStatusesById

    Declaration
    public Dictionary<string, ServiceStatus> ServiceStatusesById { get; }
    Property Value
    Type Description
    Dictionary<String, ServiceStatus>

    Methods

    DownloadModel(String)

    Download model by ID

    Declaration
    public void DownloadModel(string id)
    Parameters
    Type Name Description
    String id

    GetAPI<T>()

    Get or construct API for the given type.

    Declaration
    public T GetAPI<T>()
        where T : RPCBase
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    API type

    GetAPI<T>(String)

    Get or construct API for the given type and service ID.

    Declaration
    public T GetAPI<T>(string id)
        where T : RPCBase
    Parameters
    Type Name Description
    String id

    Service ID or otherwise resolvable name

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    API Type

    StartAndMonitorServerLife()

    Declaration
    public IEnumerator StartAndMonitorServerLife()
    Returns
    Type Description
    IEnumerator

    StartInferenceEngine()

    Starts the inference engine server and managing coroutines.

    Declaration
    public void StartInferenceEngine()

    StopInferenceEngine()

    Stop the inference engine server, services and dispose resources.

    Declaration
    public void StopInferenceEngine()

    UpdateServices()

    Coroutine that updates service list.

    Declaration
    public IEnumerator UpdateServices()
    Returns
    Type Description
    IEnumerator

    UpdateServiceStatuses()

    Coroutine that updates service statuses.

    Declaration
    public IEnumerator UpdateServiceStatuses()
    Returns
    Type Description
    IEnumerator
    In This Article
    Back to top npc-engine Unity integration