Module: Gamefic::Scripting::Hooks
- Included in:
- Gamefic::Scripting
- Defined in:
- lib/gamefic/scripting/hooks.rb
Overview
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.
Instance Method Summary collapse
- #after_commands ⇒ Array<Binding>
- #before_commands ⇒ Array<Binding>
- #conclude_blocks ⇒ Array<Binding>
- #player_conclude_blocks ⇒ Array<Binding>
- #player_output_blocks ⇒ Array<Binding>
- #ready_blocks ⇒ Array<Binding>
- #update_blocks ⇒ Array<Binding>
Instance Method Details
#after_commands ⇒ Array<Binding>
15 16 17 |
# File 'lib/gamefic/scripting/hooks.rb', line 15 def after_commands find_and_bind(:after_commands) end |
#before_commands ⇒ Array<Binding>
10 11 12 |
# File 'lib/gamefic/scripting/hooks.rb', line 10 def before_commands find_and_bind(:before_commands) end |
#conclude_blocks ⇒ Array<Binding>
35 36 37 |
# File 'lib/gamefic/scripting/hooks.rb', line 35 def conclude_blocks find_and_bind(:conclude_blocks) end |
#player_conclude_blocks ⇒ Array<Binding>
40 41 42 |
# File 'lib/gamefic/scripting/hooks.rb', line 40 def player_conclude_blocks find_and_bind(:player_conclude_blocks) end |
#player_output_blocks ⇒ Array<Binding>
30 31 32 |
# File 'lib/gamefic/scripting/hooks.rb', line 30 def player_output_blocks find_and_bind(:player_output_blocks) end |