Module all_is_cubes::inv

source ·
Expand description

Characters’ Inventory which contains Tools for modifying the world.

TODO: This module needs a better name; I’d be calling it inventory if that weren’t also the name of one of its internal modules.

Structs§

Enums§

  • Blocks that are icons for Tools.
  • Transaction conflict error type for an InventoryTransaction.
  • The direct child of Inventory; a container for any number of identical Tools.
  • A Tool is an object which a character can use to have some effect in the game, such as placing or removing a block. In particular, a tool use usually corresponds to a click.
  • Ways that a tool can fail.

Constants§

  • There are a few places where an assumption currently has to be made about the maximum number of usable mouse-buttons (or equivalent) that the user has. This constant documents that assumption.