EasyEcs
API reference

IGroup

Marks a component whose value splits tables: in a world that called World.GroupBy, entities with different IGroup.Groups live in different tables…

public interface IGroup

Marks a component whose value splits tables: in a world that called World.GroupBy, entities with different IGroup.Groups live in different tables, so a query of one group (QueryFilter.InGroup) walks only its own rows, contiguous in memory (a zone, a map, a match, a team). Writing a new value with Set moves the entity to its group's table, so a grouped component is never written through a ref (EECS015), like an indexed one.

Properties

Group

int Group { get; }

The group the entity belongs to.

Edit on GitHub

Last updated on

How is this guide?

On this page