Rosegold::HashedSlot
Inherits Reference / Object
Hashed slot format used in ClickContainer packet
Constructors
from_slot(slot : Slot) : HashedSlot
Sourcefrom_window_slot(window_slot : WindowSlot) : HashedSlot
Sourcenew(has_item : Bool = false, item_id_int : UInt32 = 0_u32, count : UInt32 = 0_u32, components_to_add : Hash(String, UInt32) = Hash(String, UInt32).new, components_to_remove : Set(String) = Set(String).new)
SourceInstance methods
components_to_add
Sourcecomponents_to_add=(components_to_add : Hash(String, UInt32))
Sourcecomponents_to_remove
Sourcecomponents_to_remove=(components_to_remove : Set(String))
Sourcecount
Sourcecount=(count : UInt32)
Sourceempty?
Sourcehas_item=(has_item : Bool)
Sourcehas_item?
Sourceitem_id_int
Sourceitem_id_int=(item_id_int : UInt32)
Sourcepresent?
Sourcewrite(io)
Source