Crate game_features

Source
Expand description

A crate providing advanced and general features for games. It can be used just as much for simple ascii games than for full distributed mmorpg games.

Structs§

Enums§

  • What happens when the transition is stopped or conditions aren’t met anymore for it to continue.
  • The way this effector modifies the stat.
  • Errors that can occur while using factions.
  • The way the inventory size is handled.
  • The different errors that can happen when interacting with the Inventory.
  • The way items are removed from the inventory. Indicates if empty spots are left, and if not, how to fill them.
  • A condition based on a stat’s value.
  • The way items are used in a transition.

Traits§

  • A trait that can calculate the level for something that can accumulate experience. We suggest using PartialFunction when implementing this trait.
  • A trait defining which items can be inserted into each inventory slot type.

Type Aliases§