class RPG::Troop::Page::Condition

Public Class Methods

new(hash) click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 1087
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 1093
def hash
  dump = {
    turn_valid: @turn_valid,
    enemy_valid: @enemy_valid,
    actor_valid: @actor_valid,
    switch_valid: @switch_valid,
    turn_a: @turn_a,
    turn_b: @turn_b,
    enemy_index: @enemy_index,
    enemy_hp: @enemy_hp,
    actor_id: @actor_id,
    actor_hp: @actor_hp,
    switch_id: @switch_id,
  }
end