// Token: 0x0600308A RID: 12426 RVA: 0x0013EED4 File Offset: 0x0013D2D4 public SteamServerInfo(string newName, EGameMode newMode, bool newVACSecure, bool newBattlEyeEnabled, bool newPro) { this._name = newName; if (OptionsSettings.filter) { this._name = ChatManager.filter(this.name); } this._mode = newMode; this.IsVACSecure = newVACSecure; this.IsBattlEyeSecure = newBattlEyeEnabled; this._isPro = newPro; }
// Token: 0x060021DC RID: 8668 RVA: 0x000BB1FC File Offset: 0x000B95FC public void updateText(string newText) { this._text = newText; string text = this.text; if (OptionsSettings.filter) { text = ChatManager.filter(text); } if (this.label_0 != null) { this.label_0.text = text; } if (this.label_1 != null) { this.label_1.text = text; } }
// Token: 0x060037DB RID: 14299 RVA: 0x0018C044 File Offset: 0x0018A444 public static void open(string newText) { if (PlayerBarricadeSignUI.active) { return; } PlayerBarricadeSignUI.active = true; PlayerBarricadeSignUI.sign = null; PlayerBarricadeSignUI.yesButton.isVisible = false; PlayerBarricadeSignUI.noButton.positionOffset_X = -200; PlayerBarricadeSignUI.noButton.sizeOffset_X = 400; string text = newText; if (OptionsSettings.filter) { text = ChatManager.filter(text); } PlayerBarricadeSignUI.textBox.text = text; PlayerBarricadeSignUI.textField.isVisible = false; PlayerBarricadeSignUI.textBox.isVisible = true; PlayerBarricadeSignUI.container.lerpPositionScale(0f, 0f, ESleekLerp.EXPONENTIAL, 20f); }
// Token: 0x06003089 RID: 12425 RVA: 0x0013EC70 File Offset: 0x0013D070 public SteamServerInfo(gameserveritem_t data) { this._steamID = data.m_steamID; this._ip = data.m_NetAdr.GetIP(); this._port = data.m_NetAdr.GetConnectionPort(); this._name = data.GetServerName(); if (OptionsSettings.filter) { this._name = ChatManager.filter(this.name); } this._map = data.GetMap(); string gameTags = data.GetGameTags(); if (gameTags.Length > 0) { this._isPvP = (gameTags.IndexOf("PVP") != -1); this._hasCheats = (gameTags.IndexOf("CHEATS") != -1); this._isWorkshop = (gameTags.IndexOf("WORK") != -1); if (gameTags.IndexOf("EASY") != -1) { this._mode = EGameMode.EASY; } else if (gameTags.IndexOf("HARD") != -1) { this._mode = EGameMode.HARD; } else { this._mode = EGameMode.NORMAL; } if (gameTags.IndexOf("FIRST") != -1) { this._cameraMode = ECameraMode.FIRST; } else if (gameTags.IndexOf("THIRD") != -1) { this._cameraMode = ECameraMode.THIRD; } else if (gameTags.IndexOf("BOTH") != -1) { this._cameraMode = ECameraMode.BOTH; } else { this._cameraMode = ECameraMode.VEHICLE; } if (gameTags.IndexOf("GOLDONLY") != -1) { this._isPro = true; } else { this._isPro = false; } this.IsBattlEyeSecure = (gameTags.IndexOf("BATTLEYE_ON") != -1); int num = gameTags.IndexOf(",GAMEMODE:"); int num2 = gameTags.IndexOf(",", num + 1); if (num != -1 && num2 != -1) { num += 10; this.gameMode = gameTags.Substring(num, num2 - num); } else { this.gameMode = null; } } else { this._isPvP = true; this._hasCheats = false; this._mode = EGameMode.NORMAL; this._cameraMode = ECameraMode.FIRST; this._isPro = true; this.IsBattlEyeSecure = false; this.gameMode = null; } this._ping = data.m_nPing; this._players = data.m_nPlayers; this._maxPlayers = data.m_nMaxPlayers; this._isPassworded = data.m_bPassword; this.IsVACSecure = data.m_bSecure; }
// Token: 0x060027C7 RID: 10183 RVA: 0x000F0C2C File Offset: 0x000EF02C public static void list(CSteamID steamID, EChatMode mode, Color color, bool isRich, string text) { text = text.Trim(); if (OptionsSettings.filter) { text = ChatManager.filter(text); } if (OptionsSettings.streamer) { color = Color.white; } SteamPlayer steamPlayer = null; string text2; if (steamID == CSteamID.Nil) { text2 = Provider.localization.format("Say"); } else { steamPlayer = PlayerTool.getSteamPlayer(steamID); if (steamPlayer == null) { return; } if (!OptionsSettings.chatText && steamPlayer.playerID.steamID != Provider.client) { return; } if (steamPlayer.player.quests.isMemberOfSameGroupAs(Player.player)) { if (steamPlayer.playerID.nickName != string.Empty && steamPlayer.playerID.steamID != Provider.client) { text2 = steamPlayer.playerID.nickName; } else { text2 = steamPlayer.playerID.characterName; } } else { text2 = steamPlayer.playerID.characterName; } } for (int i = ChatManager.chat.Length - 1; i > 0; i--) { if (ChatManager.chat[i - 1] != null) { if (ChatManager.chat[i] == null) { ChatManager.chat[i] = new Chat(ChatManager.chat[i - 1].player, ChatManager.chat[i - 1].mode, ChatManager.chat[i - 1].color, ChatManager.chat[i - 1].isRich, ChatManager.chat[i - 1].speaker, ChatManager.chat[i - 1].text); } else { ChatManager.chat[i].player = ChatManager.chat[i - 1].player; ChatManager.chat[i].mode = ChatManager.chat[i - 1].mode; ChatManager.chat[i].color = ChatManager.chat[i - 1].color; ChatManager.chat[i].isRich = ChatManager.chat[i - 1].isRich; ChatManager.chat[i].speaker = ChatManager.chat[i - 1].speaker; ChatManager.chat[i].text = ChatManager.chat[i - 1].text; } } } if (ChatManager.chat[0] == null) { ChatManager.chat[0] = new Chat(steamPlayer, mode, color, isRich, text2, text); } else { ChatManager.chat[0].player = steamPlayer; ChatManager.chat[0].mode = mode; ChatManager.chat[0].color = color; ChatManager.chat[0].isRich = isRich; ChatManager.chat[0].speaker = text2; ChatManager.chat[0].text = text; } if (ChatManager.onListed != null) { ChatManager.onListed(); } }