Sha256: 9e6e4c6eab15e712568d1b152c28e315f51b1d3374bbfcb833fa1603b8226499

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

module Gamefic

  class Scene::MultipleScene < Scene::MultipleChoice
    def option_map
      @option_map ||= {}
    end

    def map option, scene
      options.push option
      option_map[option] = scene
    end

    def finish
      get_choice
      unless selection.nil?
        actor.cue option_map[selection]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-1.6.0 lib/gamefic/scene/multiple_scene.rb