class Rosegold::DataComponents::RepairCost

Overview

Component for repair cost (simple VarInt)

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

Instance methods inherited from class Rosegold::DataComponent

write(io) : Nil write

Constructor methods inherited from class Rosegold::DataComponent

create_component(component_type : UInt32, io) : DataComponent create_component

Constructor Detail

def self.new(cost : UInt32) #

[View source]
def self.read(io) : self #

[View source]

Instance Method Detail

def cost : UInt32 #

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

[View source]
def write(io) : Nil #

[View source]