jetlag2d
    Preparing search index...

    Function getBehavior

    • Get the first Behavior of type T on actor, and fail if it doesn't have one. When the actor might not have one, use findBehavior instead.

      Type Parameters

      Parameters

      • actor: Actor

        The actor whose behaviors are being searched

      • ctor: new (...args: any[]) => T

        The constructor of the Behavior type to look for

      Returns T

      The Behavior