Beispiel #1
0
 static int Event10(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LRDDZ_LuaBehaviour");
     obj.Event10();
     return(0);
 }
Beispiel #2
0
    static int AddToggle(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 3)
        {
            SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LRDDZ_LuaBehaviour");
            UIToggle    arg0 = (UIToggle)LuaScriptMgr.GetUnityObject(L, 2, typeof(UIToggle));
            LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);
            obj.AddToggle(arg0, arg1);
            return(0);
        }
        else if (count == 4)
        {
            SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LRDDZ_LuaBehaviour");
            UIToggle    arg0 = (UIToggle)LuaScriptMgr.GetUnityObject(L, 2, typeof(UIToggle));
            LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);
            LuaTable    arg2 = LuaScriptMgr.GetLuaTable(L, 4);
            obj.AddToggle(arg0, arg1, arg2);
            return(0);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: SimpleFramework.LRDDZ_LuaBehaviour.AddToggle");
        }

        return(0);
    }
Beispiel #3
0
    static int MyDestroy(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LRDDZ_LuaBehaviour");
        GameObject arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));

        obj.MyDestroy(arg0);
        return(0);
    }
Beispiel #4
0
    static int LoadAsset(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LRDDZ_LuaBehaviour");
        string     arg0 = LuaScriptMgr.GetLuaString(L, 2);
        GameObject o    = obj.LoadAsset(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Beispiel #5
0
    static int OnInit(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LRDDZ_LuaBehaviour");
        AssetBundle arg0 = (AssetBundle)LuaScriptMgr.GetUnityObject(L, 2, typeof(AssetBundle));
        string      arg1 = LuaScriptMgr.GetLuaString(L, 3);

        obj.OnInit(arg0, arg1);
        return(0);
    }
Beispiel #6
0
    static int AddClick(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.LRDDZ_LuaBehaviour");
        GameObject  arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
        LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);

        obj.AddClick(arg0, arg1);
        return(0);
    }
Beispiel #7
0
    static int get_IsExtractCompleted(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        SimpleFramework.LRDDZ_LuaBehaviour obj = (SimpleFramework.LRDDZ_LuaBehaviour)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name IsExtractCompleted");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index IsExtractCompleted on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.IsExtractCompleted);
        return(1);
    }