Exemple #1
0
    static int BeginLocation(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                GameSDKInterface obj  = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1);
                bool             arg0 = LuaDLL.luaL_checkboolean(L, 2);
                obj.BeginLocation(arg0);
                return(0);
            }
            else if (count == 4)
            {
                GameSDKInterface obj  = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1);
                bool             arg0 = LuaDLL.luaL_checkboolean(L, 2);
                bool             arg1 = LuaDLL.luaL_checkboolean(L, 3);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
                obj.BeginLocation(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: GameSDKInterface.BeginLocation"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }