public void UpdateDisplay(NetTransport.ILobbyEntry data) { NetTransport.LobbyDisplayInfo info = default(NetTransport.LobbyDisplayInfo); if (data == null) { info.InitBlank(); } else { data.getDisplayInfo(out info); } UpdateDisplay(info); }
public void DataRefreshed(object data) { boundData = (NetTransport.ILobbyEntry)data; label.text = boundData.name(); boundData.getDisplayInfo(out NetTransport.LobbyDisplayInfo info); if (info.ShouldDisplayAllAttr(3221225472u) && info.MaxPlayers != 0) { labelPlayers.text = $"{info.NumPlayersForDisplay}/{info.MaxPlayers}"; } else { labelPlayers.text = string.Empty; } }