SerenityJS
    Preparing search index...

    Class EntityMovementTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    attribute: Movement = AttributeName.Movement

    The attribute name associated with the trait

    entity: Entity

    The entity that this trait is attached to.

    identifier: string = ...

    The identifier of the trait.

    positionTarget: null | Vector3f = null

    The position that the entity is targeting to move to.

    sync: boolean = true

    Whether the trait will be synchronized with the client

    components: string[] = ...

    The entity component identifiers that this trait is compatible with by default. If empty, the trait will not be initialized by any component.

    identifier: "movement"

    The identifier of the trait.

    types: EntityIdentifier[] = ...

    The entity type identifiers that this trait is compatible with by default.

    Accessors

    Methods