Example #1
0
        public static jmpValue getDefault(jmpValueType type)
        {
            switch (type)
            {
            case jmpValueType.INTEGER: return(default(int));

            case jmpValueType.FLOAT: return(default(float));

            case jmpValueType.STRING: return(default(string));
            }
            return(default(jmpValue));
        }
Example #2
0
 public jmpValue(float value)
     : this()
 {
     mType       = jmpValueType.FLOAT;
     mFloatValue = value;
 }
Example #3
0
 public jmpValue(string value)
     : this()
 {
     mType        = jmpValueType.STRING;
     mStringValue = value;
 }
Example #4
0
 public jmpValue(int value)
     : this()
 {
     mType     = jmpValueType.INTEGER;
     mIntValue = value;
 }