classicborne
    Preparing search index...

    Class Drone

    Represents a drone entity for replicating character and positions of player and non-player entities.

    Hierarchy

    • TypedEmitter
      • Drone
    Index

    Constructors

    Properties

    destroyed: boolean

    Yet to be documented.

    ego: Ego
    orientation: number[]
    position: number[]
    defaultMaxListeners: number

    Methods

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • listener: {
            destroy: () => void;
            position: (position: Vector3, orientation: Vector2) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • ...args: Parameters<
            {
                destroy: () => void;
                position: (position: Vector3, orientation: Vector2) => void;
            }[U],
        >

      Returns boolean

    • Type Parameters

      • U extends "position" | "destroy"

      Returns U[]

    • Returns number

    • Parameters

      • type: "position" | "destroy"

      Returns number

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • type: U

      Returns {
          destroy: () => void;
          position: (position: Vector3, orientation: Vector2) => void;
      }[U][]

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • listener: {
            destroy: () => void;
            position: (position: Vector3, orientation: Vector2) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • listener: {
            destroy: () => void;
            position: (position: Vector3, orientation: Vector2) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • listener: {
            destroy: () => void;
            position: (position: Vector3, orientation: Vector2) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • listener: {
            destroy: () => void;
            position: (position: Vector3, orientation: Vector2) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • listener: {
            destroy: () => void;
            position: (position: Vector3, orientation: Vector2) => void;
        }[U]

      Returns this

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • type: U

      Returns {
          destroy: () => void;
          position: (position: Vector3, orientation: Vector2) => void;
      }[U][]

    • Parameters

      • Optionalevent: "position" | "destroy"

      Returns this

    • Type Parameters

      • U extends "position" | "destroy"

      Parameters

      • event: U
      • listener: {
            destroy: () => void;
            position: (position: Vector3, orientation: Vector2) => void;
        }[U]

      Returns this

    • Parameters

      • n: number

      Returns this

    • Sets position and orientation of the drone.

      Parameters

      • position: any

        The position of the drone.

      • orientation: any

        The orientation of the drone.

      Returns void