Interface IEntity

Hierarchy

Implemented by

Properties

id: string

UUID to identify the entity across instances The ID is generated and must be manually maintained when syncing with another instance

Methods

  • Add a tag to this entity Tagging can be used to mark the entity instead of using an empty marker-component Tags cannot be queried for! They are only markers and should be implemented and used as lean and light-weight as possible.

    Parameters

    Returns IEntity

  • Get a component of a certain type which is associated with this entity

    Type Parameters

    • T extends object

    Parameters

    • component: TTypeProto<T>

    Returns undefined | T

Generated using TypeDoc