module Gamefic::Scriptable::Hooks

def after_command(*verbs, &block)

Other tags:
    Yieldparam: -
    Yieldparam: -

Parameters:
  • verbs (Array) --
def after_command(*verbs, &block)
  after_commands.push(proc do |actor, command|
    instance_exec(actor, command, &block) if verbs.empty? || verbs.include?(command.verb)
  end)
end