Class: RPG::UsableItem::Effect
- Inherits:
-
Object
- Object
- RPG::UsableItem::Effect
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_effect.rb
Overview
The data inner class for use effects.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data_id ⇒ Object
Returns the value of attribute data_id.
-
#value1 ⇒ Object
Returns the value of attribute value1.
-
#value2 ⇒ Object
Returns the value of attribute value2.
Instance Method Summary collapse
-
#initialize(code = 0, data_id = 0, value1 = 0, value2 = 0) ⇒ Effect
constructor
A new instance of Effect.
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize(code = 0, data_id = 0, value1 = 0, value2 = 0) ⇒ Effect
Returns a new instance of Effect.
15 16 17 18 19 20 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_effect.rb', line 15 def initialize(code = 0, data_id = 0, value1 = 0, value2 = 0) @code = code @data_id = data_id @value1 = value1 @value2 = value2 end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_effect.rb', line 22 def code @code end |
#data_id ⇒ Object
Returns the value of attribute data_id.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_effect.rb', line 22 def data_id @data_id end |
#value1 ⇒ Object
Returns the value of attribute value1.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_effect.rb', line 22 def value1 @value1 end |
#value2 ⇒ Object
Returns the value of attribute value2.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/usable_item_effect.rb', line 22 def value2 @value2 end |