Ejemplo n.º 1
0
 public void Export(Persistence.Lookup settings)
 {
     settings.Add("Age", mAge.ToString());
     settings.Add("Gender", mGender.ToString());
     settings.Add("Species", mSpecies.ToString());
     settings.Add("Categories", mCategories.ToString());
     settings.Add("Extended", mExtended.ToString());
     settings.Add("WorldTypes", GetWorldTypeString());
 }
Ejemplo n.º 2
0
        public bool Import(Persistence.Lookup settings)
        {
            mAge = settings.GetEnum <CASAgeGenderFlags>("Age", CASAgeGenderFlags.None);

            mGender = settings.GetEnum <CASAgeGenderFlags>("Gender", CASAgeGenderFlags.None);

            mSpecies = settings.GetEnum <CASAgeGenderFlags>("Species", CASAgeGenderFlags.None);

            mCategories = settings.GetEnum <OutfitCategories>("Categories", OutfitCategories.None);

            mExtended = settings.GetEnum <OutfitCategoriesExtended>("Extended", (OutfitCategoriesExtended)0x0);

            mWorldTypes = new ToWorldType().Convert(settings.GetString("WorldTypes"));

            return(true);
        }