public static int UploadRoleInfo(IntPtr L) { int count = LuaDLL.lua_gettop(L); const int nRet = 0; if (count == 10 && LuaScriptMgr.CheckTypes(L, 1, typeof(int), typeof(int), typeof(string), typeof(int), typeof(int), typeof(int), typeof(string), typeof(string), typeof(double), typeof(double))) { int sendType = (int)LuaScriptMgr.GetNumber(L, 1); int playerId = (int)LuaScriptMgr.GetNumber(L, 2); string roleName = LuaScriptMgr.GetString(L, 3); int roleLevel = (int)LuaScriptMgr.GetNumber(L, 4); int vipLevel = (int)LuaScriptMgr.GetNumber(L, 5); int serverId = (int)LuaScriptMgr.GetNumber(L, 6); string serverName = LuaScriptMgr.GetString(L, 7); string laborUnion = LuaScriptMgr.GetString(L, 8); double roleCreateTime = (double)LuaScriptMgr.GetNumber(L, 9); double roleLevelMTime = (double)LuaScriptMgr.GetNumber(L, 10); PlatformControl.UploadRoleInfo(sendType, playerId, roleName, roleLevel, vipLevel, serverId, serverName, laborUnion, roleCreateTime, roleLevelMTime); } else { LogParamError("UploadRoleInfo", count); } return(GameUtilWrap.CheckReturnNum(L, count, nRet)); }