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

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

            if (ele.TryPathTo("MinLevel", false, out subEle))
            {
                MinLevel = subEle.ToByte();
            }

            if (ele.TryPathTo("Ranks", false, out subEle))
            {
                Ranks = subEle.ToByte();
            }

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

            if (ele.TryPathTo("IsHidden", false, out subEle))
            {
                IsHidden = subEle.ToEnum <NoYesByte>();
            }
        }
コード例 #2
0
 public DebrisData(string Tag = null)
     : base(Tag)
 {
     Percentage       = new Byte();
     Model            = "";
     HasCollisionData = new NoYesByte();
 }
コード例 #3
0
 public PerkData(PerkData copyObject)
 {
     IsTrait    = copyObject.IsTrait;
     MinLevel   = copyObject.MinLevel;
     Ranks      = copyObject.Ranks;
     IsPlayable = copyObject.IsPlayable;
     IsHidden   = copyObject.IsHidden;
 }
コード例 #4
0
 public PerkData(NoYesByte IsTrait, Byte MinLevel, Byte Ranks, NoYesByte IsPlayable, NoYesByte IsHidden)
 {
     this.IsTrait    = IsTrait;
     this.MinLevel   = MinLevel;
     this.Ranks      = Ranks;
     this.IsPlayable = IsPlayable;
     this.IsHidden   = IsHidden;
 }
コード例 #5
0
 public DebrisData(DebrisData copyObject)
 {
     Percentage = copyObject.Percentage;
     if (copyObject.Model != null)
     {
         Model = (String)copyObject.Model.Clone();
     }
     HasCollisionData = copyObject.HasCollisionData;
 }
コード例 #6
0
 public PerkData(string Tag = null)
     : base(Tag)
 {
     IsTrait    = new NoYesByte();
     MinLevel   = new Byte();
     Ranks      = new Byte();
     IsPlayable = new NoYesByte();
     IsHidden   = new NoYesByte();
 }
コード例 #7
0
 public WeaponVATSData(string Tag = null)
     : base(Tag)
 {
     Effect           = new FormID();
     SkillRequirement = new Single();
     DamageMult       = new Single();
     APCost           = new Single();
     IsSilent         = new NoYesByte();
     RequiresMod      = new NoYesByte();
     Unused           = new byte[2];
 }
コード例 #8
0
 public RagdollData(UInt32 DynamicBoneCount, Byte[] Unused1, NoYesByte FeedbackEnabled, NoYesByte FootIKEnabled, NoYesByte LookIKEnabled, NoYesByte GrabIKEnabled, NoYesByte PoseMatching, Byte Unused2)
 {
     this.DynamicBoneCount = DynamicBoneCount;
     this.Unused1          = Unused1;
     this.FeedbackEnabled  = FeedbackEnabled;
     this.FootIKEnabled    = FootIKEnabled;
     this.LookIKEnabled    = LookIKEnabled;
     this.GrabIKEnabled    = GrabIKEnabled;
     this.PoseMatching     = PoseMatching;
     this.Unused2          = Unused2;
 }
コード例 #9
0
 public ResponseData(string Tag = null)
     : base(Tag)
 {
     Emotion             = new EmotionType();
     EmotionValue        = new Int32();
     Unused1             = new byte[4];
     ResponseNumber      = new Byte();
     Unused2             = new byte[3];
     Sound               = new FormID();
     UseEmotionAnimation = new NoYesByte();
     Unused3             = new byte[3];
 }
コード例 #10
0
 public RagdollData(string Tag = null)
     : base(Tag)
 {
     DynamicBoneCount = new UInt32();
     Unused1          = new byte[4];
     FeedbackEnabled  = new NoYesByte();
     FootIKEnabled    = new NoYesByte();
     LookIKEnabled    = new NoYesByte();
     GrabIKEnabled    = new NoYesByte();
     PoseMatching     = new NoYesByte();
     Unused2          = new Byte();
 }
コード例 #11
0
 public RagdollPoseMatching(string Tag = null)
     : base(Tag)
 {
     MatchBone1              = new UInt16();
     MatchBone2              = new UInt16();
     MatchBone3              = new UInt16();
     DisableOnMove           = new NoYesByte();
     Unused                  = new Byte();
     MotorsStrength          = new Single();
     PoseActivationDelayTime = new Single();
     MatchErrorAllowance     = new Single();
     DisplacementToDisable   = new Single();
 }
コード例 #12
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Percentage       = subReader.ReadByte();
                 Model            = subReader.ReadString();
                 HasCollisionData = subReader.ReadEnum <NoYesByte>();
             }
             catch
             {
                 return;
             }
         }
 }
コード例 #13
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 IsTrait    = subReader.ReadEnum <NoYesByte>();
                 MinLevel   = subReader.ReadByte();
                 Ranks      = subReader.ReadByte();
                 IsPlayable = subReader.ReadEnum <NoYesByte>();
                 IsHidden   = subReader.ReadEnum <NoYesByte>();
             }
             catch
             {
                 return;
             }
         }
 }
コード例 #14
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Percentage", false, out subEle))
            {
                Percentage = subEle.ToByte();
            }

            if (ele.TryPathTo("Model", false, out subEle))
            {
                Model = subEle.Value;
            }

            if (ele.TryPathTo("HasCollisionData", false, out subEle))
            {
                HasCollisionData = subEle.ToEnum <NoYesByte>();
            }
        }
コード例 #15
0
 public RagdollPoseMatching(UInt16 MatchBone1, UInt16 MatchBone2, UInt16 MatchBone3, NoYesByte DisableOnMove, Byte Unused, Single MotorsStrength, Single PoseActivationDelayTime, Single MatchErrorAllowance, Single DisplacementToDisable)
 {
     this.MatchBone1              = MatchBone1;
     this.MatchBone2              = MatchBone2;
     this.MatchBone3              = MatchBone3;
     this.DisableOnMove           = DisableOnMove;
     this.Unused                  = Unused;
     this.MotorsStrength          = MotorsStrength;
     this.PoseActivationDelayTime = PoseActivationDelayTime;
     this.MatchErrorAllowance     = MatchErrorAllowance;
     this.DisplacementToDisable   = DisplacementToDisable;
 }
コード例 #16
0
 public WeaponVATSData(FormID Effect, Single SkillRequirement, Single DamageMult, Single APCost, NoYesByte IsSilent, NoYesByte RequiresMod, Byte[] Unused)
 {
     this.Effect           = Effect;
     this.SkillRequirement = SkillRequirement;
     this.DamageMult       = DamageMult;
     this.APCost           = APCost;
     this.IsSilent         = IsSilent;
     this.RequiresMod      = RequiresMod;
     this.Unused           = Unused;
 }
コード例 #17
0
 public ResponseData(EmotionType Emotion, Int32 EmotionValue, Byte[] Unused1, Byte ResponseNumber, Byte[] Unused2, FormID Sound, NoYesByte UseEmotionAnimation, Byte[] Unused3)
 {
     this.Emotion             = Emotion;
     this.EmotionValue        = EmotionValue;
     this.Unused1             = Unused1;
     this.ResponseNumber      = ResponseNumber;
     this.Unused2             = Unused2;
     this.Sound               = Sound;
     this.UseEmotionAnimation = UseEmotionAnimation;
     this.Unused3             = Unused3;
 }
コード例 #18
0
 public DebrisData(Byte Percentage, String Model, NoYesByte HasCollisionData)
 {
     this.Percentage       = Percentage;
     this.Model            = Model;
     this.HasCollisionData = HasCollisionData;
 }