struct
Rosegold::DataComponents::Consumable::ConsumeSound
- Rosegold::DataComponents::Consumable::ConsumeSound
- Struct
- Value
- Object
Defined in:
rosegold/inventory/slot.crConstructors
- .new(sound_type : UInt32 = 1_u32, sound_id : Nil | String = nil, has_fixed_range : Bool = false, fixed_range : Float32 | Nil = nil)
- .read(io) : self
Instance Method Summary
- #fixed_range : Float32 | Nil
- #fixed_range=(fixed_range : Float32 | Nil)
- #has_fixed_range=(has_fixed_range : Bool)
- #has_fixed_range? : Bool
- #sound_id : String | Nil
- #sound_id=(sound_id : String | Nil)
- #sound_type : UInt32
- #sound_type=(sound_type : UInt32)
- #write(io) : Nil
Constructor Detail
def self.new(sound_type : UInt32 = 1_u32, sound_id : Nil | String = nil, has_fixed_range : Bool = false, fixed_range : Float32 | Nil = nil)
#