Esempio n. 1
0
 static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 7);
         ClusterManager obj  = (ClusterManager)ToLua.CheckObject(L, 1, typeof(ClusterManager));
         float          arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         float          arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         int            arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         int            arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
         int            arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
         int[][]        arg5 = ToLua.CheckObjectArray <int[]>(L, 7);
         obj.Init(arg0, arg1, arg2, arg3, arg4, arg5);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }