static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        FairyGUI.HitTestMode o = (FairyGUI.HitTestMode)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Exemplo n.º 2
0
 static int SetHitTestMode(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.UIPanel     obj  = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel));
         FairyGUI.HitTestMode arg0 = (FairyGUI.HitTestMode)ToLua.CheckObject(L, 2, typeof(FairyGUI.HitTestMode));
         obj.SetHitTestMode(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
        static StackObject *SetHitTestMode_4(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);
            FairyGUI.HitTestMode @value = (FairyGUI.HitTestMode) typeof(FairyGUI.HitTestMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 20);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            FairyGUI.UIPanel instance_of_this_method = (FairyGUI.UIPanel) typeof(FairyGUI.UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetHitTestMode(@value);

            return(__ret);
        }
 static void Push(IntPtr L, FairyGUI.HitTestMode arg)
 {
     ToLua.Push(L, arg);
 }