class RPG::Enemy::Action

Public Class Methods

new(hash) click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 995
def initialize(hash)
  hash.each do |key, value|
    eval("@#{key.to_s}=value")
  end
end

Public Instance Methods

hash() click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 1001
def hash
  dump = {
    kind: @kind,
    basic: @basic,
    skill_id: @skill_id,
    condition_turn_a: @condition_turn_a,
    condition_turn_b: @condition_turn_b,
    condition_hp: @condition_hp,
    condition_level: @condition_level,
    condition_switch_id: @condition_switch_id,
    rating: @rating,
  }
end