Esempio n. 1
0
 public GrassData(string Tag = null)
     : base(Tag)
 {
     Density             = new Byte();
     MinSlope            = new Byte();
     MaxSlope            = new Byte();
     Unused1             = new Byte();
     UnitFromWaterAmount = new UInt16();
     Unused2             = new byte[2];
     UnitFromWaterType   = new UnitFromWaterType();
     PositionRange       = new Single();
     HeightRange         = new Single();
     ColorRange          = new Single();
     WavePeriod          = new Single();
     Flags   = new GrassFlags();
     Unused3 = new byte[3];
 }
Esempio n. 2
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Density", true, out subEle);
            subEle.Value = Density.ToString();

            ele.TryPathTo("Slope/Min", true, out subEle);
            subEle.Value = MinSlope.ToString();

            ele.TryPathTo("Slope/Max", true, out subEle);
            subEle.Value = MaxSlope.ToString();

            WriteUnused1XML(ele, master);

            ele.TryPathTo("UnitFromWater/Amount", true, out subEle);
            subEle.Value = UnitFromWaterAmount.ToString();

            WriteUnused2XML(ele, master);

            ele.TryPathTo("UnitFromWater/Type", true, out subEle);
            subEle.Value = UnitFromWaterType.ToString();

            ele.TryPathTo("PositionRange", true, out subEle);
            subEle.Value = PositionRange.ToString("G15");

            ele.TryPathTo("HeightRange", true, out subEle);
            subEle.Value = HeightRange.ToString("G15");

            ele.TryPathTo("ColorRange", true, out subEle);
            subEle.Value = ColorRange.ToString("G15");

            ele.TryPathTo("WavePeriod", true, out subEle);
            subEle.Value = WavePeriod.ToString("G15");

            ele.TryPathTo("Flags", true, out subEle);
            subEle.Value = Flags.ToString();

            WriteUnused3XML(ele, master);
        }
Esempio n. 3
0
 public GrassData(Byte Density, Byte MinSlope, Byte MaxSlope, Byte Unused1, UInt16 UnitFromWaterAmount, Byte[] Unused2, UnitFromWaterType UnitFromWaterType, Single PositionRange, Single HeightRange, Single ColorRange, Single WavePeriod, GrassFlags Flags, Byte[] Unused3)
 {
     this.Density             = Density;
     this.MinSlope            = MinSlope;
     this.MaxSlope            = MaxSlope;
     this.Unused1             = Unused1;
     this.UnitFromWaterAmount = UnitFromWaterAmount;
     this.Unused2             = Unused2;
     this.UnitFromWaterType   = UnitFromWaterType;
     this.PositionRange       = PositionRange;
     this.HeightRange         = HeightRange;
     this.ColorRange          = ColorRange;
     this.WavePeriod          = WavePeriod;
     this.Flags   = Flags;
     this.Unused3 = Unused3;
 }