module Gamefic::Scriptable::PlotProxies
Public Instance Methods
attr_plot(attr)
click to toggle source
# File lib/gamefic/scriptable/plot_proxies.rb, line 12 def attr_plot attr define_method(attr) { plot.send(attr) } end
lazy_plot(key)
click to toggle source
# File lib/gamefic/scriptable/plot_proxies.rb, line 6 def lazy_plot key Logging.logger.warn "#{caller.first ? "#{caller.first}: " : ''}`lazy_plot` is deprecated. Use `plot_pick`, `plot_pick!, or pass the entity from the plot in a `config` option instead." Proxy.new(:attr, [:plot, key]) end
Also aliased as: _plot
plot_pick(*args)
click to toggle source
# File lib/gamefic/scriptable/plot_proxies.rb, line 16 def plot_pick *args Proxy::PlotPick.new(*args) end
Also aliased as: lazy_plot_pick, _plot_pick
plot_pick!(*args)
click to toggle source
# File lib/gamefic/scriptable/plot_proxies.rb, line 22 def plot_pick! *args Proxy::PlotPick.new(*args) end
Also aliased as: lazy_plot_pick!, _plot_pick!