class RPG::MapInfo

Attributes

order[RW]

Public Class Methods

new(hash) click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 442
def initialize(hash)
  @name = hash["name"]
  @parent_id = hash["parent_id"]
  @order = hash["order"]
  @expanded = hash["expanded"]
  @scroll_x = hash["scroll_x"]
  @scroll_y = hash["scroll_y"]
end

Public Instance Methods

hash() click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 451
def hash
  dump = {
    name: @name.force_encoding("iso-8859-1").encode("utf-8"),
    parent_id: @parent_id,
    order: @order,
    expanded: @expanded,
    scroll_x: @scroll_x,
    scroll_y: @scroll_y,
  }
end