示例#1
0
 private bool TryGet(string key, out ControlPointValue val)
 {
     if (Settings == null || !Settings.TryGetValue(key, out val))
     {
         val = m_defaultValue;
         return(false);
     }
     return(true);
 }
示例#2
0
        private void Set(string key, ControlPointValue val)
        {
            if (Settings == null)
            {
                Settings = new Dictionary <string, ControlPointValue>();
            }

            Settings[key] = val;
        }
示例#3
0
 public ControlPointValue(ControlPointValue value)
 {
     FloatValue  = value.FloatValue;
     IntValue    = value.IntValue;
     VectorValue = value.VectorValue;
 }