Example #1
0
        public override void ReadXml(XmlReader reader)
        {
			this.Points = reader.ReadAttrAsFloat("Points", 0);
            this.DamageSpecified = reader.ReadAttrAsFloat("Damage", ref this.Damage);

            base.ReadXml(reader);
        }
Example #2
0
        public override void ReadXml(System.Xml.XmlReader reader)
        {
            this.StartScreen = reader["StartScreen"];
            this.PauseScreen = reader["PauseScreen"];
            reader.ReadAttrAsBoolean("ShowFPS", ref this.ShowFPS);
            reader.ReadAttrAsBoolean("ShowDebugInfo");
            reader.ReadAttrAsFloat("CpsLimit", ref this.CpsLimit);
            reader.ReadAttrAsFloat("CpsTimeSpan", ref this.CpsTimeSpan);

            base.ReadXml(reader);
        }
Example #3
0
        public override void ReadXml(XmlReader reader)
        {
            reader.ReadAttrAsString("Name", ref this.Name);
            reader.ReadAttrAsString("File", ref this.File);
            reader.ReadAttrAsInt("BombCount", ref this.BombCount);
            reader.ReadAttrAsFloat("HeroHealth", ref this.HeroHealth);
            reader.ReadAttrAsString("ExplosionClass", ref this.ExplosionClass);
            
			reader.ReadAttrAsFloat("StarScoreRatio1", ref this.StarScoreRatio1);
			reader.ReadAttrAsFloat("StarScoreRatio2", ref this.StarScoreRatio2);
			reader.ReadAttrAsFloat("StarScoreRatio3", ref this.StarScoreRatio3);
			reader.ReadAttrAsFloat("TimeBonusThreshold", ref this.TimeBonusThreshold);
			reader.ReadAttrAsFloat("HealthBonusThreshold", ref this.HealthBonusThreshold);
			reader.ReadAttrAsFloat("TimeBonusRatio", ref this.TimeBonusRatio);
			reader.ReadAttrAsFloat("TimeExtraBonusRatio", ref this.TimeExtraBonusRatio);
			reader.ReadAttrAsFloat("HealthBonusRatio", ref this.HealthBonusRatio);
			
            base.ReadXml(reader);
			
			if (string.IsNullOrEmpty(this.Name))
				this.Name = this.Id;
        }
Example #4
0
		public override void ReadXml(XmlReader reader)
		{
			this.Id = reader["Id"];
			reader.ReadAttrAsFloat("AvailablePoints", ref availablePoints);
			reader.ReadAttrAsFloat("Score", ref score);
			reader.ReadAttrAsFloat("Time", ref time);
			reader.ReadAttrAsFloat("Health", ref health);
		}