static object PerformMemberwiseClone(ref object o) { var ins = new FairyGUI.RelationType(); ins = (FairyGUI.RelationType)o; return(ins); }
static StackObject *Add_1(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, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @usePercent = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.RelationType @relationType = (FairyGUI.RelationType) typeof(FairyGUI.RelationType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); FairyGUI.GObject @target = (FairyGUI.GObject) typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); FairyGUI.Relations instance_of_this_method = (FairyGUI.Relations) typeof(FairyGUI.Relations).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Add(@target, @relationType, @usePercent); return(__ret); }
static int Add(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Relations), typeof(FairyGUI.GObject), typeof(FairyGUI.RelationType))) { FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.ToObject(L, 1); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.ToObject(L, 2); FairyGUI.RelationType arg1 = (FairyGUI.RelationType)ToLua.ToObject(L, 3); obj.Add(arg0, arg1); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Relations), typeof(FairyGUI.GObject), typeof(FairyGUI.RelationType), typeof(bool))) { FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.ToObject(L, 1); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.ToObject(L, 2); FairyGUI.RelationType arg1 = (FairyGUI.RelationType)ToLua.ToObject(L, 3); bool arg2 = LuaDLL.lua_toboolean(L, 4); obj.Add(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Relations.Add")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); FairyGUI.RelationType o = (FairyGUI.RelationType)arg0; ToLua.Push(L, o); return(1); }
static void WriteBackInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref FairyGUI.RelationType instance_of_this_method) { ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.Object: { __mStack[ptr_of_this_method->Value] = instance_of_this_method; } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { var t = __domain.GetType(___obj.GetType()) as CLRType; t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method); } } break; case ObjectTypes.StaticFieldReference: { var t = __domain.GetType(ptr_of_this_method->Value); if (t is ILType) { ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as FairyGUI.RelationType[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method; } break; } }
static int Remove(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject(L, 1, typeof(FairyGUI.Relations)); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject(L, 2, typeof(FairyGUI.GObject)); FairyGUI.RelationType arg1 = (FairyGUI.RelationType)ToLua.CheckObject(L, 3, typeof(FairyGUI.RelationType)); obj.Remove(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static void Push(IntPtr L, FairyGUI.RelationType arg) { ToLua.Push(L, arg); }