Example #1
0
        public override void Clone(SaveableData Data)
        {
            SaveablePreset preset = Data as SaveablePreset;

            if (preset != null)
            {
                _name       = preset.Name;
                _presetType = preset.PresetType;
            }
        }
Example #2
0
        private string GetCurrentRoot(PresetTypes inType)
        {
            switch (inType)
            {
            case PresetTypes.Default:
                return(DefaultPath + "\\" + Name);

            case PresetTypes.Shared:
                return(SharedPath + "\\" + Name);
            }

            return(UserPath + "\\" + Name);
        }
Example #3
0
    public static void Init3DDefalutData()
    {
        PresetTypes type = SettingsManager.recommend.type;

        //set original display state
        moduleLabyrinth.playerVisible = type > PresetTypes.Low;
        moduleBordlands.SetPlayerVisible(type > PresetTypes.Low);

        int index = type > PresetTypes.Fantasic ? (int)PresetTypes.Fantasic : (int)type;

        defaultShowPlayerLimit = GeneralConfigInfo.splayerLimitInScene.GetValue <int>(index);
        if (defaultShowPlayerLimit == 0)
        {
            defaultShowPlayerLimit = 20;
        }
    }
Example #4
0
 public Power(string inName, PresetTypes inType)
     : base(inName, inType)
 {
 }
Example #5
0
 public override void Preset(PresetTypes PType)
 {
     base.Send(string.Concat("SYSTem:PRESet ", PType.ToString()));
 }
Example #6
0
 public SaveablePreset(string inName, PresetTypes inType)
 {
     _name       = inName;
     _presetType = inType;
 }
Example #7
0
 /// <summary>
 /// 预置
 /// </summary>
 public virtual void Preset(PresetTypes PType)
 {
 }