Improvements to server browser

This commit is contained in:
2024-03-05 12:50:51 -06:00
parent 0cbe013a11
commit d350e51d0b
2 changed files with 14 additions and 2 deletions

View File

@@ -476,6 +476,17 @@ class W3DHub
app.channels.detect { |g| g.id.to_s == channel_id.to_s }&.name
end
def application(app_id)
Store.applications.games.detect { |g| g.id.to_s == app_id.to_s }
end
def channel(app_id, channel_id)
app = Store.applications.games.detect { |g| g.id.to_s == app_id.to_s }
return unless app
app.channels.detect { |g| g.id.to_s == channel_id.to_s }
end
# No application tasks are being done
def idle?
!busy?