class RPG::MoveRoute
Public Class Methods
new(hash)
click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 339 def initialize(hash) @repeat = hash["repeat"] @skippable = hash["skippable"] @list = [] hash["list"].each_with_index do |value| @list << RPG::MoveCommand.new(value) end end
Public Instance Methods
hash()
click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 348 def hash dump = { repeat: @repeat, skippable: @skippable, list: [], } @list.each_with_index do |value| dump[:list] << value.hash end dump end