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

Safe HaskellNone

Game.LambdaHack.Client.ItemSlot

Description

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

Synopsis

Documentation

assignSlot :: Item -> FactionId -> Maybe Actor -> ItemSlots -> SlotChar -> State -> Either SlotChar IntSource

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.