teeworlds_network/lib/snapshot/events/sound_world.rb

22 lines
377 B
Ruby
Raw Normal View History

2022-11-19 09:39:29 +00:00
# frozen_string_literal: true
require_relative '../snap_event_base'
class NetEvent
class SoundWorld < SnapEventBase
attr_accessor :sound_id
def initialize(hash_or_raw)
2024-02-21 06:44:49 +00:00
@type = NETEVENTTYPE_SOUNDWORLD
2022-11-19 09:39:29 +00:00
@field_names = %i[
sound_id
]
super
end
def self.match_type?(type)
type == NETEVENTTYPE_SOUNDWORLD
end
end
end