private void ParseMillionBillion() { this.ConsumeCharacter(); this.m_currentValue = string.Empty; if (false) { while (this.ReadCharacter() != ':') { WowTextParser wowTextParser = this; wowTextParser.m_currentValue = string.Concat(wowTextParser.m_currentValue, this.ReadCharacter()); this.ConsumeCharacter(); } while (this.ReadCharacter() != ';' && this.ConsumeCharacter()) { } this.ConsumeCharacter(); } else { while (this.ReadCharacter() != ':' && this.ConsumeCharacter()) { } this.ConsumeCharacter(); while (this.ReadCharacter() != ';') { WowTextParser wowTextParser1 = this; wowTextParser1.m_currentValue = string.Concat(wowTextParser1.m_currentValue, this.ReadCharacter()); this.ConsumeCharacter(); } this.ConsumeCharacter(); } this.AddTextToken(); }
private void ParseAmpersand() { this.ConsumeCharacter(); if (this.ReadString(10).ToLower() != "garrabdesc") { return; } this.ConsumeCharacters(10); this.ReadAndConsumeNumber(); if (this.m_currentValue == string.Empty) { return; } int num = Convert.ToInt32(this.m_currentValue); GarrAbilityRec record = StaticDB.garrAbilityDB.GetRecord(num); if (record == null) { return; } WowTextParser wowTextParser = new WowTextParser(); this.m_currentValue = wowTextParser.Parse(record.Description, 0); this.AddTextToken(); }
private void ReadAndConsumeNumber() { this.m_currentValue = string.Empty; while (this.CharacterIsNumeric(this.ReadCharacter())) { WowTextParser wowTextParser = this; wowTextParser.m_currentValue = string.Concat(wowTextParser.m_currentValue, this.ReadCharacter()); this.ConsumeCharacter(); } }
private void ParseColorStart() { this.m_richText = true; this.ConsumeCharacter(); this.m_currentValue = "<color=#"; for (int i = 0; i < 8; i++) { WowTextParser wowTextParser = this; wowTextParser.m_currentValue = string.Concat(wowTextParser.m_currentValue, this.ReadCharacter()); this.ConsumeCharacter(); } WowTextParser wowTextParser1 = this; wowTextParser1.m_currentValue = string.Concat(wowTextParser1.m_currentValue, ">"); this.AddColorStartToken(); }
private void ParseCharacter() { if (this.m_bracketLevel <= 0) { WowTextParser wowTextParser = this; wowTextParser.m_currentValue = string.Concat(wowTextParser.m_currentValue, this.ReadCharacter()); this.ConsumeCharacter(); } else if (!this.CharacterIsNumeric(this.ReadCharacter())) { this.ConsumeCharacter(); } else { this.ReadAndConsumeNumber(); this.AddNumericToken(); } }