class
Rosegold::DataComponents::Weapon
- Rosegold::DataComponents::Weapon
- Rosegold::DataComponent
- Reference
- Object
Overview
Component for weapon (item damage per attack and disable blocking time)
Defined in:
rosegold/inventory/slot.crConstructors
- .new(item_damage_per_attack : UInt32 = 1_u32, disable_blocking_for_seconds : Float32 = 0.0_f32)
- .read(io) : self
Instance Method Summary
- #disable_blocking_for_seconds : Float32
- #disable_blocking_for_seconds=(disable_blocking_for_seconds : Float32)
- #item_damage_per_attack : UInt32
- #item_damage_per_attack=(item_damage_per_attack : UInt32)
- #write(io) : Nil
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)
#