Interface IReadOnlyEntity

Hierarchy

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

  • Clone this entity with all of its components and tags. This is done by serializing and de-serializing the entity

    Parameters

    • serde: ISerDe

      SerDe to use for serialization

    • Optional uuid: string

      UUID of new component

    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

  • Check if a certain component is associated with this entity

    Parameters

    • component: ObjectConstructor | TObjectProto

    Returns boolean

Generated using TypeDoc