class Works::Inventory
- Works::Inventory
- Reference
- Object
Defined in:
works/inventory.crConstant Summary
-
MaxSlots =
80
-
SortOrder =
[Item::Ore::Coal, Item::Ore::Copper, Item::Ore::Iron, Item::Ore::Stone, Item::Plate::Copper, Item::Plate::Iron, Item::Plate::Steel, Item::StoneBrick, Item::Struct::TransportBelt::Base, Item::Struct::TransportBelt::Fast, Item::Struct::TransportBelt::Express, Item::Struct::Inserter::Burner, Item::Struct::Inserter::Inserter, Item::Struct::Chest::Wooden, Item::Struct::Chest::Iron, Item::Struct::Chest::Steel, Item::Struct::Furnace::Stone, Item::Struct::Furnace::Electric].map(&.key)
Constructors
Instance Method Summary
- #add(item_klass, amount : Int)
- #add_held_item_to_inventory(item)
- #amount_can_add(item_klass, amount : Int)
- #draw
- #grab_inventory_item(index, mouse : Mouse)
- #grab_slot_item(item, mouse : Mouse)
- #held_index : Int32 | Nil
- #held_item : Item::Held | Nil
- #hide(*args, **options)
- #hide(*args, **options, &)
- #hover?(*args, **options)
- #hover?(*args, **options, &)
- #hud : Works::InventoryHUD
- #init
- #items : Array(Works::Item::Base)
- #max_slots : Int32
- #print_str
- #put_held_item_back(held_item, held_index)
- #remove_hand_item(held_index)
- #remove_held_item
- #show(*args, **options)
- #show(*args, **options, &)
- #show_struct(*args, **options)
- #show_struct(*args, **options, &)
- #show_toggle(*args, **options)
- #show_toggle(*args, **options, &)
- #shown?(*args, **options)
- #shown?(*args, **options, &)
- #sort_items
- #swap_held_item(held_item : Item::Held, item : Item::Base)
- #update(keys : Keys, mouse : Mouse, map : Map, player : Player)
- #update_held_item(keys : Keys, mouse : Mouse, map : Map, player : Player)