Example #1
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("ConcreteSolid", true, out subEle);
            subEle.Value = ConcreteSolid.ToHex();

            ele.TryPathTo("ConcreteBroken", true, out subEle);
            subEle.Value = ConcreteBroken.ToHex();

            ele.TryPathTo("MetalSolid", true, out subEle);
            subEle.Value = MetalSolid.ToHex();

            ele.TryPathTo("MetalHollow", true, out subEle);
            subEle.Value = MetalHollow.ToHex();

            ele.TryPathTo("MetalSheet", true, out subEle);
            subEle.Value = MetalSheet.ToHex();

            ele.TryPathTo("Wood", true, out subEle);
            subEle.Value = Wood.ToHex();

            ele.TryPathTo("Sand", true, out subEle);
            subEle.Value = Sand.ToHex();

            ele.TryPathTo("Dirt", true, out subEle);
            subEle.Value = Dirt.ToHex();

            ele.TryPathTo("Grass", true, out subEle);
            subEle.Value = Grass.ToHex();

            ele.TryPathTo("Water", true, out subEle);
            subEle.Value = Water.ToHex();
        }
Example #2
0
        public bool Equals(FootstepMaterial other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            if (((object)this == null) || ((object)other == null))
            {
                return(false);
            }

            return(ConcreteSolid.SequenceEqual(other.ConcreteSolid) &&
                   ConcreteBroken.SequenceEqual(other.ConcreteBroken) &&
                   MetalSolid.SequenceEqual(other.MetalSolid) &&
                   MetalHollow.SequenceEqual(other.MetalHollow) &&
                   MetalSheet.SequenceEqual(other.MetalSheet) &&
                   Wood.SequenceEqual(other.Wood) &&
                   Sand.SequenceEqual(other.Sand) &&
                   Dirt.SequenceEqual(other.Dirt) &&
                   Grass.SequenceEqual(other.Grass) &&
                   Water.SequenceEqual(other.Water));
        }