class Rosegold::DataComponents::Weapon

Overview

Component for weapon (item damage per attack and disable blocking time)

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(item_damage_per_attack : UInt32 = 1_u32, disable_blocking_for_seconds : Float32 = 0.0_f32) #

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

[View source]

Instance Method Detail

def disable_blocking_for_seconds : Float32 #

[View source]
def disable_blocking_for_seconds=(disable_blocking_for_seconds : Float32) #

[View source]
def item_damage_per_attack : UInt32 #

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

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

[View source]