/** * Gets the operation representation from an operation name * * @param ope * the name of the operation * @return the representation of the operation */ public static string getOpRepresentation(Object ope) { string op = string.Empty; if (ope.Equals(EQUALS)) { op = "="; } else if (ope.Equals(GRATER)) { op = ">"; } else if (ope.Equals(LESS)) { op = "<"; } else if (ope.Equals(GRATER_EQ)) { op = ">="; } else if (ope.Equals(LESS_EQ)) { op = "<="; } return(op); }
/** * Gets the operation name from an operation representation * * @param ope * the representation of the operation * @return the name of the operation */ public static string getOpName(Object ope) { string op = string.Empty; if (ope.Equals("=")) { op = EQUALS; } else if (ope.Equals(">")) { op = GRATER; } else if (ope.Equals("<")) { op = LESS; } else if (ope.Equals(">=")) { op = GRATER_EQ; } else if (ope.Equals("<=")) { op = LESS_EQ; } return(op); }
static int _m_Equals(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); { object _other = translator.GetObject(L, 2, typeof(object)); bool gen_ret = gen_to_be_invoked.Equals( _other); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
internal static bool IsNull(this UnityObject obj) { if (obj == null || obj.Equals(null)) { return(true); } return(false); }
public static bool IsValid(this UnityObject obj) { if(obj != null && !obj.Equals(null)) { return true; } return false; }
public static bool IsNull(this UnityObject obj) { if (obj == null || obj.Equals(null)) { return true; } return false; }
public static int Equals(System.IntPtr L) { int nargs = LuaAPI.GetTop(L); if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2)) { UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1); System.Object arg1 = (System.Object)LuaCallback.ToObject(L, 2); System.Boolean res = arg0.Equals(arg1); LuaCallback.PushBool(L, res); return(1); } return(0); }
public static int Equals(IntPtr L) { int result = 1; int count = LuaDLL.lua_gettop(L); if (count != 2) { LuaStatic.traceback(L, "count not enough"); LuaDLL.lua_error(L); return(result); } UnityEngine.Object obj = LuaStatic.GetObj(L, 1) as UnityEngine.Object; Object arg1 = (Object)LuaStatic.GetObj(L, 2); LuaDLL.lua_pushboolean(L, obj.Equals(arg1)); return(result); }
int UnityEngineObject_m_Equals(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); { object _other = translator.GetObject(L, 2, typeof(object)); bool gen_ret = gen_to_be_invoked.Equals(_other); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } }
static StackObject *Equals_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Object @other = (System.Object) typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Object instance_of_this_method = (UnityEngine.Object) typeof(UnityEngine.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.Equals(@other); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static int Equals(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Object __cl_gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); try { { object o = translator.GetObject(L, 2, typeof(object)); bool __cl_gen_ret = __cl_gen_to_be_invoked.Equals(o); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
public static bool IsNull(this UnityEngine.Object obj) { return(obj == null || obj.Equals(null)); }