示例#1
0
    static int set_onfinishtx(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            YX_MoblieAPI            obj  = (YX_MoblieAPI)o;
            YX_MoblieAPI.onFinishTx arg0 = null;
            LuaTypes funcType2           = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (YX_MoblieAPI.onFinishTx)ToLua.CheckObject(L, 2, typeof(YX_MoblieAPI.onFinishTx));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(YX_MoblieAPI.onFinishTx), func) as YX_MoblieAPI.onFinishTx;
            }

            obj.onfinishtx = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onfinishtx on a nil value" : e.Message));
        }
    }
示例#2
0
 static int shake(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         YX_MoblieAPI obj = (YX_MoblieAPI)ToLua.CheckObject(L, 1, typeof(YX_MoblieAPI));
         obj.shake();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
 static int GetCenterPicture(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         YX_MoblieAPI obj  = (YX_MoblieAPI)ToLua.CheckObject(L, 1, typeof(YX_MoblieAPI));
         string       arg0 = ToLua.CheckString(L, 2);
         obj.GetCenterPicture(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
 static int CaptureByRect(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         YX_MoblieAPI obj  = (YX_MoblieAPI)ToLua.CheckObject(L, 1, typeof(YX_MoblieAPI));
         string       arg0 = ToLua.CheckString(L, 2);
         UITexture    arg1 = (UITexture)ToLua.CheckUnityObject(L, 3, typeof(UITexture));
         System.Collections.IEnumerator o = obj.CaptureByRect(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#5
0
    static int get_onfinishtx(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            YX_MoblieAPI            obj = (YX_MoblieAPI)o;
            YX_MoblieAPI.onFinishTx ret = obj.onfinishtx;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onfinishtx on a nil value" : e.Message));
        }
    }