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)
Sourceread(io) : self
SourceInstance methods
animation
Sourceanimation=(animation : UInt32)
Sourceconsume_seconds
Sourceconsume_seconds=(consume_seconds : Float32)
Sourceeffects
Sourceeffects=(effects : Array(ConsumeEffect))
Sourcehas_particles=(has_particles : Bool)
Sourcehas_particles?
Sourcesound
Sourcesound=(sound : ConsumeSound)
Sourcewrite(io) : Nil
Source