class RPG::Troop::Page
Public Class Methods
new(hash)
click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 1110 def initialize(hash) @condition = RPG::Troop::Page::Condition.new hash["condition"] @span = hash["span"] @list = [] hash["list"].each_with_index do |value| @list << RPG::EventCommand.new(value) end end
Public Instance Methods
hash()
click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 1119 def hash dump = { condition: @condition.hash, span: @span, list: [], } @list.each_with_index do |value| dump[:list] << value.hash end dump end