Class: RPG::MapInfo
- Inherits:
-
Object
- Object
- RPG::MapInfo
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/map_info.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_info.rb
Overview
The data class for map information.
Instance Attribute Summary collapse
-
#expanded ⇒ Object
Returns the value of attribute expanded.
-
#name ⇒ Object
Returns the value of attribute name.
-
#order ⇒ Object
Returns the value of attribute order.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#scroll_x ⇒ Object
Returns the value of attribute scroll_x.
-
#scroll_y ⇒ Object
Returns the value of attribute scroll_y.
Instance Method Summary collapse
-
#initialize ⇒ MapInfo
constructor
A new instance of MapInfo.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ MapInfo
Returns a new instance of MapInfo.
11 12 13 14 15 16 17 18 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 11 def initialize @name = "" @parent_id = 0 @order = 0 @expanded = false @scroll_x = 0 @scroll_y = 0 end |
Instance Attribute Details
#expanded ⇒ Object
Returns the value of attribute expanded.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24 def @expanded end |
#name ⇒ Object
Returns the value of attribute name.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24 def name @name end |
#order ⇒ Object
Returns the value of attribute order.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24 def order @order end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24 def parent_id @parent_id end |
#scroll_x ⇒ Object
Returns the value of attribute scroll_x.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24 def scroll_x @scroll_x end |
#scroll_y ⇒ Object
Returns the value of attribute scroll_y.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24 def scroll_y @scroll_y end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 20 def to_s @name.to_s end |