Skip to main content

Type Alias: EntitiesProvider

type EntitiesProvider =
| {
components: ComponentsManifest[];
options?: {
delete_on_client_disconnection?: boolean;
auto_broadcast?: boolean;
};
}
| FindEntityQuery;

Defined in: livelink.react/sources/hooks/useEntities.ts:39

A provider of entities.

Type Declaration

{
components: ComponentsManifest[];
options?: {
delete_on_client_disconnection?: boolean;
auto_broadcast?: boolean;
};
}
NameTypeDescription
componentsComponentsManifest[]The components to attach to the entities with their initial values.
options?{ delete_on_client_disconnection?: boolean; auto_broadcast?: boolean; }The creation options of the entities.
options.delete_on_client_disconnection?booleanWhether to delete the entity when the client disconnects.
options.auto_broadcast?booleanDeprecated Whether to broadcast the entity automatically.

FindEntityQuery