Class: RPG::Event
- Inherits:
-
Object
- Object
- RPG::Event
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/event.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/event_page.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/event_page.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_page.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/event_page_graphic.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/event_page_graphic.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/event_page_condition.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/event_page_condition.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_page_graphic.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/event_page_condition.rb
Overview
The data class for map events.
Defined Under Namespace
Classes: Page
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pages ⇒ Object
Returns the value of attribute pages.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Class Method Summary collapse
-
.json_new(*args) ⇒ Object
JSON constructor.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Event
constructor
A new instance of Event.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb', line 34 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb', line 34 def name @name end |
#pages ⇒ Object
Returns the value of attribute pages.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb', line 34 def pages @pages end |
#x ⇒ Object
Returns the value of attribute x.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb', line 34 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
34 35 36 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb', line 34 def y @y end |
Class Method Details
.json_new(*args) ⇒ Object
JSON constructor
30 31 32 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb', line 30 def self.json_new(*args) new(-1, -1) end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/event.rb', line 19 def to_s @name.to_s end |