Exemplo n.º 1
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("AgeSpecies", mKey.mAgeSpecies.ToString());
     settings.Add("Occult", mKey.mOccult.ToString());
     settings.Add("Commodity", mKey.mKind.ToString());
     settings.Add("Value", mValue);
 }
Exemplo n.º 2
0
        public void Export(Persistence.Lookup settings)
        {
            if (mName == null) return;

            settings.Add("Name", mName);

            settings.Add("Criteria", mElements);
        }
Exemplo n.º 3
0
        public override void Export(Persistence.Lookup settings)
        {
            base.Export(settings);

            if (mValue != null)
            {
                settings.Add("Value", mValue.ToString());
            }
        }
        public void BtnSaveEmployee()
        {
            if (BtnSaveEmployeeContent == "Add")
            {
                _employees.Add(CurrentEmployee);
            }
            else
            {
                _employees.Save(CurrentEmployee);
            }

            TryClose();
        }
Exemplo n.º 5
0
 public virtual void Export(Persistence.Lookup settings)
 {
     settings.Add("StartHour", mHours.x);
     settings.Add("EndHour", mHours.y);
 }
Exemplo n.º 6
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("AutoCommands", Overwatch.Settings.mAutoCommands);
 }
Exemplo n.º 7
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("", MasterController.Settings.mFilters);
 }
Exemplo n.º 8
0
        public void Export(Persistence.Lookup settings)
        {
            List<SeasonSettings> allSettings = new List<SeasonSettings>();

            foreach (List<SeasonSettings> list in SeasonSettings.Values)
            {
                allSettings.AddRange(list);
            }

            settings.Add("Settings", allSettings);
        }
Exemplo n.º 9
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("", MasterController.Settings.SkillStamps);
 }
Exemplo n.º 10
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("Services", serviceSettings.Values);            
 }
Exemplo n.º 11
0
        public override void Export(Persistence.Lookup settings)
        {
            base.Export(settings);

            Export(ref mTransitionTime, settings, "TransitionTime");

            settings.Add("MinIntensityDuration", mMinIntensityDuration);

            settings.Add("LightWeight", mIntensityWeights[0]);
            settings.Add("MediumWeight", mIntensityWeights[1]);
            settings.Add("HeavyWeight", mIntensityWeights[2]);

            settings.Add("ChangeWeights", mIntensityChangeWeights, mIntensityChangeWeights.Count);
        }
Exemplo n.º 12
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("Season", mSeason.ToString());
     settings.Add("NoSchool", mNoSchool);
     settings.Add("Days", mDays);
 }
Exemplo n.º 13
0
        public void Export(Persistence.Lookup settings)
        {
            settings.Add("Name", mName);

            List<PersistItem> list = new List<PersistItem>();
            foreach (KeyValuePair<SkillNames, int> value in mSkills)
            {
                list.Add(new PersistItem(value.Key, value.Value));
            }

            settings.Add("Skill", list);
        }
Exemplo n.º 14
0
 protected void Export(ref Pair<float, float> pair, Persistence.Lookup settings, string key)
 {
     settings.Add(key + "First", pair.First);
     settings.Add(key + "Second", pair.Second);
 }
Exemplo n.º 15
0
            public void Export(Persistence.Lookup settings)
            {
                settings.Add("Name", mName);

                if ((mFlags & Flags.Autonomous) == Flags.Autonomous)
                {
                    settings.Add("Autonomous", mAutonomous);
                }

                if ((mFlags & Flags.UserDirected) == Flags.UserDirected)
                {
                    settings.Add("UserDirected", mUserDirected);
                }

                if ((mFlags & Flags.AgeSpecies) == Flags.AgeSpecies)
                {
                    settings.Add("AgeSpecies", mAgeSpecies.ToString());
                }

                if ((mFlags & Flags.Availability) == Flags.Availability)
                {
                    settings.Add("Availability", mAvailability.ToString());
                }

                settings.Add("Advertised", AdvertisedToString());
            }
Exemplo n.º 16
0
            public void Export(Persistence.Lookup settings)
            {
                settings.Add("Name", mName);

                if ((mFlags & Flags.Autonomous) == Flags.Autonomous)
                {
                    settings.Add("Autonomous", mAutonomous);
                }

                if ((mFlags & Flags.UserDirected) == Flags.UserDirected)
                {
                    settings.Add("UserDirected", mUserDirected);
                }

                if ((mFlags & Flags.AllowPregnant) == Flags.AllowPregnant)
                {
                    settings.Add("AllowPregnant", mAllowPregnant);
                }

                if ((mFlags & Flags.ActorAgeSpecies) == Flags.ActorAgeSpecies)
                {
                    settings.Add("ActorAgeSpecies", mActorAgeSpecies.ToString());
                }

                if ((mFlags & Flags.TargetAgeSpecies) == Flags.TargetAgeSpecies)
                {
                    settings.Add("TargetAgeSpecies", mTargetAgeSpecies.ToString());
                }
            }
Exemplo n.º 17
0
        public void Export(Persistence.Lookup settings)
        {
            settings.AddChild("Key", mKey);

            settings.Add("Settings", mSettings.Values);
            settings.Add("Tunables", mTunables);
            settings.Add("ActionData", mActionData.Values);
        }
Exemplo n.º 18
0
        public void Export(Persistence.Lookup settings)
        {
            settings.Add("World", mWorld.ToString());

            string days = "";
            foreach (DaysOfTheWeek day in mDays)
            {
                switch(day)
                {
                    case DaysOfTheWeek.Monday:
                        days += "M";
                        break;
                    case DaysOfTheWeek.Tuesday:
                        days += "T";
                        break;
                    case DaysOfTheWeek.Wednesday:
                        days += "W";
                        break;
                    case DaysOfTheWeek.Thursday:
                        days += "R";
                        break;
                    case DaysOfTheWeek.Friday:
                        days += "F";
                        break;
                    case DaysOfTheWeek.Saturday:
                        days += "S";
                        break;
                    case DaysOfTheWeek.Sunday:
                        days += "U";
                        break;
                }
            }

            settings.Add("Days", days);

            settings.Add("StartHour", mStartHour);
            settings.Add("EndHour", mEndHour);
            settings.Add("Speed", mSpeed);
        }
Exemplo n.º 19
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add(GetTitlePrefix (), new ListToString<string>().Convert(MasterController.Settings.mCustomBuffs));
 }
Exemplo n.º 20
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("Skill", mSkill.ToString());
     settings.Add("Level", mLevel.ToString());
 }
Exemplo n.º 21
0
 public async Task Add <TEntity>(TEntity entity)
 {
     using (var rep = new Persistence(ConnectionId, this._connection))
         await rep.Add(entity);
 }
Exemplo n.º 22
0
        public void Export(Persistence.Lookup settings)
        {
            settings.Add("Name", mName);

            settings.Add("Start", mStart);
            settings.Add("End", mEnd);

            settings.Add("Enabled", mEnabled);

            Export(ref mMorningTemp, settings, "MorningTemp");
            Export(ref mNoonTemp, settings, "NoonTemp");
            Export(ref mEveningTemp, settings, "EveningTemp");
            Export(ref mNightTemp, settings, "NightTemp");

            settings.Add("Types", mData);
        }
Exemplo n.º 23
0
 public virtual void Export(Persistence.Lookup settings)
 {
     settings.Add("ParentType", mParentType);
     settings.Add("FieldName", mFieldName);
 }
Exemplo n.º 24
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("Season", mSeason.ToString());
     settings.Add("Day", mDay);
 }
Exemplo n.º 25
0
        public virtual void Export(Persistence.Lookup settings)
        {
            settings.Add("Type", mType.ToString());

            Export(ref mTemp, settings, "Temp");
            Export(ref mLength, settings, "Length");

            settings.Add("Weight", mWeight);
        }
Exemplo n.º 26
0
        public override void Export(Persistence.Lookup settings)
        {
            settings.Add("Season", mSeason.ToString());

            base.Export(settings);
        }
Exemplo n.º 27
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("Holidays", mHolidaySettings.Values);
     settings.Add("Weather", mWeatherSettings.Values);
 }
Exemplo n.º 28
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("Season", mSeason.ToString());
     settings.Add("Profiles", mProfiles);
 }
Exemplo n.º 29
0
        public override void Export(Persistence.Lookup settings)
        {
            base.Export(settings);

            settings.Add("Index", mIndex);
        }