teeworlds_network/lib/snapshot/snap_event_base.rb

15 lines
260 B
Ruby

# frozen_string_literal: true
require_relative '../packer'
require_relative 'snap_item_base'
class SnapEventBase < SnapItemBase
attr_reader :x, :y
def initialize(hash_or_raw)
@field_names.prepend(:x)
@field_names.prepend(:y)
super
end
end