class

Rosegold::DataComponents::Consumable

Inherits Rosegold::DataComponent / Reference / Object

Consumable component

Constructors

new(consume_seconds : Float32 = 1.6_f32, animation : UInt32 = 0_u32, sound : Rosegold::DataComponents::Consumable::ConsumeSound = ConsumeSound.new, has_particles : Bool = true, effects : Array(Rosegold::DataComponents::Consumable::ConsumeEffect) = [] of ConsumeEffect)
Source
read(io) : self
Source

Instance methods

animation
Source
animation=(animation : UInt32)
Source
consume_seconds
Source
consume_seconds=(consume_seconds : Float32)
Source
effects
Source
effects=(effects : Array(ConsumeEffect))
Source
has_particles=(has_particles : Bool)
Source
has_particles?
Source
sound
Source
sound=(sound : ConsumeSound)
Source
write(io) : Nil
Source

Nested types