class RPG::Event::Page::Graphic

Public Class Methods

new(hash) click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 266
def initialize(hash)
  @tile_id = hash["tile_id"]
  @character_name = hash["character_name"]
  @character_hue = hash["character_hue"]
  @direction = hash["direction"]
  @pattern = hash["pattern"]
  @opacity = hash["opacity"]
  @blend_type = hash["blend_type"]
end

Public Instance Methods

hash() click to toggle source
# File lib/rmxp_extractor/classnames.rb, line 276
def hash
  dump = {
    tile_id: @tile_id,
    character_name: @character_name,
    character_hue: @character_hue,
    direction: @direction,
    pattern: @pattern,
    opacity: @opacity,
    blend_type: @blend_type,
  }
end