Skip to content

installPiles

installPiles(world): void

Defined in: src/modules/pile/pile.ts:56

Register PileDef and InPileDef on world and install the cleanup that keeps them consistent when entities go away:

  • destroying a member (or deleting its InPile) removes it from its pile;
  • destroying a pile (or deleting its Pile) releases its members, which keep existing outside any pile.

Call once per world, in place of registering the two components yourself.

EcsWorld

void