Interface IReadOnlyEntity
Methods
addEventListener
- addEventListener<T>(event, handler): void
-
Returns void
getComponent
- getComponent<T>(component): undefined | T
-
Returns undefined | T
getComponentCount
- getComponentCount(): number
-
Returns number
getComponents
- getComponents(): IterableIterator<object>
-
Returns IterableIterator<object>
getTagCount
- getTagCount(): number
-
Returns number
getTags
- getTags(): IterableIterator<TTag>
-
Returns IterableIterator<TTag>
hasComponent
- hasComponent(component): boolean
-
Parameters
-
component: ObjectConstructor | TObjectProto
Returns boolean
hasTag
- hasTag(tag): boolean
-
Returns boolean
removeEventListener
- removeEventListener<T>(event, handler): void
-
Returns void
UUID to identify the entity across instances The ID is generated and must be manually maintained when syncing with another instance