Class: RPG::AudioFile
- Inherits:
-
Object
- Object
- RPG::AudioFile
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/audio_file.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/audio_file.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/audio_file.rb
Overview
A superclass of BGM, BGS, ME, and SE.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#pitch ⇒ Object
Returns the value of attribute pitch.
-
#volume ⇒ Object
Returns the value of attribute volume.
Instance Method Summary collapse
-
#initialize(name = "", volume = 100, pitch = 100) ⇒ AudioFile
constructor
A new instance of AudioFile.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize(name = "", volume = 100, pitch = 100) ⇒ AudioFile
Returns a new instance of AudioFile.
11 12 13 14 15 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/audio_file.rb', line 11 def initialize(name = "", volume = 100, pitch = 100) @name = name @volume = volume @pitch = pitch end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/audio_file.rb', line 21 def name @name end |
#pitch ⇒ Object
Returns the value of attribute pitch.
21 22 23 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/audio_file.rb', line 21 def pitch @pitch end |
#volume ⇒ Object
Returns the value of attribute volume.
21 22 23 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/audio_file.rb', line 21 def volume @volume end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/audio_file.rb', line 17 def to_s @name.to_s end |