License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Swarm.Game.Scenario.Topography.Structure.Recognition.Tracking
Description
Online operations for structure recognizer.
See Swarm.Game.Scenario.Topography.Structure.Recognition.Precompute for details of the structure recognition process.
Synopsis
- entityModified :: Has (State GameState) sig m => CellModification Entity -> Cosmic Location -> m ()
Documentation
entityModified :: Has (State GameState) sig m => CellModification Entity -> Cosmic Location -> m () Source #
A hook called from the centralized entity update function,
updateEntityAt
.
This handles structure detection upon addition of an entity, and structure de-registration upon removal of an entity. Also handles atomic entity swaps.