Ejemplo n.º 1
0
 static int CalculateGravityAngle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
         float arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
         float arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
         float arg4;
         bool  o = UnGfx.CalculateGravityAngle(arg0, arg1, arg2, arg3, out arg4);
         LuaDLL.lua_pushboolean(L, o);
         LuaDLL.lua_pushnumber(L, arg4);
         return(2);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }