Class: NetEvent::SoundWorld
- Inherits:
-
SnapEventBase
- Object
- SnapItemBase
- SnapEventBase
- NetEvent::SoundWorld
- Defined in:
- lib/snapshot/events/sound_world.rb
Instance Attribute Summary collapse
-
#sound_id ⇒ Object
Returns the value of attribute sound_id.
Attributes inherited from SnapEventBase
Attributes inherited from SnapItemBase
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash_or_raw) ⇒ SoundWorld
constructor
A new instance of SoundWorld.
Methods inherited from SnapItemBase
#init_hash, #init_raw, #init_unpacker, #to_a, #to_h, #to_s, #validate
Constructor Details
#initialize(hash_or_raw) ⇒ SoundWorld
Returns a new instance of SoundWorld.
9 10 11 12 13 14 |
# File 'lib/snapshot/events/sound_world.rb', line 9 def initialize(hash_or_raw) @field_names = i[ sound_id ] super end |
Instance Attribute Details
#sound_id ⇒ Object
Returns the value of attribute sound_id.
7 8 9 |
# File 'lib/snapshot/events/sound_world.rb', line 7 def sound_id @sound_id end |
Class Method Details
.match_type?(type) ⇒ Boolean
16 17 18 |
# File 'lib/snapshot/events/sound_world.rb', line 16 def self.match_type?(type) type == NETEVENTTYPE_SOUNDWORLD end |