module Gamefic::Scripting::Hooks
Scripting
hook methods are instance methods that return callbacks for execution in the context of a scriptable module or narrative. They collect the procs defined in Scriptable
hook methods and bind them to the instance for execution.
Public Instance Methods
Source
# File lib/gamefic/scripting/hooks.rb, line 15 def after_commands find_and_bind(:after_commands) end
@return [Array<Binding>]
Source
# File lib/gamefic/scripting/hooks.rb, line 10 def before_commands find_and_bind(:before_commands) end
@return [Array<Binding>]
Source
# File lib/gamefic/scripting/hooks.rb, line 35 def conclude_blocks find_and_bind(:conclude_blocks) end
@return [Array<Binding>]
Source
# File lib/gamefic/scripting/hooks.rb, line 40 def player_conclude_blocks find_and_bind(:player_conclude_blocks) end
@return [Array<Binding>]
Source
# File lib/gamefic/scripting/hooks.rb, line 30 def player_output_blocks find_and_bind(:player_output_blocks) end
@return [Array<Binding>]
Source
# File lib/gamefic/scripting/hooks.rb, line 20 def ready_blocks find_and_bind(:ready_blocks) end
@return [Array<Binding>]
Source
# File lib/gamefic/scripting/hooks.rb, line 25 def update_blocks find_and_bind(:update_blocks) end
@return [Array<Binding>]