EntityReadOperations
Functions
Link copied to clipboard
Gets a componentId's data from an entity or null if not present/the component doesn't hold any data.
Link copied to clipboard
Gets a list of all the components entity has, as well as relations in the form of RelationComponent.
Link copied to clipboard
Link copied to clipboard
abstract fun getRelationsWithDataFor(entity: Entity, kind: ComponentId, target: EntityId): List<RelationWithData<*, *>>
Gets relations in the same format as Archetype.getRelations, but when kind/target HOLDS_DATA, the appropriate data is written to a RelationWithData object.
Link copied to clipboard
Checks whether an entity has a componentId