jetlag2d
    Preparing search index...

    Function findBehavior

    • Find the first Behavior of type T on actor, if any. Use this when the actor might not have one. When it must, use getBehavior 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 | undefined