teeworlds_network/lib/snapshot/items/game_data_team.rb

23 lines
425 B
Ruby
Raw Normal View History

2022-11-19 10:24:13 +00:00
# frozen_string_literal: true
require_relative '../snap_item_base'
class NetObj
class GameDataTeam < SnapItemBase
attr_accessor :teamscore_red, :teamscore_blue
def initialize(hash_or_raw)
2024-02-21 06:44:49 +00:00
@type = NETOBJTYPE_GAMEDATATEAM
2022-11-19 10:24:13 +00:00
@field_names = %i[
teamscore_red
teamscore_blue
]
super
end
def self.match_type?(type)
type == NETOBJTYPE_GAMEDATATEAM
end
end
end