Beispiel #1
0
        public static int GetPersonId()
        {
            Person person = new Person();
            int    id     = -1;

            OutputService.DisplayConsole("Are you registered");
            NoYes     input     = (NoYes)InputService.GetValidatedUserChoice(new NoYes());
            DBService dbService = new DBService();

            switch (input)
            {
            case NoYes.No:

                OutputService.DisplayConsole("Write your name");
                person.PersonName = StringValidation.ValidateLength(MAX_LENGTH_RESPONSIBLE);
                OutputService.DisplayConsole("Enter your phone number (ex. 0991231212, 099-123-12-12, +1-099-123-12-12)");
                person.PhoneNumber = StringValidation.ValidatePhone();
                id = dbService.CreatePerson(person);
                dbService.Dispose();
                return(id);

            case NoYes.Yes:
                while (dbService.PersonExist(person) == null)
                {
                    OutputService.DisplayConsole("Write your name");
                    person.PersonName = StringValidation.ValidateLength(MAX_LENGTH_RESPONSIBLE);
                    OutputService.DisplayConsole("Enter your phone number (ex. 0991231212, 099-123-12-12, +1-099-123-12-12)");
                    person.PhoneNumber = StringValidation.ValidatePhone();
                    id = dbService.PersonExist(person).Id;
                }
                return(id);
            }
            return(-1);
        }
 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;
             }
         }
 }
Beispiel #3
0
 public ImageSpaceAdapterData(ImageSpaceAdapterData copyObject)
 {
     IsAnimatable           = copyObject.IsAnimatable;
     Duration               = copyObject.Duration;
     HDREyeAdaptSpeedMult   = copyObject.HDREyeAdaptSpeedMult;
     HDREyeAdaptSpeedAdd    = copyObject.HDREyeAdaptSpeedAdd;
     HDRBloomBlurRadiusMult = copyObject.HDRBloomBlurRadiusMult;
     HDRBloomBlurRadiusAdd  = copyObject.HDRBloomBlurRadiusAdd;
     HDRBloomThresholdMult  = copyObject.HDRBloomThresholdMult;
     HDRBloomThresholdAdd   = copyObject.HDRBloomThresholdAdd;
     HDRBloomScaleMult      = copyObject.HDRBloomScaleMult;
     HDRBloomScaleAdd       = copyObject.HDRBloomScaleAdd;
     HDRTargetLumMinMult    = copyObject.HDRTargetLumMinMult;
     HDRTargetLumMinAdd     = copyObject.HDRTargetLumMinAdd;
     HDRTargetLumMaxMult    = copyObject.HDRTargetLumMaxMult;
     HDRTargetLumMaxAdd     = copyObject.HDRTargetLumMaxAdd;
     HDRSunlightScaleMult   = copyObject.HDRSunlightScaleMult;
     HDRSunlightScaleAdd    = copyObject.HDRSunlightScaleAdd;
     HDRSkyScaleMult        = copyObject.HDRSkyScaleMult;
     HDRSkyScaleAdd         = copyObject.HDRSkyScaleAdd;
     if (copyObject.Unknown1 != null)
     {
         Unknown1 = (Byte[])copyObject.Unknown1.Clone();
     }
     CinematicSaturationMult = copyObject.CinematicSaturationMult;
     CinematicSaturationAdd  = copyObject.CinematicSaturationAdd;
     CinematicBrightnessMult = copyObject.CinematicBrightnessMult;
     CinematicBrightnessAdd  = copyObject.CinematicBrightnessAdd;
     CinematicContrastMult   = copyObject.CinematicContrastMult;
     CinematicContrastAdd    = copyObject.CinematicContrastAdd;
     if (copyObject.Unknown2 != null)
     {
         Unknown2 = (Byte[])copyObject.Unknown2.Clone();
     }
     if (copyObject.TintColor != null)
     {
         TintColor = (Color)copyObject.TintColor.Clone();
     }
     BlurRadius            = copyObject.BlurRadius;
     DoubleVisionStrength  = copyObject.DoubleVisionStrength;
     RadialBlurStrength    = copyObject.RadialBlurStrength;
     RadialBlurRampUp      = copyObject.RadialBlurRampUp;
     RadialBlurStart       = copyObject.RadialBlurStart;
     RadialBlurUseTarget   = copyObject.RadialBlurUseTarget;
     RadialBlurCenterX     = copyObject.RadialBlurCenterX;
     RadialBlurCenterY     = copyObject.RadialBlurCenterY;
     DepthOfFieldStrength  = copyObject.DepthOfFieldStrength;
     DepthOfFieldDistance  = copyObject.DepthOfFieldDistance;
     DepthOfFieldRange     = copyObject.DepthOfFieldRange;
     DepthOfFieldUseTarget = copyObject.DepthOfFieldUseTarget;
     RadialBlurRampDown    = copyObject.RadialBlurRampDown;
     RadialBlurDownStart   = copyObject.RadialBlurDownStart;
     if (copyObject.FadeColor != null)
     {
         FadeColor = (Color)copyObject.FadeColor.Clone();
     }
     MotionBlurStrength = copyObject.MotionBlurStrength;
 }
Beispiel #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
             {
                 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;
             }
         }
 }
Beispiel #5
0
 public ImageSpaceAdapterData(string Tag = null)
     : base(Tag)
 {
     IsAnimatable            = new NoYes();
     Duration                = new Single();
     HDREyeAdaptSpeedMult    = new UInt32();
     HDREyeAdaptSpeedAdd     = new UInt32();
     HDRBloomBlurRadiusMult  = new UInt32();
     HDRBloomBlurRadiusAdd   = new UInt32();
     HDRBloomThresholdMult   = new UInt32();
     HDRBloomThresholdAdd    = new UInt32();
     HDRBloomScaleMult       = new UInt32();
     HDRBloomScaleAdd        = new UInt32();
     HDRTargetLumMinMult     = new UInt32();
     HDRTargetLumMinAdd      = new UInt32();
     HDRTargetLumMaxMult     = new UInt32();
     HDRTargetLumMaxAdd      = new UInt32();
     HDRSunlightScaleMult    = new UInt32();
     HDRSunlightScaleAdd     = new UInt32();
     HDRSkyScaleMult         = new UInt32();
     HDRSkyScaleAdd          = new UInt32();
     Unknown1                = new byte[72];
     CinematicSaturationMult = new UInt32();
     CinematicSaturationAdd  = new UInt32();
     CinematicBrightnessMult = new UInt32();
     CinematicBrightnessAdd  = new UInt32();
     CinematicContrastMult   = new UInt32();
     CinematicContrastAdd    = new UInt32();
     Unknown2                = new byte[8];
     TintColor               = new Color();
     BlurRadius              = new UInt32();
     DoubleVisionStrength    = new UInt32();
     RadialBlurStrength      = new UInt32();
     RadialBlurRampUp        = new UInt32();
     RadialBlurStart         = new UInt32();
     RadialBlurUseTarget     = new NoYes();
     RadialBlurCenterX       = new UInt32();
     RadialBlurCenterY       = new UInt32();
     DepthOfFieldStrength    = new UInt32();
     DepthOfFieldDistance    = new UInt32();
     DepthOfFieldRange       = new UInt32();
     DepthOfFieldUseTarget   = new NoYes();
     RadialBlurRampDown      = new UInt32();
     RadialBlurDownStart     = new UInt32();
     FadeColor               = new Color();
     MotionBlurStrength      = new NoYes();
 }
 public CasinoData(Single DecksPercentBeforeShuffle, Single BlackjackPayoutRatio, UInt32 SlotReelStop1, UInt32 SlotReelStop2, UInt32 SlotReelStop3, UInt32 SlotReelStop4, UInt32 SlotReelStop5, UInt32 SlotReelStop6, UInt32 SlotReelStopW, UInt32 NumberOfDecks, UInt32 MaxWinnings, FormID Currency, FormID WinningsQuest, NoYes DealerStayOnSoft17)
 {
     this.DecksPercentBeforeShuffle = DecksPercentBeforeShuffle;
     this.BlackjackPayoutRatio      = BlackjackPayoutRatio;
     this.SlotReelStop1             = SlotReelStop1;
     this.SlotReelStop2             = SlotReelStop2;
     this.SlotReelStop3             = SlotReelStop3;
     this.SlotReelStop4             = SlotReelStop4;
     this.SlotReelStop5             = SlotReelStop5;
     this.SlotReelStop6             = SlotReelStop6;
     this.SlotReelStopW             = SlotReelStopW;
     this.NumberOfDecks             = NumberOfDecks;
     this.MaxWinnings        = MaxWinnings;
     this.Currency           = Currency;
     this.WinningsQuest      = WinningsQuest;
     this.DealerStayOnSoft17 = DealerStayOnSoft17;
 }
Beispiel #7
0
 public ImageSpaceAdapterData(NoYes IsAnimatable, Single Duration, UInt32 HDREyeAdaptSpeedMult, UInt32 HDREyeAdaptSpeedAdd, UInt32 HDRBloomBlurRadiusMult, UInt32 HDRBloomBlurRadiusAdd, UInt32 HDRBloomThresholdMult, UInt32 HDRBloomThresholdAdd, UInt32 HDRBloomScaleMult, UInt32 HDRBloomScaleAdd, UInt32 HDRTargetLumMinMult, UInt32 HDRTargetLumMinAdd, UInt32 HDRTargetLumMaxMult, UInt32 HDRTargetLumMaxAdd, UInt32 HDRSunlightScaleMult, UInt32 HDRSunlightScaleAdd, UInt32 HDRSkyScaleMult, UInt32 HDRSkyScaleAdd, Byte[] Unknown1, UInt32 CinematicSaturationMult, UInt32 CinematicSaturationAdd, UInt32 CinematicBrightnessMult, UInt32 CinematicBrightnessAdd, UInt32 CinematicContrastMult, UInt32 CinematicContrastAdd, Byte[] Unknown2, Color TintColor, UInt32 BlurRadius, UInt32 DoubleVisionStrength, UInt32 RadialBlurStrength, UInt32 RadialBlurRampUp, UInt32 RadialBlurStart, NoYes RadialBlurUseTarget, UInt32 RadialBlurCenterX, UInt32 RadialBlurCenterY, UInt32 DepthOfFieldStrength, UInt32 DepthOfFieldDistance, UInt32 DepthOfFieldRange, NoYes DepthOfFieldUseTarget, UInt32 RadialBlurRampDown, UInt32 RadialBlurDownStart, Color FadeColor, NoYes MotionBlurStrength)
 {
     this.IsAnimatable            = IsAnimatable;
     this.Duration                = Duration;
     this.HDREyeAdaptSpeedMult    = HDREyeAdaptSpeedMult;
     this.HDREyeAdaptSpeedAdd     = HDREyeAdaptSpeedAdd;
     this.HDRBloomBlurRadiusMult  = HDRBloomBlurRadiusMult;
     this.HDRBloomBlurRadiusAdd   = HDRBloomBlurRadiusAdd;
     this.HDRBloomThresholdMult   = HDRBloomThresholdMult;
     this.HDRBloomThresholdAdd    = HDRBloomThresholdAdd;
     this.HDRBloomScaleMult       = HDRBloomScaleMult;
     this.HDRBloomScaleAdd        = HDRBloomScaleAdd;
     this.HDRTargetLumMinMult     = HDRTargetLumMinMult;
     this.HDRTargetLumMinAdd      = HDRTargetLumMinAdd;
     this.HDRTargetLumMaxMult     = HDRTargetLumMaxMult;
     this.HDRTargetLumMaxAdd      = HDRTargetLumMaxAdd;
     this.HDRSunlightScaleMult    = HDRSunlightScaleMult;
     this.HDRSunlightScaleAdd     = HDRSunlightScaleAdd;
     this.HDRSkyScaleMult         = HDRSkyScaleMult;
     this.HDRSkyScaleAdd          = HDRSkyScaleAdd;
     this.Unknown1                = Unknown1;
     this.CinematicSaturationMult = CinematicSaturationMult;
     this.CinematicSaturationAdd  = CinematicSaturationAdd;
     this.CinematicBrightnessMult = CinematicBrightnessMult;
     this.CinematicBrightnessAdd  = CinematicBrightnessAdd;
     this.CinematicContrastMult   = CinematicContrastMult;
     this.CinematicContrastAdd    = CinematicContrastAdd;
     this.Unknown2                = Unknown2;
     this.TintColor               = TintColor;
     this.BlurRadius              = BlurRadius;
     this.DoubleVisionStrength    = DoubleVisionStrength;
     this.RadialBlurStrength      = RadialBlurStrength;
     this.RadialBlurRampUp        = RadialBlurRampUp;
     this.RadialBlurStart         = RadialBlurStart;
     this.RadialBlurUseTarget     = RadialBlurUseTarget;
     this.RadialBlurCenterX       = RadialBlurCenterX;
     this.RadialBlurCenterY       = RadialBlurCenterY;
     this.DepthOfFieldStrength    = DepthOfFieldStrength;
     this.DepthOfFieldDistance    = DepthOfFieldDistance;
     this.DepthOfFieldRange       = DepthOfFieldRange;
     this.DepthOfFieldUseTarget   = DepthOfFieldUseTarget;
     this.RadialBlurRampDown      = RadialBlurRampDown;
     this.RadialBlurDownStart     = RadialBlurDownStart;
     this.FadeColor               = FadeColor;
     this.MotionBlurStrength      = MotionBlurStrength;
 }
 public CasinoData(string Tag = null)
     : base(Tag)
 {
     DecksPercentBeforeShuffle = new Single();
     BlackjackPayoutRatio      = new Single();
     SlotReelStop1             = new UInt32();
     SlotReelStop2             = new UInt32();
     SlotReelStop3             = new UInt32();
     SlotReelStop4             = new UInt32();
     SlotReelStop5             = new UInt32();
     SlotReelStop6             = new UInt32();
     SlotReelStopW             = new UInt32();
     NumberOfDecks             = new UInt32();
     MaxWinnings        = new UInt32();
     Currency           = new FormID();
     WinningsQuest      = new FormID();
     DealerStayOnSoft17 = new NoYes();
 }
 public CasinoData(CasinoData copyObject)
 {
     DecksPercentBeforeShuffle = copyObject.DecksPercentBeforeShuffle;
     BlackjackPayoutRatio      = copyObject.BlackjackPayoutRatio;
     SlotReelStop1             = copyObject.SlotReelStop1;
     SlotReelStop2             = copyObject.SlotReelStop2;
     SlotReelStop3             = copyObject.SlotReelStop3;
     SlotReelStop4             = copyObject.SlotReelStop4;
     SlotReelStop5             = copyObject.SlotReelStop5;
     SlotReelStop6             = copyObject.SlotReelStop6;
     SlotReelStopW             = copyObject.SlotReelStopW;
     NumberOfDecks             = copyObject.NumberOfDecks;
     MaxWinnings = copyObject.MaxWinnings;
     if (copyObject.Currency != null)
     {
         Currency = (FormID)copyObject.Currency.Clone();
     }
     if (copyObject.WinningsQuest != null)
     {
         WinningsQuest = (FormID)copyObject.WinningsQuest.Clone();
     }
     DealerStayOnSoft17 = copyObject.DealerStayOnSoft17;
 }
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("DecksPercentBeforeShuffle", false, out subEle))
            {
                DecksPercentBeforeShuffle = subEle.ToSingle();
            }

            if (ele.TryPathTo("BlackjackPayoutRatio", false, out subEle))
            {
                BlackjackPayoutRatio = subEle.ToSingle();
            }

            if (ele.TryPathTo("SlotReelStop/Symbol1", false, out subEle))
            {
                SlotReelStop1 = subEle.ToUInt32();
            }

            if (ele.TryPathTo("SlotReelStop/Symbol2", false, out subEle))
            {
                SlotReelStop2 = subEle.ToUInt32();
            }

            if (ele.TryPathTo("SlotReelStop/Symbol3", false, out subEle))
            {
                SlotReelStop3 = subEle.ToUInt32();
            }

            if (ele.TryPathTo("SlotReelStop/Symbol4", false, out subEle))
            {
                SlotReelStop4 = subEle.ToUInt32();
            }

            if (ele.TryPathTo("SlotReelStop/Symbol5", false, out subEle))
            {
                SlotReelStop5 = subEle.ToUInt32();
            }

            if (ele.TryPathTo("SlotReelStop/Symbol6", false, out subEle))
            {
                SlotReelStop6 = subEle.ToUInt32();
            }

            if (ele.TryPathTo("SlotReelStop/SymbolW", false, out subEle))
            {
                SlotReelStopW = subEle.ToUInt32();
            }

            if (ele.TryPathTo("NumberOfDecks", false, out subEle))
            {
                NumberOfDecks = subEle.ToUInt32();
            }

            if (ele.TryPathTo("MaxWinnings", false, out subEle))
            {
                MaxWinnings = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Currency", false, out subEle))
            {
                Currency.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("WinningsQuest", false, out subEle))
            {
                WinningsQuest.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("DealerStayOnSoft17", false, out subEle))
            {
                DealerStayOnSoft17 = subEle.ToEnum <NoYes>();
            }
        }
Beispiel #11
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("IsAnimatable", false, out subEle))
            {
                IsAnimatable = subEle.ToEnum <NoYes>();
            }

            if (ele.TryPathTo("Duration", false, out subEle))
            {
                Duration = subEle.ToSingle();
            }

            if (ele.TryPathTo("HDR/EyeAdaptSpeed/Mult", false, out subEle))
            {
                HDREyeAdaptSpeedMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/EyeAdaptSpeed/Add", false, out subEle))
            {
                HDREyeAdaptSpeedAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/Bloom/BlurRadius/Mult", false, out subEle))
            {
                HDRBloomBlurRadiusMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/Bloom/BlurRadius/Add", false, out subEle))
            {
                HDRBloomBlurRadiusAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/Bloom/Threshold/Mult", false, out subEle))
            {
                HDRBloomThresholdMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/Bloom/Threshold/Add", false, out subEle))
            {
                HDRBloomThresholdAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/Bloom/Scale/Mult", false, out subEle))
            {
                HDRBloomScaleMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/Bloom/Scale/Add", false, out subEle))
            {
                HDRBloomScaleAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/TargetLum/Min/Mult", false, out subEle))
            {
                HDRTargetLumMinMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/TargetLum/Min/Add", false, out subEle))
            {
                HDRTargetLumMinAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/TargetLum/Max/Mult", false, out subEle))
            {
                HDRTargetLumMaxMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/TargetLum/Max/Add", false, out subEle))
            {
                HDRTargetLumMaxAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/SunlightScale/Mult", false, out subEle))
            {
                HDRSunlightScaleMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/SunlightScale/Add", false, out subEle))
            {
                HDRSunlightScaleAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/SkyScale/Mult", false, out subEle))
            {
                HDRSkyScaleMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("HDR/SkyScale/Add", false, out subEle))
            {
                HDRSkyScaleAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Unknown1", false, out subEle))
            {
                Unknown1 = subEle.ToBytes();
            }

            if (ele.TryPathTo("Cinematic/Saturation/Mult", false, out subEle))
            {
                CinematicSaturationMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Cinematic/Saturation/Add", false, out subEle))
            {
                CinematicSaturationAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Cinematic/Brightness/Mult", false, out subEle))
            {
                CinematicBrightnessMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Cinematic/Brightness/Add", false, out subEle))
            {
                CinematicBrightnessAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Cinematic/Contrast/Mult", false, out subEle))
            {
                CinematicContrastMult = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Cinematic/Contrast/Add", false, out subEle))
            {
                CinematicContrastAdd = subEle.ToUInt32();
            }

            if (ele.TryPathTo("Unknown2", false, out subEle))
            {
                Unknown2 = subEle.ToBytes();
            }

            if (ele.TryPathTo("TintColor", false, out subEle))
            {
                TintColor.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("BlurRadius", false, out subEle))
            {
                BlurRadius = subEle.ToUInt32();
            }

            if (ele.TryPathTo("DoubleVisionStrength", false, out subEle))
            {
                DoubleVisionStrength = subEle.ToUInt32();
            }

            if (ele.TryPathTo("RadialBlur/Strength", false, out subEle))
            {
                RadialBlurStrength = subEle.ToUInt32();
            }

            if (ele.TryPathTo("RadialBlur/RampUp", false, out subEle))
            {
                RadialBlurRampUp = subEle.ToUInt32();
            }

            if (ele.TryPathTo("RadialBlur/Start", false, out subEle))
            {
                RadialBlurStart = subEle.ToUInt32();
            }

            if (ele.TryPathTo("RadialBlur/UseTarget", false, out subEle))
            {
                RadialBlurUseTarget = subEle.ToEnum <NoYes>();
            }

            if (ele.TryPathTo("RadialBlur/Center/X", false, out subEle))
            {
                RadialBlurCenterX = subEle.ToUInt32();
            }

            if (ele.TryPathTo("RadialBlur/Center/Y", false, out subEle))
            {
                RadialBlurCenterY = subEle.ToUInt32();
            }

            if (ele.TryPathTo("DepthOfField/Strength", false, out subEle))
            {
                DepthOfFieldStrength = subEle.ToUInt32();
            }

            if (ele.TryPathTo("DepthOfField/Distance", false, out subEle))
            {
                DepthOfFieldDistance = subEle.ToUInt32();
            }

            if (ele.TryPathTo("DepthOfField/Range", false, out subEle))
            {
                DepthOfFieldRange = subEle.ToUInt32();
            }

            if (ele.TryPathTo("DepthOfField/UseTarget", false, out subEle))
            {
                DepthOfFieldUseTarget = subEle.ToEnum <NoYes>();
            }

            if (ele.TryPathTo("RadialBlur/RampDown", false, out subEle))
            {
                RadialBlurRampDown = subEle.ToUInt32();
            }

            if (ele.TryPathTo("RadialBlur/DownStart", false, out subEle))
            {
                RadialBlurDownStart = subEle.ToUInt32();
            }

            if (ele.TryPathTo("FadeColor", false, out subEle))
            {
                FadeColor.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("MotionBlurStrength", false, out subEle))
            {
                MotionBlurStrength = subEle.ToEnum <NoYes>();
            }
        }