bodyOf method

int bodyOf(
  1. Entity entity
)

entity's body, or 0.

Implementation

int bodyOf(Entity entity) => _bodies[entity]?.body ?? 0;