Improved server list to show server release channel and to use correct channel for launch game, disable update interval manager due to current implementation being a bit janky looking

This commit is contained in:
2021-12-22 15:48:51 -06:00
parent d2723c82ab
commit 6b82fad794
3 changed files with 10 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
class W3DHub
class Api
class ServerListServer
attr_reader :id, :game, :address, :port, :region, :status
attr_reader :id, :game, :address, :port, :region, :channel, :status
def initialize(hash)
@data = hash
@@ -11,6 +11,7 @@ class W3DHub
@address = @data[:address]
@port = @data[:port]
@region = @data[:region]
@channel = @data[:channel] || "release"
@status = @data[:status] ? Status.new(@data[:status]) : nil
end