Behaviors and Services

Behaviors and services define how the simulation evolves.

Behaviors are usually entity-scoped logic: they decide how a specific entity reacts to the current state and context.

Services are usually world-scoped capabilities: shared systems such as routing, matching, scheduling, market mechanisms, or environment updates used by many entities.

A useful mental model is:

  • entities hold state,
  • behaviors produce actions,
  • services provide shared logic and infrastructure.

Together, they turn a static world snapshot into a dynamic simulation.