Sha256: 739fa0eb1335a9ec5bff308a047e311c27d564c1516e4811a55fb6376467c4e3

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

module Snapshots
  def self.history
    @history ||= []
  end
end

last_snapshot = nil

on_player_ready do |actor|
  if (actor.last_order.nil? or !actor.last_order.action.meta?) and !last_snapshot.nil?
    Snapshots.history.push last_snapshot
  end
  last_snapshot = save
end

Version data entries

8 entries across 8 versions & 1 rubygems

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