Class: RPG::MoveCommand
- Defined in:
- lib/rmxp_extractor/ron.rb,
lib/rmxp_extractor/classnames.rb
Instance Method Summary collapse
Instance Method Details
#rmxp_serialize ⇒ Object
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/rmxp_extractor/ron.rb', line 128 def rmxp_serialize str = "MoveCommand(\n" $indent += 2 str += "#{" " * $indent}code: #{@code},\n" str += "#{" " * $indent}parameters: [" $indent += 2 @parameters.each do |param| str += "\n#{" " * $indent}#{param.class.name.split("::").last}(#{param.rmxp_serialize})," end $indent -= 2 str += "\n#{" " * $indent}],\n" $indent -= 2 str += "#{" " * $indent})" str end |