swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Game.Ingredients

Description

 
Synopsis

Documentation

type IngredientList e = [(Count, e)] Source #

An ingredient list is a list of entities with multiplicity. It is polymorphic in the entity type so that we can use either entity names when serializing, or actual entity objects while the game is running.

type Count = Int Source #

A convenient synonym to remind us when an Int is supposed to represent how many of something we have.