Exemple #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);
     }
 }
        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);
        }