コード例 #1
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Effect/Duration", false, out subEle))
            {
                EffectDuration = subEle.ToSingle();
            }

            if (ele.TryPathTo("Effect/Orientation", false, out subEle))
            {
                EffectOrientation = subEle.ToEnum <ImpactOrientation>();
            }

            if (ele.TryPathTo("AngleThreshold", false, out subEle))
            {
                AngleThreshold = subEle.ToSingle();
            }

            if (ele.TryPathTo("PlacementRadius", false, out subEle))
            {
                PlacementRadius = subEle.ToSingle();
            }

            if (ele.TryPathTo("SoundLevel", false, out subEle))
            {
                SoundLevel = subEle.ToEnum <SoundLevel>();
            }

            if (ele.TryPathTo("HasDecalData", false, out subEle))
            {
                HasDecalData = subEle.ToEnum <YesNoUInt>();
            }
        }
コード例 #2
0
 public ImpactData(ImpactData copyObject)
 {
     EffectDuration    = copyObject.EffectDuration;
     EffectOrientation = copyObject.EffectOrientation;
     AngleThreshold    = copyObject.AngleThreshold;
     PlacementRadius   = copyObject.PlacementRadius;
     SoundLevel        = copyObject.SoundLevel;
     HasDecalData      = copyObject.HasDecalData;
 }
コード例 #3
0
 public ImpactData(Single EffectDuration, ImpactOrientation EffectOrientation, Single AngleThreshold, Single PlacementRadius, SoundLevel SoundLevel, YesNoUInt HasDecalData)
 {
     this.EffectDuration    = EffectDuration;
     this.EffectOrientation = EffectOrientation;
     this.AngleThreshold    = AngleThreshold;
     this.PlacementRadius   = PlacementRadius;
     this.SoundLevel        = SoundLevel;
     this.HasDecalData      = HasDecalData;
 }
コード例 #4
0
 public ImpactData(string Tag = null)
     : base(Tag)
 {
     EffectDuration    = new Single();
     EffectOrientation = new ImpactOrientation();
     AngleThreshold    = new Single();
     PlacementRadius   = new Single();
     SoundLevel        = new SoundLevel();
     HasDecalData      = new YesNoUInt();
 }
コード例 #5
0
 public TeleportDestinationData(FormID Door, Single PositionX, Single PositionY, Single PositionZ, Single RotationX, Single RotationY, Single RotationZ, YesNoUInt Alarm)
 {
     this.Door      = Door;
     this.PositionX = PositionX;
     this.PositionY = PositionY;
     this.PositionZ = PositionZ;
     this.RotationX = RotationX;
     this.RotationY = RotationY;
     this.RotationZ = RotationZ;
     this.Alarm     = Alarm;
 }
コード例 #6
0
 public TeleportDestinationData(string Tag = null)
     : base(Tag)
 {
     Door      = new FormID();
     PositionX = new Single();
     PositionY = new Single();
     PositionZ = new Single();
     RotationX = new Single();
     RotationY = new Single();
     RotationZ = new Single();
     Alarm     = new YesNoUInt();
 }
コード例 #7
0
 public TeleportDestinationData(TeleportDestinationData copyObject)
 {
     if (copyObject.Door != null)
     {
         Door = (FormID)copyObject.Door.Clone();
     }
     PositionX = copyObject.PositionX;
     PositionY = copyObject.PositionY;
     PositionZ = copyObject.PositionZ;
     RotationX = copyObject.RotationX;
     RotationY = copyObject.RotationY;
     RotationZ = copyObject.RotationZ;
     Alarm     = copyObject.Alarm;
 }
コード例 #8
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Door", false, out subEle))
            {
                Door.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Position/X", false, out subEle))
            {
                PositionX = subEle.ToSingle();
            }

            if (ele.TryPathTo("Position/Y", false, out subEle))
            {
                PositionY = subEle.ToSingle();
            }

            if (ele.TryPathTo("Position/Z", false, out subEle))
            {
                PositionZ = subEle.ToSingle();
            }

            if (ele.TryPathTo("Rotation/X", false, out subEle))
            {
                RotationX = subEle.ToSingle();
            }

            if (ele.TryPathTo("Rotation/Y", false, out subEle))
            {
                RotationY = subEle.ToSingle();
            }

            if (ele.TryPathTo("Rotation/Z", false, out subEle))
            {
                RotationZ = subEle.ToSingle();
            }

            if (ele.TryPathTo("Alarm", false, out subEle))
            {
                Alarm = subEle.ToEnum <YesNoUInt>();
            }
        }
コード例 #9
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 EffectDuration    = subReader.ReadSingle();
                 EffectOrientation = subReader.ReadEnum <ImpactOrientation>();
                 AngleThreshold    = subReader.ReadSingle();
                 PlacementRadius   = subReader.ReadSingle();
                 SoundLevel        = subReader.ReadEnum <SoundLevel>();
                 HasDecalData      = subReader.ReadEnum <YesNoUInt>();
             }
             catch
             {
                 return;
             }
         }
 }
コード例 #10
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Door.ReadBinary(subReader);
                 PositionX = subReader.ReadSingle();
                 PositionY = subReader.ReadSingle();
                 PositionZ = subReader.ReadSingle();
                 RotationX = subReader.ReadSingle();
                 RotationY = subReader.ReadSingle();
                 RotationZ = subReader.ReadSingle();
                 Alarm     = subReader.ReadEnum <YesNoUInt>();
             }
             catch
             {
                 return;
             }
         }
 }