class Rosegold::HashedSlot

Overview

Hashed slot format used in ClickContainer packet

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_slot(slot : Slot) : HashedSlot #

[View source]
def self.from_window_slot(window_slot : WindowSlot) : HashedSlot #

[View source]
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) #

[View source]

Instance Method Detail

def components_to_add : Hash(UInt32, UInt32) #

[View source]
def components_to_add=(components_to_add : Hash(UInt32, UInt32)) #

[View source]
def components_to_remove : Set(UInt32) #

[View source]
def components_to_remove=(components_to_remove : Set(UInt32)) #

[View source]
def count : UInt32 #

[View source]
def count=(count : UInt32) #

[View source]
def empty? #

[View source]
def has_item : Bool #

[View source]
def has_item=(has_item : Bool) #

[View source]
def item_id_int : UInt32 #

[View source]
def item_id_int=(item_id_int : UInt32) #

[View source]
def present? #

[View source]
def write(io) #

[View source]