LambdaHack-0.5.0.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.ItemSlot

Description

Item slots for UI and AI item collections. TODO: document

Synopsis

Documentation

type ItemSlots = (EnumMap SlotChar ItemId, EnumMap SlotChar ItemId) Source #

slotRange :: [SlotChar] -> Text Source #

assignSlot :: CStore -> Item -> FactionId -> Maybe Actor -> ItemSlots -> SlotChar -> State -> SlotChar Source #

Assigns a slot to an item, for inclusion in the inventory or equipment of a hero. Tries to to use the requested slot, if any.