RPG::Event

The data class for map events.

Superclass

Referrer

Attributes

id

The event ID.

name

The event name.

x

The event's x-coordinate on the map.

y

The event's y-coordinate on the map.

pages

The event pages. RPG::Event::Page array.

Inner Class

Definition

class RPG::Event
  def initialize(x, y)
    @id = 0
    @name = ''
    @x = x
    @y = y
    @pages = [RPG::Event::Page.new]
  end
  attr_accessor :id
  attr_accessor :name
  attr_accessor :x
  attr_accessor :y
  attr_accessor :pages
end