docs.unity3d.com
    Show / Hide Table of Contents

    Class ActorExtensions

    Inheritance
    Object
    ActorExtensions
    Namespace: Unity.Reflect.ActorFramework
    Syntax
    public static class ActorExtensions

    Methods

    Connect<TComponent, TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void Connect<TComponent, TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TComponent
    TMessage

    ConnectNet<T>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void ConnectNet<T>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    T

    ConnectPipe<T>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void ConnectPipe<T>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    T

    ConnectRpc<T>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void ConnectRpc<T>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    T

    CreateActorSetup(ActorConfig)

    Declaration
    public static ActorSetup CreateActorSetup(this ActorConfig actorConfig)
    Parameters
    Type Name Description
    ActorConfig actorConfig
    Returns
    Type Description
    ActorSetup

    CreateActorSetup<T>(ActorSystemSetup)

    Declaration
    public static ActorSetup CreateActorSetup<T>(this ActorSystemSetup actorSystemSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    Returns
    Type Description
    ActorSetup
    Type Parameters
    Name Description
    T

    Disconnect<TComponent, TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void Disconnect<TComponent, TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TComponent
    TMessage

    DisconnectNet<TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void DisconnectNet<TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TMessage

    DisconnectPipe<TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void DisconnectPipe<TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TMessage

    DisconnectRpc<TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void DisconnectRpc<TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TMessage

    GetActor<TActor>(ReflectBootstrapper)

    Declaration
    public static TActor GetActor<TActor>(this ReflectBootstrapper reflectBootstrapper)
        where TActor : class
    Parameters
    Type Name Description
    ReflectBootstrapper reflectBootstrapper
    Returns
    Type Description
    TActor
    Type Parameters
    Name Description
    TActor

    GetActorConfig(ActorSystemSetup, ActorSetup)

    Declaration
    public static ActorConfig GetActorConfig(this ActorSystemSetup actorSystemSetup, ActorSetup actorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup actorSetup
    Returns
    Type Description
    ActorConfig

    GetActorConfig<T>(ActorSystemSetup)

    Declaration
    public static ActorConfig GetActorConfig<T>(this ActorSystemSetup actorSystemSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    Returns
    Type Description
    ActorConfig
    Type Parameters
    Name Description
    T

    GetActorSettings<T>(ActorSetup)

    Declaration
    public static T GetActorSettings<T>(this ActorSetup actorSetup)
        where T : ActorSettings
    Parameters
    Type Name Description
    ActorSetup actorSetup
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetActorSetup<T>(ActorSystemSetup)

    Declaration
    public static ActorSetup GetActorSetup<T>(this ActorSystemSetup actorSystemSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    Returns
    Type Description
    ActorSetup
    Type Parameters
    Name Description
    T

    GetComponentConfig<T>(ActorSystemSetup)

    Declaration
    public static ComponentConfig GetComponentConfig<T>(this ActorSystemSetup actorSystemSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    Returns
    Type Description
    ComponentConfig
    Type Parameters
    Name Description
    T

    InstantiateAndStart(ReflectBootstrapper, ActorSystemSetup, IExposedPropertyTable, Project, UnityUser, AccessToken)

    Declaration
    public static void InstantiateAndStart(this ReflectBootstrapper reflectBootstrapper, ActorSystemSetup actorSystemSetup, IExposedPropertyTable resolver = null, Project project = null, UnityUser unityUser = null, AccessToken accessToken = null)
    Parameters
    Type Name Description
    ReflectBootstrapper reflectBootstrapper
    ActorSystemSetup actorSystemSetup
    IExposedPropertyTable resolver
    Project project
    UnityUser unityUser
    AccessToken accessToken

    Intercept<TComponent, TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void Intercept<TComponent, TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TComponent
    TMessage

    InterceptNet<TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void InterceptNet<TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TMessage

    InterceptPipe<TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void InterceptPipe<TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TMessage

    InterceptRpc<TMessage>(ActorSystemSetup, ActorSetup, ActorSetup)

    Declaration
    public static void InterceptRpc<TMessage>(this ActorSystemSetup actorSystemSetup, ActorSetup outputActorSetup, ActorSetup inputActorSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup outputActorSetup
    ActorSetup inputActorSetup
    Type Parameters
    Name Description
    TMessage

    ReplaceActor(ActorSystemSetup, ActorSetup, ActorSetup)

    Replaces an existing setup in the asset by another one. Rewires existing connections to the new setup, removes dangling connections and removes . Dangling connections are sent back to the caller.

    Declaration
    public static List<ActorExtensions.MissingConnection> ReplaceActor(this ActorSystemSetup actorSystemSetup, ActorSetup oldSetup, ActorSetup newSetup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup oldSetup
    ActorSetup newSetup
    Returns
    Type Description
    List<ActorExtensions.MissingConnection>

    The list of missing connections after this method is executed.

    TryGetActorSetup<T>(ActorSystemSetup, out ActorSetup)

    Declaration
    public static bool TryGetActorSetup<T>(this ActorSystemSetup actorSystemSetup, out ActorSetup setup)
    Parameters
    Type Name Description
    ActorSystemSetup actorSystemSetup
    ActorSetup setup
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023