public override void ReadBinary(ESPReader reader) { List <string> readTags = new List <string>(); while (reader.BaseStream.Position < reader.BaseStream.Length) { string subTag = reader.PeekTag(); switch (subTag) { case "MODL": if (readTags.Contains("MODL")) { return; } if (FileName == null) { FileName = new SimpleSubrecord <String>(); } FileName.ReadBinary(reader); break; case "MODB": if (readTags.Contains("MODB")) { return; } if (Unknown == null) { Unknown = new SimpleSubrecord <Byte[]>(); } Unknown.ReadBinary(reader); break; case "MODT": if (readTags.Contains("MODT")) { return; } if (TextureFileHash == null) { TextureFileHash = new SimpleSubrecord <Byte[]>(); } TextureFileHash.ReadBinary(reader); break; case "MODS": if (readTags.Contains("MODS")) { return; } if (AlternateTextures == null) { AlternateTextures = new AlternateTextures(); } AlternateTextures.ReadBinary(reader); break; case "MODD": if (readTags.Contains("MODD")) { return; } if (FaceGenModelFlags == null) { FaceGenModelFlags = new SimpleSubrecord <FaceGenModelFlags>(); } FaceGenModelFlags.ReadBinary(reader); break; default: return; } readTags.Add(subTag); } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "NAME": if (Base == null) { Base = new RecordReference(); } Base.ReadBinary(reader); break; case "XEZN": if (EncounterZone == null) { EncounterZone = new RecordReference(); } EncounterZone.ReadBinary(reader); break; case "XRGD": if (RagdollData == null) { RagdollData = new SimpleSubrecord <Byte[]>(); } RagdollData.ReadBinary(reader); break; case "XRGB": if (RagdollBipedData == null) { RagdollBipedData = new SimpleSubrecord <Byte[]>(); } RagdollBipedData.ReadBinary(reader); break; case "XPRD": if (Patrol == null) { Patrol = new ReferencePatrolData(); } Patrol.ReadBinary(reader); break; case "XOWN": if (Owner == null) { Owner = new RecordReference(); } Owner.ReadBinary(reader); break; case "XRNK": if (FactionRank == null) { FactionRank = new SimpleSubrecord <Int32>(); } FactionRank.ReadBinary(reader); break; case "XCNT": if (Count == null) { Count = new SimpleSubrecord <Int32>(); } Count.ReadBinary(reader); break; case "XRDS": if (Radius == null) { Radius = new SimpleSubrecord <Single>(); } Radius.ReadBinary(reader); break; case "XHLP": if (Health == null) { Health = new SimpleSubrecord <Single>(); } Health.ReadBinary(reader); break; case "XPWR": if (WaterReflections == null) { WaterReflections = new List <WaterReflection>(); } WaterReflection tempXPWR = new WaterReflection(); tempXPWR.ReadBinary(reader); WaterReflections.Add(tempXPWR); break; case "XDCR": if (Decals == null) { Decals = new List <SimpleSubrecord <Byte[]> >(); } SimpleSubrecord <Byte[]> tempXDCR = new SimpleSubrecord <Byte[]>(); tempXDCR.ReadBinary(reader); Decals.Add(tempXDCR); break; case "XLKR": if (LinkedReference == null) { LinkedReference = new RecordReference(); } LinkedReference.ReadBinary(reader); break; case "XCLP": if (LinkedReferenceColor == null) { LinkedReferenceColor = new LinkedReferenceColor(); } LinkedReferenceColor.ReadBinary(reader); break; case "XAPD": if (ParentActivateOnly == null) { ParentActivateOnly = new SimpleSubrecord <NoYesByte>(); } ParentActivateOnly.ReadBinary(reader); break; case "XAPR": if (ActivateParents == null) { ActivateParents = new List <ActivateParent>(); } ActivateParent tempXAPR = new ActivateParent(); tempXAPR.ReadBinary(reader); ActivateParents.Add(tempXAPR); break; case "XATO": if (ActivationPrompt == null) { ActivationPrompt = new SimpleSubrecord <String>(); } ActivationPrompt.ReadBinary(reader); break; case "XESP": if (EnableParent == null) { EnableParent = new EnableParent(); } EnableParent.ReadBinary(reader); break; case "XEMI": if (Emittance == null) { Emittance = new RecordReference(); } Emittance.ReadBinary(reader); break; case "XMBR": if (MultiBound == null) { MultiBound = new RecordReference(); } MultiBound.ReadBinary(reader); break; case "XIBS": if (IgnoredBySandbox == null) { IgnoredBySandbox = new SubMarker(); } IgnoredBySandbox.ReadBinary(reader); break; case "XSCL": if (Scale == null) { Scale = new SimpleSubrecord <Single>(); } Scale.ReadBinary(reader); break; case "DATA": if (PositionRotation == null) { PositionRotation = new PositionRotation(); } PositionRotation.ReadBinary(reader); break; default: throw new Exception(); } } }
protected override void ReadData(ESPReader reader) { string data = new string(reader.ReadChars(size)); Strings = data.Split(new char[] {'\0'}, StringSplitOptions.RemoveEmptyEntries).ToList(); }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "LVLD": if (ChanceNone == null) { ChanceNone = new SimpleSubrecord <Byte>(); } ChanceNone.ReadBinary(reader); break; case "LVLF": if (LeveledObjectFlags == null) { LeveledObjectFlags = new SimpleSubrecord <LeveledListFlags>(); } LeveledObjectFlags.ReadBinary(reader); break; case "LVLO": if (LeveledList == null) { LeveledList = new List <LeveledListEntry>(); } LeveledListEntry tempLVLO = new LeveledListEntry(); tempLVLO.ReadBinary(reader); LeveledList.Add(tempLVLO); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "CTDA": if (Conditions == null) { Conditions = new List <Condition>(); } Condition tempCTDA = new Condition(); tempCTDA.ReadBinary(reader); Conditions.Add(tempCTDA); break; case "DATA": if (Data == null) { Data = new RecipeData(); } Data.ReadBinary(reader); break; case "RCIL": if (Ingredients == null) { Ingredients = new List <RecipeIngredient>(); } RecipeIngredient tempRCIL = new RecipeIngredient(); tempRCIL.ReadBinary(reader); Ingredients.Add(tempRCIL); break; case "RCOD": if (Outputs == null) { Outputs = new List <RecipeOutput>(); } RecipeOutput tempRCOD = new RecipeOutput(); tempRCOD.ReadBinary(reader); Outputs.Add(tempRCOD); break; default: throw new Exception(); } } }
public override void ReadBinary(ESPReader reader) { List <string> readTags = new List <string>(); while (reader.BaseStream.Position < reader.BaseStream.Length) { string subTag = reader.PeekTag(); switch (subTag) { case "ITXT": if (readTags.Contains("ITXT")) { return; } ItemText.ReadBinary(reader); break; case "RNAM": if (readTags.Contains("RNAM")) { return; } ResultText.ReadBinary(reader); break; case "ANAM": if (readTags.Contains("ANAM")) { return; } Flags.ReadBinary(reader); break; case "INAM": if (readTags.Contains("INAM")) { return; } if (DisplayNote == null) { DisplayNote = new RecordReference(); } DisplayNote.ReadBinary(reader); break; case "TNAM": if (readTags.Contains("TNAM")) { return; } if (SubMenu == null) { SubMenu = new RecordReference(); } SubMenu.ReadBinary(reader); break; case "SCHR": if (readTags.Contains("SCHR")) { return; } if (Script == null) { Script = new EmbeddedScript(); } Script.ReadBinary(reader); break; case "CTDA": if (Conditions == null) { Conditions = new List <Condition>(); } Condition tempCTDA = new Condition(); tempCTDA.ReadBinary(reader); Conditions.Add(tempCTDA); break; default: return; } readTags.Add(subTag); } }
public override void ReadBinary(ESPReader reader) { List <string> readTags = new List <string>(); while (reader.BaseStream.Position < reader.BaseStream.Length) { string subTag = reader.PeekTag(); switch (subTag) { case "BPNN": if (readTags.Contains("BPNN")) { return; } PartNode.ReadBinary(reader); break; case "BPNT": if (readTags.Contains("BPNT")) { return; } VATSTarget.ReadBinary(reader); break; case "BPNI": if (readTags.Contains("BPNI")) { return; } IKDataStartNode.ReadBinary(reader); break; case "BPND": if (readTags.Contains("BPND")) { return; } Data.ReadBinary(reader); break; case "NAM1": if (readTags.Contains("NAM1")) { return; } LimbReplacementModel.ReadBinary(reader); break; case "NAM4": if (readTags.Contains("NAM4")) { return; } GoreEffectsTargetBone.ReadBinary(reader); break; case "NAM5": if (readTags.Contains("NAM5")) { return; } if (TextureFileHashes == null) { TextureFileHashes = new SimpleSubrecord <Byte[]>(); } TextureFileHashes.ReadBinary(reader); break; default: return; } readTags.Add(subTag); } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "ICON": if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadBinary(reader); break; case "MICO": if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadBinary(reader); break; case "TNAM": if (TextureSet == null) { TextureSet = new RecordReference(); } TextureSet.ReadBinary(reader); break; case "HNAM": if (HavokData == null) { HavokData = new HavokData(); } HavokData.ReadBinary(reader); break; case "SNAM": if (TextureSpecularExponent == null) { TextureSpecularExponent = new SimpleSubrecord <Byte>(); } TextureSpecularExponent.ReadBinary(reader); break; case "GNAM": if (Grasses == null) { Grasses = new List <RecordReference>(); } RecordReference tempGNAM = new RecordReference(); tempGNAM.ReadBinary(reader); Grasses.Add(tempGNAM); break; default: throw new Exception(); } } }
partial void ReadTypeFlagsBinary(ESPReader reader) { switch (Type) { case PackageType.Find: TypeFlags = reader.ReadEnum <FindEscortEatPackageFlags>(); break; case PackageType.Follow: TypeFlags = reader.ReadBytes(2); break; case PackageType.Escort: TypeFlags = reader.ReadEnum <FindEscortEatPackageFlags>(); break; case PackageType.Eat: TypeFlags = reader.ReadEnum <FindEscortEatPackageFlags>(); break; case PackageType.Sleep: TypeFlags = reader.ReadBytes(2); break; case PackageType.Wander: TypeFlags = reader.ReadEnum <WanderSandboxPackageFlags>(); break; case PackageType.Travel: TypeFlags = reader.ReadBytes(2); break; case PackageType.Accompany: TypeFlags = reader.ReadBytes(2); break; case PackageType.UseItemAt: TypeFlags = reader.ReadEnum <UseItemAtPackageFlags>(); break; case PackageType.Ambush: TypeFlags = reader.ReadEnum <AmbushPackageFlags>(); break; case PackageType.FleeNotCombat: TypeFlags = reader.ReadBytes(2); break; case PackageType.Sandbox: TypeFlags = reader.ReadEnum <WanderSandboxPackageFlags>(); break; case PackageType.Patrol: TypeFlags = reader.ReadBytes(2); break; case PackageType.Guard: TypeFlags = reader.ReadEnum <GuardPackageFlags>(); break; case PackageType.Dialog: TypeFlags = reader.ReadBytes(2); break; case PackageType.UseWeapon: TypeFlags = reader.ReadBytes(2); break; } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "SCRI": if (Script == null) { Script = new RecordReference(); } Script.ReadBinary(reader); break; case "DEST": if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadBinary(reader); break; case "MNAM": if (MarkerFlags == null) { MarkerFlags = new SimpleSubrecord <Byte[]>(); } MarkerFlags.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "DEST": if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadBinary(reader); break; case "DATA": if (ProjectileData == null) { ProjectileData = new ProjectileData(); } ProjectileData.ReadBinary(reader); break; case "NAM1": if (MuzzleFlashModelFilename == null) { MuzzleFlashModelFilename = new SimpleSubrecord <String>(); } MuzzleFlashModelFilename.ReadBinary(reader); break; case "NAM2": if (MuzzleFlashModelTextureHash == null) { MuzzleFlashModelTextureHash = new SimpleSubrecord <Byte[]>(); } MuzzleFlashModelTextureHash.ReadBinary(reader); break; case "VNAM": if (SoundLevel == null) { SoundLevel = new SimpleSubrecord <SoundLevel>(); } SoundLevel.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "ICON": if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadBinary(reader); break; case "MICO": if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadBinary(reader); break; case "SCRI": if (Script == null) { Script = new RecordReference(); } Script.ReadBinary(reader); break; case "ETYP": if (EquipmentType == null) { EquipmentType = new SimpleSubrecord <EquipmentType>(); } EquipmentType.ReadBinary(reader); break; case "DATA": if (Weight == null) { Weight = new SimpleSubrecord <Single>(); } Weight.ReadBinary(reader); break; case "ENIT": if (Data == null) { Data = new IngredientData(); } Data.ReadBinary(reader); break; case "EFID": if (Effects == null) { Effects = new List <Effect>(); } Effect tempEFID = new Effect(); tempEFID.ReadBinary(reader); Effects.Add(tempEFID); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "PKDT": if (Data == null) { Data = new PackageData(); } Data.ReadBinary(reader); break; case "PLDT": if (Location1 == null) { Location1 = new PackageLocation(); } Location1.ReadBinary(reader); break; case "PLD2": if (Location2 == null) { Location2 = new PackageLocation(); } Location2.ReadBinary(reader); break; case "PSDT": if (Schedule == null) { Schedule = new PackageScheduleData(); } Schedule.ReadBinary(reader); break; case "PTDT": if (Target1 == null) { Target1 = new PackageTarget(); } Target1.ReadBinary(reader); break; case "CTDA": if (Conditions == null) { Conditions = new List <Condition>(); } Condition tempCTDA = new Condition(); tempCTDA.ReadBinary(reader); Conditions.Add(tempCTDA); break; case "IDLF": if (IdleFlags == null) { IdleFlags = new SimpleSubrecord <PackageIdleFlags>(); } IdleFlags.ReadBinary(reader); break; case "IDLC": if (IdleCount == null) { IdleCount = new SimpleSubrecord <Byte>(); } IdleCount.ReadBinary(reader); break; case "IDLT": if (IdleTimerSetting == null) { IdleTimerSetting = new SimpleSubrecord <Single>(); } IdleTimerSetting.ReadBinary(reader); break; case "IDLA": if (IdleAnimations == null) { IdleAnimations = new FormArray(); } IdleAnimations.ReadBinary(reader); break; case "IDLB": if (Unused == null) { Unused = new SimpleSubrecord <Byte[]>(); } Unused.ReadBinary(reader); break; case "CNAM": if (CombatStyle == null) { CombatStyle = new RecordReference(); } CombatStyle.ReadBinary(reader); break; case "PKED": if (EatMarker == null) { EatMarker = new SubMarker(); } EatMarker.ReadBinary(reader); break; case "PKE2": if (EscortDistance == null) { EscortDistance = new SimpleSubrecord <UInt32>(); } EscortDistance.ReadBinary(reader); break; case "PKFD": if (FollowDistance_StartLocation_TriggerRadius == null) { FollowDistance_StartLocation_TriggerRadius = new SimpleSubrecord <UInt32>(); } FollowDistance_StartLocation_TriggerRadius.ReadBinary(reader); break; case "PKPT": if (PatrolIsRepeatable == null) { PatrolIsRepeatable = new SimpleSubrecord <NoYesByte>(); } PatrolIsRepeatable.ReadBinary(reader); break; case "PKW3": if (UseWeaponData == null) { UseWeaponData = new PackageUseWeaponData(); } UseWeaponData.ReadBinary(reader); break; case "PTD2": if (Target2 == null) { Target2 = new PackageTarget(); } Target2.ReadBinary(reader); break; case "PUID": if (UseItemMarker == null) { UseItemMarker = new SubMarker(); } UseItemMarker.ReadBinary(reader); break; case "PKAM": if (AmbushMarker == null) { AmbushMarker = new SubMarker(); } AmbushMarker.ReadBinary(reader); break; case "PKDD": if (DialogData == null) { DialogData = new PackageDialogData(); } DialogData.ReadBinary(reader); break; case "DUMY": if (DummyIgnore == null) { DummyIgnore = new PackageLocation(); } DummyIgnore.ReadBinary(reader); break; case "POBA": if (OnBegin == null) { OnBegin = new PackageEvent(); } OnBegin.ReadBinary(reader); break; case "POEA": if (OnEnd == null) { OnEnd = new PackageEvent(); } OnEnd.ReadBinary(reader); break; case "POCA": if (OnChange == null) { OnChange = new PackageEvent(); } OnChange.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "HEDR": if (FileHeader == null) { FileHeader = new PluginHeader(); } FileHeader.ReadBinary(reader); break; case "OFST": if (OffsetData == null) { OffsetData = new SimpleSubrecord <Byte[]>(); } OffsetData.ReadBinary(reader); break; case "DELE": if (DeletionsData == null) { DeletionsData = new SimpleSubrecord <Byte[]>(); } DeletionsData.ReadBinary(reader); break; case "CNAM": if (Author == null) { Author = new SimpleSubrecord <String>(); } Author.ReadBinary(reader); break; case "SNAM": if (Description == null) { Description = new SimpleSubrecord <String>(); } Description.ReadBinary(reader); break; case "MAST": if (MasterFiles == null) { MasterFiles = new List <MasterFileData>(); } MasterFileData tempMAST = new MasterFileData(); tempMAST.ReadBinary(reader); MasterFiles.Add(tempMAST); break; case "ONAM": if (OverriddenRecords == null) { OverriddenRecords = new FormArray(); } OverriddenRecords.ReadBinary(reader); break; case "SCRN": if (ScreenshotData == null) { ScreenshotData = new SimpleSubrecord <Byte[]>(); } ScreenshotData.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "CTDA": if (Conditions == null) { Conditions = new List <Condition>(); } Condition tempCTDA = new Condition(); tempCTDA.ReadBinary(reader); Conditions.Add(tempCTDA); break; case "ANAM": if (RelatedCameraPaths == null) { RelatedCameraPaths = new RelatedCameraPaths(); } RelatedCameraPaths.ReadBinary(reader); break; case "DATA": if (CameraZoom == null) { CameraZoom = new SimpleSubrecord <CameraPathZoom>(); } CameraZoom.ReadBinary(reader); break; case "SNAM": if (CameraShots == null) { CameraShots = new List <RecordReference>(); } RecordReference tempSNAM = new RecordReference(); tempSNAM.ReadBinary(reader); CameraShots.Add(tempSNAM); break; default: throw new Exception(); } } }
public override void ReadBinary(ESPReader reader) { List <string> readTags = new List <string>(); while (reader.BaseStream.Position < reader.BaseStream.Length) { string subTag = reader.PeekTag(); switch (subTag) { case "DSTD": if (readTags.Contains("DSTD")) { return; } StageData.ReadBinary(reader); break; case "DMDL": if (readTags.Contains("DMDL")) { return; } if (ModelFilename == null) { ModelFilename = new SimpleSubrecord <String>(); } ModelFilename.ReadBinary(reader); break; case "DMDT": if (readTags.Contains("DMDT")) { return; } if (ModelTextureHash == null) { ModelTextureHash = new SimpleSubrecord <Byte[]>(); } ModelTextureHash.ReadBinary(reader); break; case "DSTF": if (readTags.Contains("DSTF")) { return; } if (EndMarker == null) { EndMarker = new SubMarker(); } EndMarker.ReadBinary(reader); break; default: return; } readTags.Add(subTag); } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "ICON": if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadBinary(reader); break; case "MICO": if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadBinary(reader); break; case "YNAM": if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadBinary(reader); break; case "ZNAM": if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadBinary(reader); break; case "DATA": if (AbsoluteValue == null) { AbsoluteValue = new SimpleSubrecord <UInt32>(); } AbsoluteValue.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "DESC": if (Description == null) { Description = new SimpleSubrecord <String>(); } Description.ReadBinary(reader); break; case "ICON": if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadBinary(reader); break; case "MICO": if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadBinary(reader); break; case "DATA": if (Data == null) { Data = new ClassData(); } Data.ReadBinary(reader); break; case "ATTR": if (Attributes == null) { Attributes = new Attributes(); } Attributes.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "DATA": if (CellFlags == null) { CellFlags = new SimpleSubrecord <CellFlags>(); } CellFlags.ReadBinary(reader); break; case "XCLC": if (Grid == null) { Grid = new CellGrid(); } Grid.ReadBinary(reader); break; case "XCLL": if (Lighting == null) { Lighting = new CellLighting(); } Lighting.ReadBinary(reader); break; case "IMPF": if (FootstepMaterial == null) { FootstepMaterial = new FootstepMaterial(); } FootstepMaterial.ReadBinary(reader); break; case "LTMP": if (LightTemplate == null) { LightTemplate = new RecordReference(); } LightTemplate.ReadBinary(reader); break; case "LNAM": if (LightTemplateInherit == null) { LightTemplateInherit = new SimpleSubrecord <LightTemplateInheritFlags>(); } LightTemplateInherit.ReadBinary(reader); break; case "XCLW": if (WaterHeight == null) { WaterHeight = new SimpleSubrecord <Single>(); } WaterHeight.ReadBinary(reader); break; case "XNAM": if (WaterNoiseTexture == null) { WaterNoiseTexture = new SimpleSubrecord <String>(); } WaterNoiseTexture.ReadBinary(reader); break; case "XCLR": if (Regions == null) { Regions = new SortedFormArray(); } Regions.ReadBinary(reader); break; case "XCIM": if (ImageSpace == null) { ImageSpace = new RecordReference(); } ImageSpace.ReadBinary(reader); break; case "XCET": if (Unknown == null) { Unknown = new SimpleSubrecord <Byte>(); } Unknown.ReadBinary(reader); break; case "XEZN": if (EncounterZone == null) { EncounterZone = new RecordReference(); } EncounterZone.ReadBinary(reader); break; case "XCCM": if (Climate == null) { Climate = new RecordReference(); } Climate.ReadBinary(reader); break; case "XCWT": if (Water == null) { Water = new RecordReference(); } Water.ReadBinary(reader); break; case "XOWN": if (Owner == null) { Owner = new RecordReference(); } Owner.ReadBinary(reader); break; case "XRNK": if (FactionRank == null) { FactionRank = new SimpleSubrecord <Int32>(); } FactionRank.ReadBinary(reader); break; case "XCAS": if (AcousticSpace == null) { AcousticSpace = new RecordReference(); } AcousticSpace.ReadBinary(reader); break; case "XCMT": if (Unused == null) { Unused = new SimpleSubrecord <Byte>(); } Unused.ReadBinary(reader); break; case "XCMO": if (MusicType == null) { MusicType = new RecordReference(); } MusicType.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadBinary(ESPReader reader) { List <string> readTags = new List <string>(); while (reader.BaseStream.Position < reader.BaseStream.Length) { string subTag = reader.PeekTag(); switch (subTag) { case "QSDT": if (readTags.Contains("QSDT")) { return; } if (StageFlags == null) { StageFlags = new SimpleSubrecord <QuestStageFlags>(); } StageFlags.ReadBinary(reader); break; case "CTDA": if (Conditions == null) { Conditions = new List <Condition>(); } Condition tempCTDA = new Condition(); tempCTDA.ReadBinary(reader); Conditions.Add(tempCTDA); break; case "CNAM": if (readTags.Contains("CNAM")) { return; } if (LogEntry == null) { LogEntry = new SimpleSubrecord <String>(); } LogEntry.ReadBinary(reader); break; case "SCHR": if (readTags.Contains("SCHR")) { return; } Script.ReadBinary(reader); break; case "NAM0": if (readTags.Contains("NAM0")) { return; } if (NextQuest == null) { NextQuest = new RecordReference(); } NextQuest.ReadBinary(reader); break; default: return; } readTags.Add(subTag); } }
public override void ReadBinary(ESPReader reader) { List <string> readTags = new List <string>(); readTags.Add(reader.PeekTag()); Marker.ReadBinary(reader); while (reader.BaseStream.Position < reader.BaseStream.Length) { string subTag = reader.PeekTag(); switch (subTag) { case "FNAM": if (readTags.Contains("FNAM")) { return; } if (Flags == null) { Flags = new SimpleSubrecord <MapMarkerFlags>(); } Flags.ReadBinary(reader); break; case "FULL": if (readTags.Contains("FULL")) { return; } Name.ReadBinary(reader); break; case "TNAM": if (readTags.Contains("TNAM")) { return; } Data.ReadBinary(reader); break; case "WMI1": if (readTags.Contains("WMI1")) { return; } if (Reputation == null) { Reputation = new RecordReference(); } Reputation.ReadBinary(reader); break; default: return; } readTags.Add(subTag); } }
public override void ReadBinary(ESPReader reader) { List <string> readTags = new List <string>(); while (reader.BaseStream.Position < reader.BaseStream.Length) { string subTag = reader.PeekTag(); switch (subTag) { case "TRDT": if (readTags.Contains("TRDT")) { return; } if (ResponseData == null) { ResponseData = new ResponseData(); } ResponseData.ReadBinary(reader); break; case "NAM1": if (readTags.Contains("NAM1")) { return; } if (ResponseText == null) { ResponseText = new SimpleSubrecord <String>(); } ResponseText.ReadBinary(reader); break; case "NAM2": if (readTags.Contains("NAM2")) { return; } if (ScriptNotes == null) { ScriptNotes = new SimpleSubrecord <String>(); } ScriptNotes.ReadBinary(reader); break; case "NAM3": if (readTags.Contains("NAM3")) { return; } if (Edits == null) { Edits = new SimpleSubrecord <String>(); } Edits.ReadBinary(reader); break; case "SNAM": if (readTags.Contains("SNAM")) { return; } if (SpeakerAnimation == null) { SpeakerAnimation = new RecordReference(); } SpeakerAnimation.ReadBinary(reader); break; case "LNAM": if (readTags.Contains("LNAM")) { return; } if (ListenerAnimation == null) { ListenerAnimation = new RecordReference(); } ListenerAnimation.ReadBinary(reader); break; default: return; } readTags.Add(subTag); } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "BPTN": if (NamedBodyParts == null) { NamedBodyParts = new List <NamedBodyPart>(); } NamedBodyPart tempBPTN = new NamedBodyPart(); tempBPTN.ReadBinary(reader); NamedBodyParts.Add(tempBPTN); break; case "BPNN": if (BodyParts == null) { BodyParts = new List <BodyPart>(); } BodyPart tempBPNN = new BodyPart(); tempBPNN.ReadBinary(reader); BodyParts.Add(tempBPNN); break; case "RAGA": if (Ragdoll == null) { Ragdoll = new RecordReference(); } Ragdoll.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "SCRI": if (Script == null) { Script = new RecordReference(); } Script.ReadBinary(reader); break; case "EITM": if (ObjectEffect == null) { ObjectEffect = new RecordReference(); } ObjectEffect.ReadBinary(reader); break; case "BMDT": if (BipedData == null) { BipedData = new BipedData(); } BipedData.ReadBinary(reader); break; case "MODL": if (MaleBipedModelFileName == null) { MaleBipedModelFileName = new SimpleSubrecord <String>(); } MaleBipedModelFileName.ReadBinary(reader); break; case "MODT": if (MaleBipedModelTextureHashes == null) { MaleBipedModelTextureHashes = new SimpleSubrecord <Byte[]>(); } MaleBipedModelTextureHashes.ReadBinary(reader); break; case "MODS": if (MaleBipedModelAlternateTextures == null) { MaleBipedModelAlternateTextures = new AlternateTextures(); } MaleBipedModelAlternateTextures.ReadBinary(reader); break; case "MODD": if (MaleBipedModelFaceGenModelFlags == null) { MaleBipedModelFaceGenModelFlags = new SimpleSubrecord <FaceGenModelFlags>(); } MaleBipedModelFaceGenModelFlags.ReadBinary(reader); break; case "MOD2": if (MaleWorldModelFileName == null) { MaleWorldModelFileName = new SimpleSubrecord <String>(); } MaleWorldModelFileName.ReadBinary(reader); break; case "MO2T": if (MaleWorldModelTextureHashes == null) { MaleWorldModelTextureHashes = new SimpleSubrecord <Byte[]>(); } MaleWorldModelTextureHashes.ReadBinary(reader); break; case "MO2S": if (MaleWorldModelAlternateTextures == null) { MaleWorldModelAlternateTextures = new AlternateTextures(); } MaleWorldModelAlternateTextures.ReadBinary(reader); break; case "ICON": if (MaleInventoryIcon == null) { MaleInventoryIcon = new SimpleSubrecord <String>(); } MaleInventoryIcon.ReadBinary(reader); break; case "MICO": if (MaleMessageIcon == null) { MaleMessageIcon = new SimpleSubrecord <String>(); } MaleMessageIcon.ReadBinary(reader); break; case "MOD3": if (FemaleBipedModelFileName == null) { FemaleBipedModelFileName = new SimpleSubrecord <String>(); } FemaleBipedModelFileName.ReadBinary(reader); break; case "MO3T": if (FemaleBipedModelTextureHashes == null) { FemaleBipedModelTextureHashes = new SimpleSubrecord <Byte[]>(); } FemaleBipedModelTextureHashes.ReadBinary(reader); break; case "MO3S": if (FemaleBipedModelAlternateTextures == null) { FemaleBipedModelAlternateTextures = new AlternateTextures(); } FemaleBipedModelAlternateTextures.ReadBinary(reader); break; case "MOSD": if (FemaleBipedModelFaceGenModelFlags == null) { FemaleBipedModelFaceGenModelFlags = new SimpleSubrecord <FaceGenModelFlags>(); } FemaleBipedModelFaceGenModelFlags.ReadBinary(reader); break; case "MOD4": if (FemaleWorldModelFileName == null) { FemaleWorldModelFileName = new SimpleSubrecord <String>(); } FemaleWorldModelFileName.ReadBinary(reader); break; case "MO4T": if (FemaleWorldModelTextureHashes == null) { FemaleWorldModelTextureHashes = new SimpleSubrecord <Byte[]>(); } FemaleWorldModelTextureHashes.ReadBinary(reader); break; case "MO4S": if (FemaleWorldModelAlternateTextures == null) { FemaleWorldModelAlternateTextures = new AlternateTextures(); } FemaleWorldModelAlternateTextures.ReadBinary(reader); break; case "ICO2": if (FemaleInventoryIcon == null) { FemaleInventoryIcon = new SimpleSubrecord <String>(); } FemaleInventoryIcon.ReadBinary(reader); break; case "MIC2": if (FemaleMessageIcon == null) { FemaleMessageIcon = new SimpleSubrecord <String>(); } FemaleMessageIcon.ReadBinary(reader); break; case "BMCT": if (RagdollConstraintTemplate == null) { RagdollConstraintTemplate = new SimpleSubrecord <String>(); } RagdollConstraintTemplate.ReadBinary(reader); break; case "REPL": if (RepairList == null) { RepairList = new RecordReference(); } RepairList.ReadBinary(reader); break; case "BIPL": if (BipedModelList == null) { BipedModelList = new RecordReference(); } BipedModelList.ReadBinary(reader); break; case "ETYP": if (EquipmentType == null) { EquipmentType = new SimpleSubrecord <EquipmentType>(); } EquipmentType.ReadBinary(reader); break; case "YNAM": if (PickupSound == null) { PickupSound = new RecordReference(); } PickupSound.ReadBinary(reader); break; case "ZNAM": if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadBinary(reader); break; case "DATA": if (Data == null) { Data = new ArmorData(); } Data.ReadBinary(reader); break; case "DNAM": if (ExtraData == null) { ExtraData = new ArmorExtraData(); } ExtraData.ReadBinary(reader); break; case "BNAM": if (OverridesAnimationSounds == null) { OverridesAnimationSounds = new SimpleSubrecord <NoYes>(); } OverridesAnimationSounds.ReadBinary(reader); break; case "SNAM": if (AnimationSounds == null) { AnimationSounds = new List <AnimationSound>(); } AnimationSound tempSNAM = new AnimationSound(); tempSNAM.ReadBinary(reader); AnimationSounds.Add(tempSNAM); break; case "TNAM": if (AnimationSoundsTemplate == null) { AnimationSoundsTemplate = new RecordReference(); } AnimationSoundsTemplate.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "ICON": if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadBinary(reader); break; case "MICO": if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadBinary(reader); break; case "SCRI": if (Script == null) { Script = new RecordReference(); } Script.ReadBinary(reader); break; case "DEST": if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadBinary(reader); break; case "YNAM": if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadBinary(reader); break; case "ZNAM": if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadBinary(reader); break; case "DATA": if (Data == null) { Data = new AmmoData(); } Data.ReadBinary(reader); break; case "DAT2": if (ExtraData == null) { ExtraData = new AmmoExtraData(); } ExtraData.ReadBinary(reader); break; case "ONAM": if (ShortName == null) { ShortName = new SimpleSubrecord <String>(); } ShortName.ReadBinary(reader); break; case "QNAM": if (Abbreviation == null) { Abbreviation = new SimpleSubrecord <String>(); } Abbreviation.ReadBinary(reader); break; case "RCIL": if (AmmoEffects == null) { AmmoEffects = new List <RecordReference>(); } RecordReference tempRCIL = new RecordReference(); tempRCIL.ReadBinary(reader); AmmoEffects.Add(tempRCIL); break; default: throw new Exception(); } } }
partial void ReadValue(ESPReader reader);
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "SCRI": if (Script == null) { Script = new RecordReference(); } Script.ReadBinary(reader); break; case "DEST": if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadBinary(reader); break; case "SNAM": if (LoopingSound == null) { LoopingSound = new RecordReference(); } LoopingSound.ReadBinary(reader); break; case "VNAM": if (ActivationSound == null) { ActivationSound = new RecordReference(); } ActivationSound.ReadBinary(reader); break; case "INAM": if (RadioTemplate == null) { RadioTemplate = new RecordReference(); } RadioTemplate.ReadBinary(reader); break; case "RNAM": if (RadioStation == null) { RadioStation = new RecordReference(); } RadioStation.ReadBinary(reader); break; case "WNAM": if (WaterType == null) { WaterType = new RecordReference(); } WaterType.ReadBinary(reader); break; case "XATO": if (ActivationPrompt == null) { ActivationPrompt = new SimpleSubrecord <String>(); } ActivationPrompt.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "DATA": if (Data == null) { Data = new CasinoData(); } Data.ReadBinary(reader); break; case "MODL": if (Models == null) { Models = new List <SimpleSubrecord <String> >(); } SimpleSubrecord <String> tempMODL = new SimpleSubrecord <String>(); tempMODL.ReadBinary(reader); Models.Add(tempMODL); break; case "MOD2": if (ModelSlotMachine == null) { ModelSlotMachine = new SimpleSubrecord <String>(); } ModelSlotMachine.ReadBinary(reader); break; case "MOD3": if (ModelBlackjackTable == null) { ModelBlackjackTable = new SimpleSubrecord <String>(); } ModelBlackjackTable.ReadBinary(reader); break; case "MOD4": if (ModelRouletteTable == null) { ModelRouletteTable = new SimpleSubrecord <String>(); } ModelRouletteTable.ReadBinary(reader); break; case "ICON": if (SlotReelTextures == null) { SlotReelTextures = new List <SimpleSubrecord <String> >(); } SimpleSubrecord <String> tempICON = new SimpleSubrecord <String>(); tempICON.ReadBinary(reader); SlotReelTextures.Add(tempICON); break; case "ICO2": if (BlackjackTextures == null) { BlackjackTextures = new List <SimpleSubrecord <String> >(); } SimpleSubrecord <String> tempICO2 = new SimpleSubrecord <String>(); tempICO2.ReadBinary(reader); BlackjackTextures.Add(tempICO2); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "ACBS": if (BaseStats == null) { BaseStats = new NPCBaseStats(); } BaseStats.ReadBinary(reader); break; case "SNAM": if (Factions == null) { Factions = new List <FactionMembership>(); } FactionMembership tempSNAM = new FactionMembership(); tempSNAM.ReadBinary(reader); Factions.Add(tempSNAM); break; case "INAM": if (DeathItem == null) { DeathItem = new RecordReference(); } DeathItem.ReadBinary(reader); break; case "VTCK": if (VoiceType == null) { VoiceType = new RecordReference(); } VoiceType.ReadBinary(reader); break; case "TPLT": if (Template == null) { Template = new RecordReference(); } Template.ReadBinary(reader); break; case "RNAM": if (Race == null) { Race = new RecordReference(); } Race.ReadBinary(reader); break; case "SPLO": if (ActorEffects == null) { ActorEffects = new List <RecordReference>(); } RecordReference tempSPLO = new RecordReference(); tempSPLO.ReadBinary(reader); ActorEffects.Add(tempSPLO); break; case "EITM": if (UnarmedAttackEffect == null) { UnarmedAttackEffect = new RecordReference(); } UnarmedAttackEffect.ReadBinary(reader); break; case "EAMT": if (UnarmedAttackAnimation == null) { UnarmedAttackAnimation = new SimpleSubrecord <UInt16>(); } UnarmedAttackAnimation.ReadBinary(reader); break; case "DEST": if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadBinary(reader); break; case "SCRI": if (Script == null) { Script = new RecordReference(); } Script.ReadBinary(reader); break; case "CNTO": if (Contents == null) { Contents = new List <InventoryItem>(); } InventoryItem tempCNTO = new InventoryItem(); tempCNTO.ReadBinary(reader); Contents.Add(tempCNTO); break; case "AIDT": if (AIData == null) { AIData = new AIData(); } AIData.ReadBinary(reader); break; case "PKID": if (Packages == null) { Packages = new List <RecordReference>(); } RecordReference tempPKID = new RecordReference(); tempPKID.ReadBinary(reader); Packages.Add(tempPKID); break; case "CNAM": if (Class == null) { Class = new RecordReference(); } Class.ReadBinary(reader); break; case "DATA": if (Data == null) { Data = new NPCData(); } Data.ReadBinary(reader); break; case "DNAM": if (Skills == null) { Skills = new NPCSkills(); } Skills.ReadBinary(reader); break; case "PNAM": if (HeadParts == null) { HeadParts = new List <RecordReference>(); } RecordReference tempPNAM = new RecordReference(); tempPNAM.ReadBinary(reader); HeadParts.Add(tempPNAM); break; case "HNAM": if (HairType == null) { HairType = new RecordReference(); } HairType.ReadBinary(reader); break; case "LNAM": if (HairLength == null) { HairLength = new SimpleSubrecord <Single>(); } HairLength.ReadBinary(reader); break; case "ENAM": if (Eyes == null) { Eyes = new RecordReference(); } Eyes.ReadBinary(reader); break; case "HCLR": if (HairColor == null) { HairColor = new SimpleSubrecord <Color>(); } HairColor.ReadBinary(reader); break; case "ZNAM": if (CombatStyle == null) { CombatStyle = new RecordReference(); } CombatStyle.ReadBinary(reader); break; case "NAM4": if (ImpactMaterialType == null) { ImpactMaterialType = new SimpleSubrecord <MaterialTypeUInt>(); } ImpactMaterialType.ReadBinary(reader); break; case "FGGS": if (FaceGenGeometrySymmetric == null) { FaceGenGeometrySymmetric = new SimpleSubrecord <Byte[]>(); } FaceGenGeometrySymmetric.ReadBinary(reader); break; case "FGGA": if (FaceGenGeometryAsymmetric == null) { FaceGenGeometryAsymmetric = new SimpleSubrecord <Byte[]>(); } FaceGenGeometryAsymmetric.ReadBinary(reader); break; case "FGTS": if (FaceGenTexture == null) { FaceGenTexture = new SimpleSubrecord <Byte[]>(); } FaceGenTexture.ReadBinary(reader); break; case "NAM5": if (Unknown == null) { Unknown = new SimpleSubrecord <UInt16>(); } Unknown.ReadBinary(reader); break; case "NAM6": if (Height == null) { Height = new SimpleSubrecord <Single>(); } Height.ReadBinary(reader); break; case "NAM7": if (Weight == null) { Weight = new SimpleSubrecord <Single>(); } Weight.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "OBND": if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadBinary(reader); break; case "FULL": if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadBinary(reader); break; case "MODL": if (Model == null) { Model = new Model(); } Model.ReadBinary(reader); break; case "ICON": if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadBinary(reader); break; case "MICO": if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadBinary(reader); break; case "YNAM": if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadBinary(reader); break; case "ZNAM": if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadBinary(reader); break; case "DATA": if (Type == null) { Type = new SimpleSubrecord <NoteType>(); } Type.ReadBinary(reader); break; case "ONAM": if (Quests == null) { Quests = new List <RecordReference>(); } RecordReference tempONAM = new RecordReference(); tempONAM.ReadBinary(reader); Quests.Add(tempONAM); break; case "XNAM": if (Image == null) { Image = new SimpleSubrecord <String>(); } Image.ReadBinary(reader); break; case "TNAM": ReadEntryData(reader); break; case "SNAM": if (Audio == null) { Audio = new RecordReference(); } Audio.ReadBinary(reader); break; default: throw new Exception(); } } }