class
Rosegold::DataComponents::Food
- Rosegold::DataComponents::Food
- Rosegold::DataComponent
- Reference
- Object
Overview
Food component
Defined in:
rosegold/inventory/slot.crConstructors
- .new(nutrition : UInt32 = 0_u32, saturation : Float32 = 0.0_f32, can_always_eat : Bool = false)
- .read(io) : self
Instance Method Summary
- #can_always_eat=(can_always_eat : Bool)
- #can_always_eat? : Bool
- #nutrition : UInt32
- #nutrition=(nutrition : UInt32)
- #saturation : Float32
- #saturation=(saturation : Float32)
- #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,
create_component_by_name(name : String | Nil, component_type : UInt32, io) : DataComponent
create_component_by_name
Constructor Detail
def self.new(nutrition : UInt32 = 0_u32, saturation : Float32 = 0.0_f32, can_always_eat : Bool = false)
#