Esempio n. 1
0
 public void FromStruct(StorageData sd)
 {
     mapRect            = sd.mapRect;
     descriptionRect    = sd.descriptionRect;
     settingsRect       = sd.settingsRect;
     mapOpacity         = sd.mapOpacity;
     descriptionOpacity = sd.descriptionOpacity;
     mapShown           = sd.mapShown;
     descriptionShown   = sd.descriptionShown;
     zoneId             = sd.zoneId;
     sectionId          = sd.sectionId;
     stepId             = sd.stepId;
     nextHotkey         = sd.nextHotkey;
     prevHotkey         = sd.prevHotkey;
     showHotkey         = sd.showHotkey;
     lockHotkey         = sd.lockHotkey;
 }
Esempio n. 2
0
        public StorageData ToStruct()
        {
            StorageData sd = new StorageData();

            sd.mapRect            = mapRect;
            sd.descriptionRect    = descriptionRect;
            sd.settingsRect       = settingsRect;
            sd.mapOpacity         = mapOpacity;
            sd.descriptionOpacity = descriptionOpacity;
            sd.mapShown           = mapShown;
            sd.descriptionShown   = descriptionShown;
            sd.zoneId             = zoneId;
            sd.sectionId          = sectionId;
            sd.stepId             = stepId;
            sd.nextHotkey         = nextHotkey;
            sd.prevHotkey         = prevHotkey;
            sd.showHotkey         = showHotkey;
            sd.lockHotkey         = lockHotkey;
            return(sd);
        }