Ejemplo n.º 1
0
 public PerkAbilityData(PerkAbilityData copyObject)
 {
     if (copyObject.Ability != null)
     {
         Ability = (FormID)copyObject.Ability.Clone();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// FormID 为空则不调用上传函数
 /// </summary>
 public void Save()
 {
     if (FormID != null && FormID.Trim().Length > 0)
     {
         _UploadFiles();
     }
 }
Ejemplo n.º 3
0
 public RecipeData(ActorValues Skill, UInt32 Level, FormID Category, FormID SubCategory)
 {
     this.Skill       = Skill;
     this.Level       = Level;
     this.Category    = Category;
     this.SubCategory = SubCategory;
 }
Ejemplo n.º 4
0
 public RelatedWaters(string Tag = null)
     : base(Tag)
 {
     Daytime    = new FormID();
     Nighttime  = new FormID();
     Underwater = new FormID();
 }
Ejemplo n.º 5
0
 public Condition(Comparison Comparison, Function Function, FunctionTarget RunOn, FormID RunOnReference)
 {
     this.Comparison     = Comparison;
     this.Function       = Function;
     this.RunOn          = RunOn;
     this.RunOnReference = RunOnReference;
 }
Ejemplo n.º 6
0
 public InventoryItemExtraData(string Tag = null)
     : base(Tag)
 {
     Owner     = new FormID();
     OwnerData = new UInt32();
     Condition = new Single();
 }
Ejemplo n.º 7
0
 public FactionMembership(string Tag = null)
     : base(Tag)
 {
     Faction = new FormID();
     Rank    = new Byte();
     Unused  = new byte[3];
 }
Ejemplo n.º 8
0
 public NavigationConnectionInfo(FormID Unknown1, List <FormID> Unknown2, List <FormID> Unknown3, List <FormID> Doors)
 {
     this.Unknown1 = Unknown1;
     this.Unknown2 = Unknown2;
     this.Unknown3 = Unknown3;
     this.Doors    = Doors;
 }
Ejemplo n.º 9
0
 public BodyPartInfo(string Tag = null)
     : base(Tag)
 {
     DamageMultiplier       = new Single();
     Flags                  = new BodyPartDataFlags();
     Type                   = new BodyPartType();
     HealthPercent          = new Byte();
     ActorValue             = new ActorValuesByte();
     ToHitChance            = new Byte();
     ExplosionChance        = new Byte();
     ExplosionDebrisCount   = new UInt16();
     ExplosionDebris        = new FormID();
     Explosion              = new FormID();
     TrackingMaxAngle       = new Single();
     ExplosionDebrisScale   = new Single();
     SeverableDebrisCount   = new Int32();
     SeverableDebris        = new FormID();
     SeverableExplosion     = new FormID();
     SeverableDebrisScale   = new Single();
     GoreEffectsTranslateX  = new Single();
     GoreEffectsTranslateY  = new Single();
     GoreEffectsTranslateZ  = new Single();
     GoreEffectsRotationX   = new Single();
     GoreEffectsRotationY   = new Single();
     GoreEffectsRotationZ   = new Single();
     SeverableImpactDataSet = new FormID();
     ExplosionImpactDataSet = new FormID();
     SeverableDecalCount    = new Byte();
     ExplosionDecalCount    = new Byte();
     Unused                 = new byte[2];
     LimbReplacementScale   = new Single();
 }
Ejemplo n.º 10
0
 public RecordReference(RecordReference copyObject)
 {
     if (copyObject.Reference != null)
     {
         Reference = (FormID)copyObject.Reference.Clone();
     }
 }
Ejemplo n.º 11
0
 public EnableParent(string Tag = null)
     : base(Tag)
 {
     Parent  = new FormID();
     Flags   = new EnableParentFlags();
     Unknown = new byte[3];
 }
Ejemplo n.º 12
0
 public Relationship(string Tag = null)
     : base(Tag)
 {
     Faction        = new FormID();
     Modifier       = new Int32();
     CombatReaction = new RelationshipCombatReaction();
 }
Ejemplo n.º 13
0
 public RadioData(Single RangeRadius, BroadcastRangeType BroadcastRange, Single StaticPercentage, FormID PositionReference)
 {
     this.RangeRadius       = RangeRadius;
     this.BroadcastRange    = BroadcastRange;
     this.StaticPercentage  = StaticPercentage;
     this.PositionReference = PositionReference;
 }
Ejemplo n.º 14
0
 public LoadScreenLocation(FormID Direct, FormID IndirectWorld, Int16 IndirectGridY, Int16 IndirectGridX)
 {
     this.Direct        = Direct;
     this.IndirectWorld = IndirectWorld;
     this.IndirectGridY = IndirectGridY;
     this.IndirectGridX = IndirectGridX;
 }
Ejemplo n.º 15
0
        public XDocument WriteXML(ElderScrollsPlugin master)
        {
            XDocument doc  = new XDocument();
            XElement  root = new XElement("Record",
                                          new XAttribute("Tag", Tag));

            doc.Add(root);

            root.Add(
                new XElement("Flags", Flags),
                new XElement("FormID"),
                new XElement("FormVersion", FormVersion),
                new XElement("CompressionCorrupted", compressionCorrupted)
                );

            FormID.WriteXML(root.Element("FormID"), master);

            if (compressionCorrupted)
            {
                root.Add(new XElement("CorruptedBytes"), corruptedBytes.ToBase64());
            }
            else
            {
                XElement ele = new XElement("Subrecords");
                root.Add(ele);
                WriteDataXML(ele, master);
            }
            return(doc);
        }
Ejemplo n.º 16
0
 public ProjectileData(string Tag = null)
     : base(Tag)
 {
     Flags                        = new ProjectileFlags();
     Type                         = new ProjectileType();
     Gravity                      = new Single();
     Speed                        = new Single();
     Range                        = new Single();
     Light                        = new FormID();
     MuzzleFlashLight             = new FormID();
     TracerChance                 = new Single();
     ExplosionAltTriggerProximity = new Single();
     ExplosionAltTriggerTimer     = new Single();
     Explosion                    = new FormID();
     Sound                        = new FormID();
     MuzzleFlashDuration          = new Single();
     FadeDuration                 = new Single();
     ImpactForce                  = new Single();
     SoundCountdown               = new FormID();
     Sounddisable                 = new FormID();
     DefaultWeaponSource          = new FormID();
     XRotation                    = new Single();
     YRotation                    = new Single();
     ZRotation                    = new Single();
     BouncyMult                   = new Single();
 }
Ejemplo n.º 17
0
            public static OwnerTarget GetBinaryOwner(ReadOnlySpan <byte> span, RecordInfoCache cache, MasterReferenceReader masters)
            {
                FormID  form    = new FormID(BinaryPrimitives.ReadUInt32LittleEndian(span));
                FormKey formKey = FormKey.Factory(masters, form.Raw);

                if (cache.IsOfRecordType <Npc>(formKey))
                {
                    return(new NpcOwner()
                    {
                        Npc = new FormLink <INpcGetter>(FormKeyBinaryTranslation.Instance.Parse(span, masters)),
                        Global = new FormLink <IGlobalGetter>(FormKeyBinaryTranslation.Instance.Parse(span.Slice(4), masters))
                    });
                }
                else if (cache.IsOfRecordType <Faction>(formKey))
                {
                    return(new FactionOwner()
                    {
                        Faction = new FormLink <IFactionGetter>(FormKeyBinaryTranslation.Instance.Parse(span, masters)),
                        RequiredRank = BinaryPrimitives.ReadInt32LittleEndian(span.Slice(4))
                    });
                }
                else
                {
                    return(new NoOwner()
                    {
                        RawOwnerData = BinaryPrimitives.ReadUInt32LittleEndian(span),
                        RawVariableData = BinaryPrimitives.ReadUInt32LittleEndian(span.Slice(4))
                    });
                }
            }
Ejemplo n.º 18
0
 public QuestTargetData(string Tag = null)
     : base(Tag)
 {
     Target = new FormID();
     Flags  = new QuestTargetFlags();
     Unused = new byte[3];
 }
Ejemplo n.º 19
0
 public SwappedImpact(string Tag = null)
     : base(Tag)
 {
     MaterialType = new MaterialTypeUInt();
     OldImpact    = new FormID();
     NewImpact    = new FormID();
 }
Ejemplo n.º 20
0
 public LinkedOcclusionPlanes(FormID Right, FormID Left, FormID Bottom, FormID Top)
 {
     this.Right  = Right;
     this.Left   = Left;
     this.Bottom = Bottom;
     this.Top    = Top;
 }
Ejemplo n.º 21
0
 public AnimationSound(FormID Sound, Byte Chance, Byte[] Unused, AnimationSoundType Type)
 {
     this.Sound  = Sound;
     this.Chance = Chance;
     this.Unused = Unused;
     this.Type   = Type;
 }
Ejemplo n.º 22
0
 public AmmoExtraData(UInt32 ProjectilesPerShot, FormID Projectile, Single Weight, FormID ConsumedAmmo, Single ConsumedPercentage)
 {
     this.ProjectilesPerShot = ProjectilesPerShot;
     this.Projectile         = Projectile;
     this.Weight             = Weight;
     this.ConsumedAmmo       = ConsumedAmmo;
     this.ConsumedPercentage = ConsumedPercentage;
 }
Ejemplo n.º 23
0
        public void Import_Zero()
        {
            byte[] bytes = new byte[4];
            FormID id    = FormID.Factory(bytes);

            Assert.Equal(0, id.ModIndex.ID);
            Assert.Equal(uint.MinValue, id.ID);
        }
Ejemplo n.º 24
0
        public void Ctor_WithModID()
        {
            FormID id = new FormID(new ModIndex(0x12), 0x00345678);

            Assert.Equal((uint)(0x345678), id.ID);
            Assert.Equal((byte)(0x12), id.ModIndex.ID);
            Assert.Equal((uint)0x12345678, id.Raw);
        }
Ejemplo n.º 25
0
        public void Ctor_Typical()
        {
            FormID id = new FormID(0x12345678);

            Assert.Equal((uint)(0x345678), id.ID);
            Assert.Equal((byte)(0x12), id.ModIndex.ID);
            Assert.Equal((uint)0x12345678, id.Raw);
        }
Ejemplo n.º 26
0
 public void Import_String0x()
 {
     Assert.True(
         FormID.TryFactory("0x0100C51A", out FormID id));
     Assert.Equal(
         new FormID(modID: new ModIndex(1), id: 0x00C51A),
         id);
 }
Ejemplo n.º 27
0
 public LinkedOcclusionPlanes(string Tag = null)
     : base(Tag)
 {
     Right  = new FormID();
     Left   = new FormID();
     Bottom = new FormID();
     Top    = new FormID();
 }
Ejemplo n.º 28
0
 public LoadScreenLocation(string Tag = null)
     : base(Tag)
 {
     Direct        = new FormID();
     IndirectWorld = new FormID();
     IndirectGridY = new Int16();
     IndirectGridX = new Int16();
 }
Ejemplo n.º 29
0
 public AnimationSound(string Tag = null)
     : base(Tag)
 {
     Sound  = new FormID();
     Chance = new Byte();
     Unused = new byte[3];
     Type   = new AnimationSoundType();
 }
Ejemplo n.º 30
0
 public EncounterZoneData(FormID Owner, Byte OwnerRank, Byte MinimumLevel, EncounterZoneFlags Flags, Byte Unused)
 {
     this.Owner        = Owner;
     this.OwnerRank    = OwnerRank;
     this.MinimumLevel = MinimumLevel;
     this.Flags        = Flags;
     this.Unused       = Unused;
 }