public static int StringK(FuncState fs, string s) { var o = new TValue(); o.SetSValue(s); return(AddK(fs, ref o, ref o)); }
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); }
private bool V_ToString(ref TValue v) { if (!v.TtIsNumber()) { return(false); } v.SetSValue(v.NValue.ToString()); return(true); }
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); }
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 ); }
private bool V_ToString(ref TValue v) { if(!v.TtIsNumber()) { return false; } v.SetSValue(v.NValue.ToString()); return true; }
public static int StringK( FuncState fs, string s ) { var o = new TValue(); o.SetSValue(s); return AddK( fs, ref o, ref o ); }