protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 MagicEffectFlags = subReader.ReadEnum <MagicEffectFlags>();
                 BaseCost         = subReader.ReadSingle();
                 AssociatedItem.ReadBinary(subReader);
                 MagicSchool    = subReader.ReadEnum <MagicSchool>();
                 ResistanceType = subReader.ReadEnum <ActorValues>();
                 Unknown        = subReader.ReadUInt16();
                 Unused         = subReader.ReadBytes(2);
                 Light.ReadBinary(subReader);
                 ProjectileSpeed = subReader.ReadSingle();
                 EffectShader.ReadBinary(subReader);
                 ObjectDisplayShader.ReadBinary(subReader);
                 EffectSound.ReadBinary(subReader);
                 BoltSound.ReadBinary(subReader);
                 HitSound.ReadBinary(subReader);
                 AreaSound.ReadBinary(subReader);
                 ConstantEffectEnchantmentFactor = subReader.ReadSingle();
                 ConstantEffectBarterFactor      = subReader.ReadSingle();
                 Archetype  = subReader.ReadEnum <MagicEffectArchetype>();
                 ActorValue = subReader.ReadEnum <ActorValues>();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #2
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Density             = subReader.ReadByte();
                 MinSlope            = subReader.ReadByte();
                 MaxSlope            = subReader.ReadByte();
                 Unused1             = subReader.ReadByte();
                 UnitFromWaterAmount = subReader.ReadUInt16();
                 Unused2             = subReader.ReadBytes(2);
                 UnitFromWaterType   = subReader.ReadEnum <UnitFromWaterType>();
                 PositionRange       = subReader.ReadSingle();
                 HeightRange         = subReader.ReadSingle();
                 ColorRange          = subReader.ReadSingle();
                 WavePeriod          = subReader.ReadSingle();
                 Flags   = subReader.ReadEnum <GrassFlags>();
                 Unused3 = subReader.ReadBytes(3);
             }
             catch
             {
                 return;
             }
         }
 }
Пример #3
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Type           = subReader.ReadEnum <LoadScreenTypeEnum>();
                 X              = subReader.ReadUInt32();
                 Y              = subReader.ReadUInt32();
                 Width          = subReader.ReadUInt32();
                 Height         = subReader.ReadUInt32();
                 Orientation    = subReader.ReadSingle();
                 Font1          = subReader.ReadEnum <FontType>();
                 Font1Red       = subReader.ReadSingle();
                 Font1Green     = subReader.ReadSingle();
                 Font1Blue      = subReader.ReadSingle();
                 Font1Alignment = subReader.ReadEnum <FontAlignment>();
                 Unknown1       = subReader.ReadBytes(20);
                 Font2          = subReader.ReadEnum <FontType>();
                 Font2Red       = subReader.ReadSingle();
                 Font2Green     = subReader.ReadSingle();
                 Font2Blue      = subReader.ReadSingle();
                 Unknown2       = subReader.ReadBytes(4);
                 Stats          = subReader.ReadUInt32();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #4
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Force  = subReader.ReadSingle();
                 Damage = subReader.ReadSingle();
                 Radius = subReader.ReadSingle();
                 Light.ReadBinary(subReader);
                 Sound1.ReadBinary(subReader);
                 Flags    = subReader.ReadEnum <ExplosionFlags>();
                 ISRadius = subReader.ReadSingle();
                 ImpactDataSet.ReadBinary(subReader);
                 Sound2.ReadBinary(subReader);
                 RadiationLevel           = subReader.ReadSingle();
                 RadiationDissipationTime = subReader.ReadSingle();
                 RadiationRadius          = subReader.ReadSingle();
                 SoundLevel = subReader.ReadEnum <SoundLevel>();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #5
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 IsAnimatable            = subReader.ReadEnum <NoYes>();
                 Duration                = subReader.ReadSingle();
                 HDREyeAdaptSpeedMult    = subReader.ReadUInt32();
                 HDREyeAdaptSpeedAdd     = subReader.ReadUInt32();
                 HDRBloomBlurRadiusMult  = subReader.ReadUInt32();
                 HDRBloomBlurRadiusAdd   = subReader.ReadUInt32();
                 HDRBloomThresholdMult   = subReader.ReadUInt32();
                 HDRBloomThresholdAdd    = subReader.ReadUInt32();
                 HDRBloomScaleMult       = subReader.ReadUInt32();
                 HDRBloomScaleAdd        = subReader.ReadUInt32();
                 HDRTargetLumMinMult     = subReader.ReadUInt32();
                 HDRTargetLumMinAdd      = subReader.ReadUInt32();
                 HDRTargetLumMaxMult     = subReader.ReadUInt32();
                 HDRTargetLumMaxAdd      = subReader.ReadUInt32();
                 HDRSunlightScaleMult    = subReader.ReadUInt32();
                 HDRSunlightScaleAdd     = subReader.ReadUInt32();
                 HDRSkyScaleMult         = subReader.ReadUInt32();
                 HDRSkyScaleAdd          = subReader.ReadUInt32();
                 Unknown1                = subReader.ReadBytes(72);
                 CinematicSaturationMult = subReader.ReadUInt32();
                 CinematicSaturationAdd  = subReader.ReadUInt32();
                 CinematicBrightnessMult = subReader.ReadUInt32();
                 CinematicBrightnessAdd  = subReader.ReadUInt32();
                 CinematicContrastMult   = subReader.ReadUInt32();
                 CinematicContrastAdd    = subReader.ReadUInt32();
                 Unknown2                = subReader.ReadBytes(8);
                 TintColor.ReadBinary(subReader);
                 BlurRadius            = subReader.ReadUInt32();
                 DoubleVisionStrength  = subReader.ReadUInt32();
                 RadialBlurStrength    = subReader.ReadUInt32();
                 RadialBlurRampUp      = subReader.ReadUInt32();
                 RadialBlurStart       = subReader.ReadUInt32();
                 RadialBlurUseTarget   = subReader.ReadEnum <NoYes>();
                 RadialBlurCenterX     = subReader.ReadUInt32();
                 RadialBlurCenterY     = subReader.ReadUInt32();
                 DepthOfFieldStrength  = subReader.ReadUInt32();
                 DepthOfFieldDistance  = subReader.ReadUInt32();
                 DepthOfFieldRange     = subReader.ReadUInt32();
                 DepthOfFieldUseTarget = subReader.ReadEnum <NoYes>();
                 RadialBlurRampDown    = subReader.ReadUInt32();
                 RadialBlurDownStart   = subReader.ReadUInt32();
                 FadeColor.ReadBinary(subReader);
                 MotionBlurStrength = subReader.ReadEnum <NoYes>();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #6
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 SkillBonus1       = subReader.ReadEnum <ActorValuesByte>();
                 SkillBonus1Amount = subReader.ReadByte();
                 SkillBonus2       = subReader.ReadEnum <ActorValuesByte>();
                 SkillBonus2Amount = subReader.ReadByte();
                 SkillBonus3       = subReader.ReadEnum <ActorValuesByte>();
                 SkillBonus3Amount = subReader.ReadByte();
                 SkillBonus4       = subReader.ReadEnum <ActorValuesByte>();
                 SkillBonus4Amount = subReader.ReadByte();
                 SkillBonus5       = subReader.ReadEnum <ActorValuesByte>();
                 SkillBonus5Amount = subReader.ReadByte();
                 SkillBonus6       = subReader.ReadEnum <ActorValuesByte>();
                 SkillBonus6Amount = subReader.ReadByte();
                 SkillBonus7       = subReader.ReadEnum <ActorValuesByte>();
                 SkillBonus7Amount = subReader.ReadByte();
                 Unused            = subReader.ReadBytes(2);
                 MaleHeight        = subReader.ReadSingle();
                 FemaleHeight      = subReader.ReadSingle();
                 MaleWeight        = subReader.ReadSingle();
                 FemaleWeight      = subReader.ReadSingle();
                 RaceFlags         = subReader.ReadEnum <RaceFlags>();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #7
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 WindSpeed                    = subReader.ReadByte();
                 CloudSpeedLower              = subReader.ReadByte();
                 CloudSpeedUpper              = subReader.ReadByte();
                 TransitionDelta              = subReader.ReadByte();
                 SunGlare                     = subReader.ReadByte();
                 SunDamage                    = subReader.ReadByte();
                 PrecipitationBeginFadeIn     = subReader.ReadByte();
                 PrecipitationEndFadeOut      = subReader.ReadByte();
                 Thunder_LightningBeginFadeIn = subReader.ReadByte();
                 Thunder_LightningEndFadeOut  = subReader.ReadByte();
                 Thunder_LightningFrequency   = subReader.ReadByte();
                 Classification               = subReader.ReadEnum <WeatherClassification>();
                 LightningColorRed            = subReader.ReadByte();
                 LightningColorGreen          = subReader.ReadByte();
                 LightningColorBlue           = subReader.ReadByte();
             }
             catch
             {
                 return;
             }
         }
 }
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 MaleColor   = subReader.ReadEnum <HairColor>();
                 FemaleColor = subReader.ReadEnum <HairColor>();
             }
             catch
             {
                 return;
             }
         }
 }
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 CoverSearchRadius        = subReader.ReadSingle();
                 TakeCoverChance          = subReader.ReadSingle();
                 WaitTimerMin             = subReader.ReadSingle();
                 WaitTimerMax             = subReader.ReadSingle();
                 WaitToFireTimerMin       = subReader.ReadSingle();
                 WaitToFireTimerMax       = subReader.ReadSingle();
                 FireTimerMin             = subReader.ReadSingle();
                 FireTimerMax             = subReader.ReadSingle();
                 RangedWeaponRangeMultMin = subReader.ReadSingle();
                 Unused                     = subReader.ReadBytes(4);
                 WeaponRestrictions         = subReader.ReadEnum <WeaponRestrictions>();
                 RangedWeaponRangeMultMax   = subReader.ReadSingle();
                 MaxTargetingFOV            = subReader.ReadSingle();
                 CombatRadius               = subReader.ReadSingle();
                 SemiAutoFiringDelayMultMin = subReader.ReadSingle();
                 SemiAutoFiringDelayMultMax = subReader.ReadSingle();
             }
             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
             {
                 MinAttenuationDistance        = subReader.ReadByte();
                 MaxAttenuationDistance        = subReader.ReadByte();
                 FrequencyAdjustmentPercentage = subReader.ReadSByte();
                 Unused                   = subReader.ReadByte();
                 SoundDataFlags           = subReader.ReadEnum <SoundDataFlags>();
                 StaticAttenuationcdB     = subReader.ReadInt16();
                 StopTime                 = subReader.ReadByte();
                 StartTime                = subReader.ReadByte();
                 AttenuationCurvePoint1   = subReader.ReadInt16();
                 AttenuationCurvePoint2   = subReader.ReadInt16();
                 AttenuationCurvePoint3   = subReader.ReadInt16();
                 AttenuationCurvePoint4   = subReader.ReadInt16();
                 AttenuationCurvePoint5   = subReader.ReadInt16();
                 ReverbAttenuationControl = subReader.ReadInt16();
                 Priority                 = subReader.ReadInt32();
                 Unknown                  = subReader.ReadBytes(8);
             }
             catch
             {
                 return;
             }
         }
 }
Пример #11
0
 public void ReadBinary(ESPReader reader)
 {
     try
     {
         Object.ReadBinary(reader);
         ParentIndex = reader.ReadUInt16();
         Unused      = reader.ReadBytes(2);
         Density     = reader.ReadSingle();
         Clustering  = reader.ReadByte();
         MinSlope    = reader.ReadByte();
         MaxSlope    = reader.ReadByte();
         Flags       = reader.ReadEnum <RegionObjectFlags>();
         RadiusWithRespectToParent = reader.ReadUInt16();
         Radius         = reader.ReadUInt16();
         Unknown1       = reader.ReadBytes(4);
         MaxHeight      = reader.ReadSingle();
         Sink           = reader.ReadSingle();
         SinkVariance   = reader.ReadSingle();
         SizeVariance   = reader.ReadSingle();
         XAngleVariance = reader.ReadUInt16();
         YAngleVariance = reader.ReadUInt16();
         ZAngleVariance = reader.ReadUInt16();
         Unknown2       = reader.ReadBytes(6);
     }
     catch
     {
         return;
     }
 }
Пример #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
             {
                 DecksPercentBeforeShuffle = subReader.ReadSingle();
                 BlackjackPayoutRatio      = subReader.ReadSingle();
                 SlotReelStop1             = subReader.ReadUInt32();
                 SlotReelStop2             = subReader.ReadUInt32();
                 SlotReelStop3             = subReader.ReadUInt32();
                 SlotReelStop4             = subReader.ReadUInt32();
                 SlotReelStop5             = subReader.ReadUInt32();
                 SlotReelStop6             = subReader.ReadUInt32();
                 SlotReelStopW             = subReader.ReadUInt32();
                 NumberOfDecks             = subReader.ReadUInt32();
                 MaxWinnings = subReader.ReadUInt32();
                 Currency.ReadBinary(subReader);
                 WinningsQuest.ReadBinary(subReader);
                 DealerStayOnSoft17 = subReader.ReadEnum <NoYes>();
             }
             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
             {
                 Type  = subReader.ReadEnum <DialogType>();
                 Flags = subReader.ReadEnum <DialogFlags>();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #14
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 CreatureType = subReader.ReadEnum <CreatureType>();
                 CombatSkill  = subReader.ReadByte();
                 MagicSkill   = subReader.ReadByte();
                 StealthSkill = subReader.ReadByte();
                 Health       = subReader.ReadInt16();
                 Unused       = subReader.ReadBytes(2);
                 Damage       = subReader.ReadInt16();
                 Strength     = subReader.ReadByte();
                 Perception   = subReader.ReadByte();
                 Endurance    = subReader.ReadByte();
                 Charisma     = subReader.ReadByte();
                 Intelligence = subReader.ReadByte();
                 Agility      = subReader.ReadByte();
                 Luck         = subReader.ReadByte();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #15
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 MinWidth       = subReader.ReadSingle();
                 MaxWidth       = subReader.ReadSingle();
                 MinHeight      = subReader.ReadSingle();
                 MaxHeight      = subReader.ReadSingle();
                 Depth          = subReader.ReadSingle();
                 Shininess      = subReader.ReadSingle();
                 ParallaxScale  = subReader.ReadSingle();
                 ParallaxPasses = subReader.ReadByte();
                 DecalFlags     = subReader.ReadEnum <DecalDataFlags>();
                 Unused         = subReader.ReadBytes(2);
                 Color.ReadBinary(subReader);
             }
             catch
             {
                 return;
             }
         }
 }
Пример #16
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Slots  = subReader.ReadEnum <BodySlotFlags>();
                 Flags  = subReader.ReadEnum <BipedDataFlags>();
                 Unused = subReader.ReadBytes(3);
             }
             catch
             {
                 return;
             }
         }
 }
Пример #17
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Flags1 = subReader.ReadEnum <FactionFlags1>();
                 Flags2 = subReader.ReadEnum <FactionFlags2>();
                 Unused = subReader.ReadBytes(2);
             }
             catch
             {
                 return;
             }
         }
 }
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 EntryPoint            = subReader.ReadEnum <EntryPoint>();
                 Function              = subReader.ReadEnum <PerkFunction>();
                 PerkConditionTabCount = subReader.ReadByte();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #19
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Type      = subReader.ReadEnum <AmmoEffectType>();
                 Operation = subReader.ReadEnum <AmmoEffectOperation>();
                 Value     = subReader.ReadSingle();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #20
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Aggression          = subReader.ReadEnum <AggressionType>();
                 Confidence          = subReader.ReadEnum <ConfidenceType>();
                 EnergyLevel         = subReader.ReadByte();
                 Responsibility      = subReader.ReadByte();
                 Mood                = subReader.ReadEnum <MoodType>();
                 Unused              = subReader.ReadBytes(3);
                 Services            = subReader.ReadEnum <ServicesFlag>();
                 Teaches             = subReader.ReadEnum <Skills>();
                 MaxTrainingLevel    = subReader.ReadByte();
                 Assistance          = subReader.ReadEnum <AssistanceType>();
                 AggroRadiusBehavior = subReader.ReadEnum <AggroRadiusBehaviorFlags>();
                 AggroRadius         = subReader.ReadInt32();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #21
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Flags  = subReader.ReadEnum <BookFlags>();
                 Skill  = subReader.ReadEnum <ActorValuesByte>();
                 Value  = subReader.ReadInt32();
                 Weight = subReader.ReadSingle();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #22
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 HackingDifficulty = subReader.ReadEnum <HackingDifficulty>();
                 Flags             = subReader.ReadEnum <TerminalFlags>();
                 ServerType        = subReader.ReadEnum <TerminalServerType>();
                 Unused            = subReader.ReadBytes(1);
             }
             catch
             {
                 return;
             }
         }
 }
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Type     = subReader.ReadEnum <RegionDataType>();
                 Flags    = subReader.ReadEnum <RegionDataFlags>();
                 Priority = subReader.ReadByte();
                 Unused   = subReader.ReadBytes(2);
             }
             catch
             {
                 return;
             }
         }
 }
Пример #24
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 FOV = subReader.ReadSingle();
                 Topic.ReadBinary(subReader);
                 Flags  = subReader.ReadEnum <PackageDialogFlags>();
                 Unused = subReader.ReadBytes(4);
                 Type   = subReader.ReadEnum <PackageDialogType>();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #25
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Magnitude  = subReader.ReadUInt32();
                 Area       = subReader.ReadUInt32();
                 Duration   = subReader.ReadUInt32();
                 Type       = subReader.ReadEnum <EffectType>();
                 ActorValue = subReader.ReadEnum <ActorValues>();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #26
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Type   = subReader.ReadEnum <SpellType>();
                 Cost   = subReader.ReadUInt32();
                 Level  = subReader.ReadUInt32();
                 Flags  = subReader.ReadEnum <SpellFlags>();
                 Unused = subReader.ReadBytes(3);
             }
             catch
             {
                 return;
             }
         }
 }
Пример #27
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;
             }
         }
 }
Пример #28
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 Type    = subReader.ReadEnum <EnchantType>();
                 Unused1 = subReader.ReadBytes(4);
                 Unused2 = subReader.ReadBytes(4);
                 Flags   = subReader.ReadEnum <EnchantFlags>();
                 Unused3 = subReader.ReadBytes(3);
             }
             catch
             {
                 return;
             }
         }
 }
Пример #29
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 DamageMultiplier     = subReader.ReadSingle();
                 Flags                = subReader.ReadEnum <BodyPartDataFlags>();
                 Type                 = subReader.ReadEnum <BodyPartType>();
                 HealthPercent        = subReader.ReadByte();
                 ActorValue           = subReader.ReadEnum <ActorValuesByte>();
                 ToHitChance          = subReader.ReadByte();
                 ExplosionChance      = subReader.ReadByte();
                 ExplosionDebrisCount = subReader.ReadUInt16();
                 ExplosionDebris.ReadBinary(subReader);
                 Explosion.ReadBinary(subReader);
                 TrackingMaxAngle     = subReader.ReadSingle();
                 ExplosionDebrisScale = subReader.ReadSingle();
                 SeverableDebrisCount = subReader.ReadInt32();
                 SeverableDebris.ReadBinary(subReader);
                 SeverableExplosion.ReadBinary(subReader);
                 SeverableDebrisScale  = subReader.ReadSingle();
                 GoreEffectsTranslateX = subReader.ReadSingle();
                 GoreEffectsTranslateY = subReader.ReadSingle();
                 GoreEffectsTranslateZ = subReader.ReadSingle();
                 GoreEffectsRotationX  = subReader.ReadSingle();
                 GoreEffectsRotationY  = subReader.ReadSingle();
                 GoreEffectsRotationZ  = subReader.ReadSingle();
                 SeverableImpactDataSet.ReadBinary(subReader);
                 ExplosionImpactDataSet.ReadBinary(subReader);
                 SeverableDecalCount = subReader.ReadByte();
                 ExplosionDecalCount = subReader.ReadByte();
                 Unused = subReader.ReadBytes(2);
                 LimbReplacementScale = subReader.ReadSingle();
             }
             catch
             {
                 return;
             }
         }
 }
Пример #30
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;
             }
         }
 }