mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Refactored to use pages
This commit is contained in:
23
lib/renegade_server.rb
Normal file
23
lib/renegade_server.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
class W3DHub
|
||||
class RenegadeServer
|
||||
attr_accessor :country, :country_code, :time_left, :ip, :host_port, :hostname, :map_name,
|
||||
:website, :player_count, :max_players, :password, :players
|
||||
|
||||
def initialize(country, country_code, time_left, ip, host_port, hostname, map_name,
|
||||
website, player_count, max_players, password, players)
|
||||
@country = country
|
||||
@country_code = country_code
|
||||
@time_left = time_left
|
||||
@ip = ip
|
||||
@host_port = host_port
|
||||
@hostname = hostname
|
||||
@map_name = map_name
|
||||
@website = website
|
||||
@player_count = player_count
|
||||
@max_players = max_players
|
||||
@password = password
|
||||
|
||||
@players = players
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user