Пример #1
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (Name != null)
     {
         Name.WriteBinary(writer);
     }
     if (CellFlags != null)
     {
         CellFlags.WriteBinary(writer);
     }
     if (Grid != null)
     {
         Grid.WriteBinary(writer);
     }
     if (Lighting != null)
     {
         Lighting.WriteBinary(writer);
     }
     if (FootstepMaterial != null)
     {
         FootstepMaterial.WriteBinary(writer);
     }
     if (LightTemplate != null)
     {
         LightTemplate.WriteBinary(writer);
     }
     if (LightTemplateInherit != null)
     {
         LightTemplateInherit.WriteBinary(writer);
     }
     if (WaterHeight != null)
     {
         WaterHeight.WriteBinary(writer);
     }
     if (WaterNoiseTexture != null)
     {
         WaterNoiseTexture.WriteBinary(writer);
     }
     if (Regions != null)
     {
         Regions.WriteBinary(writer);
     }
     if (ImageSpace != null)
     {
         ImageSpace.WriteBinary(writer);
     }
     if (Unknown != null)
     {
         Unknown.WriteBinary(writer);
     }
     if (EncounterZone != null)
     {
         EncounterZone.WriteBinary(writer);
     }
     if (Climate != null)
     {
         Climate.WriteBinary(writer);
     }
     if (Water != null)
     {
         Water.WriteBinary(writer);
     }
     if (Owner != null)
     {
         Owner.WriteBinary(writer);
     }
     if (FactionRank != null)
     {
         FactionRank.WriteBinary(writer);
     }
     if (AcousticSpace != null)
     {
         AcousticSpace.WriteBinary(writer);
     }
     if (Unused != null)
     {
         Unused.WriteBinary(writer);
     }
     if (MusicType != null)
     {
         MusicType.WriteBinary(writer);
     }
 }
Пример #2
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (Base != null)
     {
         Base.WriteBinary(writer);
     }
     if (EncounterZone != null)
     {
         EncounterZone.WriteBinary(writer);
     }
     if (RagdollData != null)
     {
         RagdollData.WriteBinary(writer);
     }
     if (RagdollBipedData != null)
     {
         RagdollBipedData.WriteBinary(writer);
     }
     if (Patrol != null)
     {
         Patrol.WriteBinary(writer);
     }
     if (LevelModifier != null)
     {
         LevelModifier.WriteBinary(writer);
     }
     if (Owner != null)
     {
         Owner.WriteBinary(writer);
     }
     if (FactionRank != null)
     {
         FactionRank.WriteBinary(writer);
     }
     if (MerchantContainer != null)
     {
         MerchantContainer.WriteBinary(writer);
     }
     if (Count != null)
     {
         Count.WriteBinary(writer);
     }
     if (Radius != null)
     {
         Radius.WriteBinary(writer);
     }
     if (Health != null)
     {
         Health.WriteBinary(writer);
     }
     if (Decals != null)
     {
         foreach (var item in Decals)
         {
             item.WriteBinary(writer);
         }
     }
     if (LinkedReference != null)
     {
         LinkedReference.WriteBinary(writer);
     }
     if (LinkedReferenceColor != null)
     {
         LinkedReferenceColor.WriteBinary(writer);
     }
     if (ParentActivateOnly != null)
     {
         ParentActivateOnly.WriteBinary(writer);
     }
     if (ActivateParents != null)
     {
         foreach (var item in ActivateParents)
         {
             item.WriteBinary(writer);
         }
     }
     if (ActivationPrompt != null)
     {
         ActivationPrompt.WriteBinary(writer);
     }
     if (EnableParent != null)
     {
         EnableParent.WriteBinary(writer);
     }
     if (Emittance != null)
     {
         Emittance.WriteBinary(writer);
     }
     if (MultiBound != null)
     {
         MultiBound.WriteBinary(writer);
     }
     if (IgnoredBySandbox != null)
     {
         IgnoredBySandbox.WriteBinary(writer);
     }
     if (Scale != null)
     {
         Scale.WriteBinary(writer);
     }
     if (PositionRotation != null)
     {
         PositionRotation.WriteBinary(writer);
     }
 }
Пример #3
0
        public override void WriteData(ESPWriter writer)
        {
            if (EditorID != null)
            {
                EditorID.WriteBinary(writer);
            }
            if (Name != null)
            {
                Name.WriteBinary(writer);
            }
            if (EncounterZone != null)
            {
                EncounterZone.WriteBinary(writer);
            }
            if (ParentWorldspace != null)
            {
                ParentWorldspace.WriteBinary(writer);
            }
            if (ParentWorldspaceFlags != null)
            {
                ParentWorldspaceFlags.WriteBinary(writer);
            }
            if (Climate != null)
            {
                Climate.WriteBinary(writer);
            }
            if (Water != null)
            {
                Water.WriteBinary(writer);
            }
            if (LODWaterType != null)
            {
                LODWaterType.WriteBinary(writer);
            }
            if (LODWaterHeight != null)
            {
                LODWaterHeight.WriteBinary(writer);
            }
            if (LandData != null)
            {
                LandData.WriteBinary(writer);
            }
            if (LargeIcon != null)
            {
                LargeIcon.WriteBinary(writer);
            }
            if (SmallIcon != null)
            {
                SmallIcon.WriteBinary(writer);
            }
            if (MapData != null)
            {
                MapData.WriteBinary(writer);
            }
            if (WorldMapOffsetData != null)
            {
                WorldMapOffsetData.WriteBinary(writer);
            }
            if (ImageSpace != null)
            {
                ImageSpace.WriteBinary(writer);
            }
            if (WorldspaceFlags != null)
            {
                WorldspaceFlags.WriteBinary(writer);
            }
            if (MinObjectBounds != null)
            {
                MinObjectBounds.WriteBinary(writer);
            }
            if (MaxObjectBounds != null)
            {
                MaxObjectBounds.WriteBinary(writer);
            }
            if (Music != null)
            {
                Music.WriteBinary(writer);
            }
            if (CanopyShadow != null)
            {
                CanopyShadow.WriteBinary(writer);
            }
            if (WaterNoiseTexture != null)
            {
                WaterNoiseTexture.WriteBinary(writer);
            }
            if (SwappedImpacts != null)
            {
                foreach (var item in SwappedImpacts)
                {
                    item.WriteBinary(writer);
                }
            }
            if (FootstepMaterial != null)
            {
                FootstepMaterial.WriteBinary(writer);
            }
            if (OffsetDataSize != null)
            {
                OffsetDataSize.WriteBinary(writer);
            }

            WriteOffsetData(writer);
        }