Example #1
0
        private LevelVariableContext GetSelectedContext()
        {
            LevelVariableContextType contextType = LevelVariableContextType.None;
            string contextTarget = String.Empty;

            if (this.rdoSettingsLevelContextAll.Checked == true)
            {
                contextType = LevelVariableContextType.All;
            }
            else if (this.rdoSettingsLevelContextGamemode.Checked == true)
            {
                contextType = LevelVariableContextType.GameMode;
                if (this.cboSettingsGamemodes.SelectedItem != null)
                {
                    contextTarget = ((CMap)this.cboSettingsGamemodes.SelectedItem).PlayList;
                }
            }
            else if (this.rdoSettingsLevelContextLevel.Checked == true)
            {
                contextType = LevelVariableContextType.Level;

                if (this.cboSettingsGamemodes.SelectedItem != null)
                {
                    contextTarget = ((CMap)this.cboSettingsLevels.SelectedItem).FileName;
                }
            }

            return(new LevelVariableContext(contextType, contextTarget));
        }
Example #2
0
 public LevelVariableContext(LevelVariableContextType lvctContextType, string strContextTarget)
 {
     this.ContextType   = lvctContextType;
     this.ContextTarget = strContextTarget;
 }
Example #3
0
 public LevelVariableContext(LevelVariableContextType lvctContextType, string strContextTarget)
 {
     this.ContextType = lvctContextType;
     this.ContextTarget = strContextTarget;
 }
Example #4
0
 public LevelVariableContext(LevelVariableContextType lvctContextType)
 {
     this.ContextType   = lvctContextType;
     this.ContextTarget = String.Empty;
 }
Example #5
0
 public LevelVariableContext(LevelVariableContextType lvctContextType)
 {
     this.ContextType = lvctContextType;
     this.ContextTarget = String.Empty;
 }