Module: Aiwolf::Commands::Attack

Included in:
Aiwolf::Client
Defined in:
lib/aiwolf/commands/attack.rb

Instance Method Summary collapse

Instance Method Details

#inner_command_attack(packet) ⇒ Object



6
7
8
9
10
# File 'lib/aiwolf/commands/attack.rb', line 6

def inner_command_attack(packet)
  hash = send(:command_attack, packet[:gameInfo])
  return '' if hash.nil? || hash.empty?
  JSON.generate(hash)
end