Пример #1
0
        public static int StringK(FuncState fs, string s)
        {
            var o = new TValue();

            o.SetSValue(s);
            return(AddK(fs, ref o, ref o));
        }
Пример #2
0
 public static bool SetLightUserDataPropValue(TValue userData, TValue key, ref TValue value)
 {
     if (_setLightUserDataPropValue != null)
     {
         return(_setLightUserDataPropValue(userData.OValue, key, ref value));
     }
     value.SetSValue("SetField of userData fail!Function SetField is not exist");
     return(false);
 }
Пример #3
0
        private bool V_ToString(ref TValue v)
        {
            if (!v.TtIsNumber())
            {
                return(false);
            }

            v.SetSValue(v.NValue.ToString());
            return(true);
        }
Пример #4
0
 public static bool GetLightUserDataPropValue(TValue userData, TValue key, out TValue resValue)
 {
     if (_getLightUserDataPropValue != null)
     {
         return(_getLightUserDataPropValue(userData.OValue, key, out resValue));
     }
     resValue = new TValue();
     resValue.SetSValue("GetField from userData fail!Function GetField is not exist");
     return(false);
 }
Пример #5
0
		public static int StringK( FuncState fs, string s )
		{
			// Debug.Log(" STRING K >>>> " + s );
			var o = new TValue();
			o.SetSValue(s);
			return AddK( fs, ref o, ref o );
		}
Пример #6
0
		private bool V_ToString(ref TValue v)
		{
			if(!v.TtIsNumber()) { return false; }

			v.SetSValue(v.NValue.ToString());
			return true;
		}
Пример #7
0
		public static int StringK( FuncState fs, string s )
		{
			var o = new TValue();
			o.SetSValue(s);
			return AddK( fs, ref o, ref o );
		}