LambdaHack-0.4.100.0: A game engine library for roguelike dungeon crawlers
Game.LambdaHack.Client.ItemSlot
Description
Item slots for UI and AI item collections. TODO: document
Synopsis
type ItemSlots = (EM.EnumMap SlotChar ItemId, IM.IntMap ItemId) Source
newtype SlotChar Source
Constructors
Fields
Instances
allSlots :: [SlotChar] Source
slotLabel :: Either SlotChar Int -> MU.Part Source
slotRange :: [SlotChar] -> T.Text Source
assignSlot :: Item -> FactionId -> Maybe Actor -> ItemSlots -> SlotChar -> State -> Either SlotChar Int 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.