teeworlds_network/lib/snapshot/items/pickup.rb

23 lines
345 B
Ruby

# frozen_string_literal: true
require_relative '../snap_item_base'
class NetObj
class Pickup < SnapItemBase
attr_accessor :x, :y, :type
def initialize(hash_or_raw)
@field_names = %i[
x
y
type
]
super
end
def self.match_type?(type)
type == NETOBJTYPE_PICKUP
end
end
end