Sha256: aa62087f968f999c1dfa6c9589a622924aa5e35567f063376ae4653cf0e38a2c

Contents?: true

Size: 222 Bytes

Versions: 9

Compression:

Stored size: 222 Bytes

Contents

script 'snapshots'

meta :undo do |actor|
  last = Snapshots.history.pop
  if last.nil?
    actor.tell "No previous turns are available."
  else
    restore last
    actor.tell "Previous turn undone."
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gamefic-sdk-1.6.0 scripts/undo.plot.rb
gamefic-sdk-1.5.0 scripts/undo.plot.rb
gamefic-sdk-1.4.1 scripts/undo.plot.rb
gamefic-sdk-1.4.0 scripts/undo.plot.rb
gamefic-sdk-1.3.1 scripts/undo.plot.rb
gamefic-sdk-1.3.0 scripts/undo.plot.rb
gamefic-sdk-1.2.0 scripts/undo.plot.rb
gamefic-sdk-1.1.0 scripts/undo.plot.rb
gamefic-sdk-1.0.1 scripts/undo.plot.rb