Exemplo n.º 1
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;
             }
         }
 }
Exemplo n.º 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
             {
                 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;
             }
         }
 }
Exemplo n.º 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
             {
                 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;
             }
         }
 }
Exemplo n.º 4
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;
     }
 }
Exemplo n.º 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
             {
                 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;
             }
         }
 }
Exemplo n.º 6
0
 public void ReadBinary(ESPReader reader)
 {
     try
     {
         DayOfMonth      = reader.ReadByte();
         MonthsSince2001 = reader.ReadByte();
     }
     catch
     {
         return;
     }
 }
Exemplo n.º 7
0
 public void ReadBinary(ESPReader reader)
 {
     try
     {
         Red          = reader.ReadByte();
         Green        = reader.ReadByte();
         Blue         = reader.ReadByte();
         Alpha_Unused = reader.ReadByte();
     }
     catch
     {
         return;
     }
 }
Exemplo n.º 8
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;
             }
         }
 }
Exemplo n.º 9
0
        public void ReadBinary(ESPReader reader)
        {
            byte temp = reader.ReadByte();

            Moons       = (MoonFlags)(temp >> 6);
            PhaseLength = (byte)(temp & (byte)0x3F);
        }
Exemplo n.º 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
             {
                 MaterialType = subReader.ReadEnum <MaterialType>();
                 Friction     = subReader.ReadByte();
                 Restitution  = 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
             {
                 Type     = subReader.ReadEnum <PerkType>();
                 Rank     = subReader.ReadByte();
                 Priority = subReader.ReadByte();
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 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;
             }
         }
 }
Exemplo n.º 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
             {
                 Layer0 = subReader.ReadByte();
                 Layer1 = subReader.ReadByte();
                 Layer2 = subReader.ReadByte();
                 Layer3 = subReader.ReadByte();
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 Owner.ReadBinary(subReader);
                 OwnerRank    = subReader.ReadByte();
                 MinimumLevel = subReader.ReadByte();
                 Flags        = subReader.ReadEnum <EncounterZoneFlags>();
                 Unused       = subReader.ReadByte();
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 IsTrait    = subReader.ReadEnum <NoYesByte>();
                 MinLevel   = subReader.ReadByte();
                 Ranks      = subReader.ReadByte();
                 IsPlayable = subReader.ReadEnum <NoYesByte>();
                 IsHidden   = subReader.ReadEnum <NoYesByte>();
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 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;
             }
         }
 }
Exemplo n.º 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
             {
                 SunriseBegin = subReader.ReadByte();
                 SunriseEnd   = subReader.ReadByte();
                 SunsetBegin  = subReader.ReadByte();
                 SunsetEnd    = subReader.ReadByte();
                 Volatility   = subReader.ReadByte();
                 MoonData.ReadBinary(subReader);
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 18
0
 protected override void ReadData(ESPReader reader)
 {
     using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
         using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
         {
             try
             {
                 AnimationGroupSection = subReader.ReadEnum <AnimationGroupSection>();
                 LoopingMin            = subReader.ReadByte();
                 LoopingMax            = subReader.ReadByte();
                 Unused1     = subReader.ReadByte();
                 ReplayDelay = subReader.ReadInt16();
                 Flags       = subReader.ReadEnum <IdleAnimationFlags>();
                 Unused2     = 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
             {
                 HealthPercentage    = subReader.ReadByte();
                 Index               = subReader.ReadByte();
                 Stage               = subReader.ReadByte();
                 Flags               = subReader.ReadEnum <DestructionStageFlags>();
                 SelfDamagePerSecond = subReader.ReadInt32();
                 Explosion.ReadBinary(subReader);
                 Debris.ReadBinary(subReader);
                 DebrisCount = subReader.ReadInt32();
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 20
0
        public void ReadBinary(ESPReader reader)
        {
            byte temp = reader.ReadByte();

            Flags    = (ConditionFlags)(temp & (byte)0x0F);
            Operator = (ConditionComparisonType)(temp & (byte)0xF0);
            Unused   = reader.ReadBytes(3);
            if (Flags.HasFlag(ConditionFlags.UseGlobal))
            {
                ComparisonValue = new FormID(reader.ReadUInt32());
            }
            else
            {
                ComparisonValue = reader.ReadSingle();
            }
        }
Exemplo n.º 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
             {
                 Faction.ReadBinary(subReader);
                 Rank   = subReader.ReadByte();
                 Unused = subReader.ReadBytes(3);
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 Percentage       = subReader.ReadByte();
                 Model            = subReader.ReadString();
                 HasCollisionData = subReader.ReadEnum <NoYesByte>();
             }
             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;
             }
         }
 }
 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;
             }
         }
 }
Exemplo n.º 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
             {
                 Sound.ReadBinary(subReader);
                 Chance = subReader.ReadByte();
                 Unused = subReader.ReadBytes(3);
                 Type   = subReader.ReadEnum <AnimationSoundType>();
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 Flags      = subReader.ReadEnum <QuestFlags>();
                 Priority   = subReader.ReadByte();
                 Unused     = subReader.ReadBytes(2);
                 QuestDelay = subReader.ReadSingle();
             }
             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
             {
                 Health  = subReader.ReadInt32();
                 Count   = subReader.ReadByte();
                 Flags   = subReader.ReadEnum <DestructableFlags>();
                 Unknown = subReader.ReadBytes(2);
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 Level  = subReader.ReadByte();
                 Unused = subReader.ReadBytes(3);
                 Key.ReadBinary(subReader);
                 Flags   = subReader.ReadEnum <LockFlags>();
                 Unknown = subReader.ReadBytes(11);
             }
             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
             {
                 Month     = subReader.ReadSByte();
                 DayOfWeek = subReader.ReadEnum <PackageScheduleDays>();
                 Date      = subReader.ReadByte();
                 Time      = subReader.ReadSByte();
                 Duration  = subReader.ReadInt32();
             }
             catch
             {
                 return;
             }
         }
 }
Exemplo n.º 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
             {
                 Value      = subReader.ReadInt32();
                 Health     = subReader.ReadInt32();
                 Weight     = subReader.ReadSingle();
                 BaseDamage = subReader.ReadInt16();
                 ClipSize   = subReader.ReadByte();
             }
             catch
             {
                 return;
             }
         }
 }