コード例 #1
0
ファイル: Coder.cs プロジェクト: weimingtom/cslua
        public static int StringK(FuncState fs, string s)
        {
            var o = new TValue();

            o.SetSValue(s);
            return(AddK(fs, ref o, ref o));
        }
コード例 #2
0
ファイル: Util.cs プロジェクト: LostTemple1990/BarrageDemo
 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
ファイル: VM.cs プロジェクト: weimingtom/cslua
        private bool V_ToString(ref TValue v)
        {
            if (!v.TtIsNumber())
            {
                return(false);
            }

            v.SetSValue(v.NValue.ToString());
            return(true);
        }
コード例 #4
0
ファイル: Util.cs プロジェクト: LostTemple1990/BarrageDemo
 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
ファイル: Coder.cs プロジェクト: xuxiandi/UniLua
		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
ファイル: VM.cs プロジェクト: Jornason/UniLua
		private bool V_ToString(ref TValue v)
		{
			if(!v.TtIsNumber()) { return false; }

			v.SetSValue(v.NValue.ToString());
			return true;
		}
コード例 #7
0
ファイル: Coder.cs プロジェクト: Jornason/UniLua
		public static int StringK( FuncState fs, string s )
		{
			var o = new TValue();
			o.SetSValue(s);
			return AddK( fs, ref o, ref o );
		}