class FelFlame::Stg
Stores Scenes
which you want to execute on each frame. When called upon will execute all Systems
in the Scenes
in the Stage
and will execute them according to their priority order.
Attributes
Allows clearing of scenes and systems. Used internally by FelFlame
and shouldn't need to be ever used by developers @!visibility private
Allows clearing of scenes and systems. Used internally by FelFlame
and shouldn't need to be ever used by developers @!visibility private
Public Class Methods
Stores systems in the order the stage manager needs to call them This method should generally only need to be used internally and not by a game developer @!visibility private
# File lib/felflame/stage_manager.rb, line 65 def systems @systems ||= [] end
Updates the list of systems from the Scenes
added to the Stage
and make sure they are ordered correctly This is used internally by FelFlame
and shouldn't need to be ever used by developers @return [Boolean] true
@!visibility private
# File lib/felflame/stage_manager.rb, line 32 def update_systems_list systems.clear scenes.each do |scene| self.systems |= scene.systems end systems.sort_by!(&:priority) true end