Пример #1
0
 public bool Equals(ref CValue other)
 {
     return(other.intValue == intValue &&
            other.floatValue == floatValue &&
            other.stringValue == stringValue &&
            other.vectorValue == vectorValue);
 }
Пример #2
0
 public CVar(string name, Rect defaultValue, CFlags flags)
     : this(name, CVarType.Rect, flags)
 {
     this.RectValue = defaultValue;
     m_defaultValue = m_value;
 }
Пример #3
0
 public CVar(string name, Vector4 defaultValue, CFlags flags)
     : this(name, CVarType.Vector4, flags)
 {
     this.Vector4Value = defaultValue;
     m_defaultValue    = m_value;
 }
Пример #4
0
 public CVar(string name, Color defaultValue, CFlags flags)
     : this(name, CVarType.Color, flags)
 {
     this.ColorValue = defaultValue;;
     m_defaultValue  = m_value;
 }
Пример #5
0
 public CVar(string name, string defaultValue, CFlags flags)
     : this(name, CVarType.String, flags)
 {
     this.Value     = defaultValue;
     m_defaultValue = m_value;
 }
Пример #6
0
 public CVar(string name, float defaultValue, CFlags flags)
     : this(name, CVarType.Float, flags)
 {
     this.FloatValue = defaultValue;
     m_defaultValue  = m_value;
 }
Пример #7
0
 public CVar(string name, int defaultValue, CFlags flags)
     : this(name, CVarType.Integer, flags)
 {
     this.IntValue  = defaultValue;
     m_defaultValue = m_value;
 }
Пример #8
0
 public CVar(string name, bool defaultValue, CFlags flags)
     : this(name, CVarType.Boolean, flags)
 {
     this.IntValue  = defaultValue ? 1 : 0;
     m_defaultValue = m_value;
 }