public PerkAbilityData(PerkAbilityData copyObject) { if (copyObject.Ability != null) { Ability = (FormID)copyObject.Ability.Clone(); } }
/// <summary> /// FormID 为空则不调用上传函数 /// </summary> public void Save() { if (FormID != null && FormID.Trim().Length > 0) { _UploadFiles(); } }
public RecipeData(ActorValues Skill, UInt32 Level, FormID Category, FormID SubCategory) { this.Skill = Skill; this.Level = Level; this.Category = Category; this.SubCategory = SubCategory; }
public RelatedWaters(string Tag = null) : base(Tag) { Daytime = new FormID(); Nighttime = new FormID(); Underwater = new FormID(); }
public Condition(Comparison Comparison, Function Function, FunctionTarget RunOn, FormID RunOnReference) { this.Comparison = Comparison; this.Function = Function; this.RunOn = RunOn; this.RunOnReference = RunOnReference; }
public InventoryItemExtraData(string Tag = null) : base(Tag) { Owner = new FormID(); OwnerData = new UInt32(); Condition = new Single(); }
public FactionMembership(string Tag = null) : base(Tag) { Faction = new FormID(); Rank = new Byte(); Unused = new byte[3]; }
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; }
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(); }
public RecordReference(RecordReference copyObject) { if (copyObject.Reference != null) { Reference = (FormID)copyObject.Reference.Clone(); } }
public EnableParent(string Tag = null) : base(Tag) { Parent = new FormID(); Flags = new EnableParentFlags(); Unknown = new byte[3]; }
public Relationship(string Tag = null) : base(Tag) { Faction = new FormID(); Modifier = new Int32(); CombatReaction = new RelationshipCombatReaction(); }
public RadioData(Single RangeRadius, BroadcastRangeType BroadcastRange, Single StaticPercentage, FormID PositionReference) { this.RangeRadius = RangeRadius; this.BroadcastRange = BroadcastRange; this.StaticPercentage = StaticPercentage; this.PositionReference = PositionReference; }
public LoadScreenLocation(FormID Direct, FormID IndirectWorld, Int16 IndirectGridY, Int16 IndirectGridX) { this.Direct = Direct; this.IndirectWorld = IndirectWorld; this.IndirectGridY = IndirectGridY; this.IndirectGridX = IndirectGridX; }
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); }
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(); }
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)) }); } }
public QuestTargetData(string Tag = null) : base(Tag) { Target = new FormID(); Flags = new QuestTargetFlags(); Unused = new byte[3]; }
public SwappedImpact(string Tag = null) : base(Tag) { MaterialType = new MaterialTypeUInt(); OldImpact = new FormID(); NewImpact = new FormID(); }
public LinkedOcclusionPlanes(FormID Right, FormID Left, FormID Bottom, FormID Top) { this.Right = Right; this.Left = Left; this.Bottom = Bottom; this.Top = Top; }
public AnimationSound(FormID Sound, Byte Chance, Byte[] Unused, AnimationSoundType Type) { this.Sound = Sound; this.Chance = Chance; this.Unused = Unused; this.Type = Type; }
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; }
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); }
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); }
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); }
public void Import_String0x() { Assert.True( FormID.TryFactory("0x0100C51A", out FormID id)); Assert.Equal( new FormID(modID: new ModIndex(1), id: 0x00C51A), id); }
public LinkedOcclusionPlanes(string Tag = null) : base(Tag) { Right = new FormID(); Left = new FormID(); Bottom = new FormID(); Top = new FormID(); }
public LoadScreenLocation(string Tag = null) : base(Tag) { Direct = new FormID(); IndirectWorld = new FormID(); IndirectGridY = new Int16(); IndirectGridX = new Int16(); }
public AnimationSound(string Tag = null) : base(Tag) { Sound = new FormID(); Chance = new Byte(); Unused = new byte[3]; Type = new AnimationSoundType(); }
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; }