class
Rosegold::HashedSlot
- Rosegold::HashedSlot
- Reference
- Object
Overview
Hashed slot format used in ClickContainer packet
Defined in:
rosegold/inventory/slot.crConstructors
- .from_slot(slot : Slot) : HashedSlot
- .from_window_slot(window_slot : WindowSlot) : HashedSlot
- .new(has_item : Bool = false, item_id_int : UInt32 = 0_u32, count : UInt32 = 0_u32, components_to_add : Hash(UInt32, UInt32) = Hash(UInt32, UInt32).new, components_to_remove : Set(UInt32) = Set(UInt32).new)
Instance Method Summary
- #components_to_add : Hash(UInt32, UInt32)
- #components_to_add=(components_to_add : Hash(UInt32, UInt32))
- #components_to_remove : Set(UInt32)
- #components_to_remove=(components_to_remove : Set(UInt32))
- #count : UInt32
- #count=(count : UInt32)
- #empty?
- #has_item : Bool
- #has_item=(has_item : Bool)
- #item_id_int : UInt32
- #item_id_int=(item_id_int : UInt32)
- #present?
- #write(io)
Constructor Detail
def self.new(has_item : Bool = false, item_id_int : UInt32 = 0_u32, count : UInt32 = 0_u32, components_to_add : Hash(UInt32, UInt32) = Hash(UInt32, UInt32).new, components_to_remove : Set(UInt32) = Set(UInt32).new)
#