License | BSD-3-Clause |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Swarm.Game.Scenario.Topography.EntityFacade
Description
Stand-in type for an Entity for purposes that do not require carrying around the entire state of an Entity.
Useful for simplified serialization, debugging, and equality checking, particularly for the World Editor.
Synopsis
- data EntityFacade = EntityFacade EntityName Display
- mkFacade :: Entity -> EntityFacade
Documentation
data EntityFacade Source #
This datatype is a lightweight stand-in for the full-fledged Entity type without the baggage of all of its other fields. It contains the bare minimum display information for rendering.
Constructors
EntityFacade EntityName Display |
Instances
mkFacade :: Entity -> EntityFacade Source #