Sha256: ba5d26d9f21d966abaaf86ffa3bad3149c9039f5043b1d62ca862b08bd1fe75b

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

require 'gamefic'

module Gamefic::Sdk::Debug
  class Plot < Gamefic::Plot
    attr_reader :main_dir
    def post_initialize
      meta :debug, Query::Text.new("unused") do |actor, text|
        unused = []
        actions.each { |a|
          if !a.standard? and !a.executed?
            unused.push "#{a.verb}:#{a.source_location}"
          end
        }
        actor.tell "#{unused.join("\r\n")}"
      end
    end
    def action(command, *queries, &proc)
      act = Gamefic::Sdk::Debug::Action.new(command, *queries, &proc)
      add_action act
      act
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gamefic-sdk-1.4.1 lib/gamefic-sdk/debug/plot.rb
gamefic-sdk-1.4.0 lib/gamefic-sdk/debug/plot.rb
gamefic-sdk-1.3.1 lib/gamefic-sdk/debug/plot.rb
gamefic-sdk-1.3.0 lib/gamefic-sdk/debug/plot.rb
gamefic-sdk-1.2.0 lib/gamefic-sdk/debug/plot.rb
gamefic-sdk-1.1.0 lib/gamefic-sdk/debug/plot.rb