SerenityJS
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    entity: Entity

    The entity that this trait is attached to.

    identifier: string = ...

    The identifier of the trait.

    player: Player = ...

    The player that this trait is attached to.

    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: string

    The identifier of the trait.

    types: EntityIdentifier[] = []

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

    Accessors

    Methods

    • Called when the player sends a chat message.

      Parameters

      • message: string

        The message that the player sent.

      Returns boolean | void

      Whether the chat message was successful; default is true