[+] chusan: Luminous

pull/23/head
Azalea 2024-03-22 15:09:29 -04:00
parent e91029f66e
commit a5fe5f53e2
4 changed files with 15 additions and 5 deletions

View File

@ -64,6 +64,11 @@ class ChusanServletController(
val endMatching: EndMatchingHandler, val endMatching: EndMatchingHandler,
val getMatchingState: GetMatchingStateHandler, val getMatchingState: GetMatchingStateHandler,
val removeMatchingMember: RemoveMatchingMemberHandler, val removeMatchingMember: RemoveMatchingMemberHandler,
// Luminous
val getUserCMissionHandler: GetUserCMissionHandler,
val getUserNetBattleRankingInfoHandler: GetUserNetBattleRankingInfoHandler,
val getGameMapAreaConditionHandler: GetGameMapAreaConditionHandler
) { ) {
val logger = LoggerFactory.getLogger(ChusanServletController::class.java) val logger = LoggerFactory.getLogger(ChusanServletController::class.java)
@ -88,7 +93,7 @@ class ChusanServletController(
"CMUpsertUserPrintlogApi", "CMUpsertUserPrintSubtractApi", "CMUpsertUserPrintlogApi", "CMUpsertUserPrintSubtractApi",
// SDGS Exclusive // SDGS Exclusive
"GetUserCtoCPlayApi") "GetUserCtoCPlayApi", "GetUserCMissionApi", "GetUserNetBattleRankingInfoApi", "GetGameMapAreaConditionApi")
val noopEndpoint = endpointList.popAll("UpsertClientBookkeepingApi", "UpsertClientDevelopApi", "UpsertClientErrorApi", val noopEndpoint = endpointList.popAll("UpsertClientBookkeepingApi", "UpsertClientDevelopApi", "UpsertClientErrorApi",
"UpsertClientSettingApi", "UpsertClientTestmodeApi", "CreateTokenApi", "RemoveTokenApi", "UpsertClientUploadApi", "UpsertClientSettingApi", "UpsertClientTestmodeApi", "CreateTokenApi", "RemoveTokenApi", "UpsertClientUploadApi",

View File

@ -87,6 +87,7 @@ public class GetGameSettingHandler implements BaseHandler {
10, 10,
"http://" + addr + ":" + port + "/ChusanServlet/", "http://" + addr + ":" + port + "/ChusanServlet/",
"http://" + addr + ":" + port + "/ChusanServlet/", "http://" + addr + ":" + port + "/ChusanServlet/",
"http://" + addr + ":" + port + "/ChusanServlet/",
"http://" + addr + ":" + port + "/ChusanServlet/" "http://" + addr + ":" + port + "/ChusanServlet/"
); );

View File

@ -29,6 +29,7 @@ public class GameSetting {
private int matchTimeLimit; private int matchTimeLimit;
private int matchErrorLimit; private int matchErrorLimit;
private String matchingUri; private String matchingUri;
private String matchingUriX;
private String udpHolePunchUri; private String udpHolePunchUri;
private String reflectorUri; private String reflectorUri;
} }

View File

@ -62,8 +62,7 @@ class Maimai2ServletController(
val createToken = BaseHandler { """{"Bearer":"AQUATOKEN"}""" } val createToken = BaseHandler { """{"Bearer":"AQUATOKEN"}""" }
val cmUpsertUserPrintLog = BaseHandler { """{"returnCode":1,"orderId":"0","serialId":"FAKECARDIMAG12345678"}""" } val cmUpsertUserPrintLog = BaseHandler { """{"returnCode":1,"orderId":"0","serialId":"FAKECARDIMAG12345678"}""" }
val endpointList = mutableListOf("GetGameEventApi", "GetGameRankingApi", "GetGameSettingApi", val endpointList = setOf("GetGameEventApi", "GetGameRankingApi", "GetGameSettingApi", "GetGameTournamentInfoApi",
"GetGameTournamentInfoApi",
"GetTransferFriendApi", "GetUserActivityApi", "GetUserCardApi", "GetUserCharacterApi", "GetUserDataApi", "GetTransferFriendApi", "GetUserActivityApi", "GetUserCardApi", "GetUserCharacterApi", "GetUserDataApi",
"GetUserExtendApi", "GetUserFavoriteApi", "GetUserGhostApi", "GetUserItemApi", "GetUserLoginBonusApi", "GetUserExtendApi", "GetUserFavoriteApi", "GetUserGhostApi", "GetUserItemApi", "GetUserLoginBonusApi",
"GetUserMapApi", "GetUserMusicApi", "GetUserOptionApi", "GetUserPortraitApi", "GetUserPreviewApi", "GetUserMapApi", "GetUserMusicApi", "GetUserOptionApi", "GetUserPortraitApi", "GetUserPreviewApi",
@ -76,11 +75,15 @@ class Maimai2ServletController(
"CMUpsertUserPrintlogApi", "GetUserFavoriteItemApi", "GetUserRivalDataApi", "GetUserRivalMusicApi", "CMUpsertUserPrintlogApi", "GetUserFavoriteItemApi", "GetUserRivalDataApi", "GetUserRivalMusicApi",
"GetUserScoreRankingApi", "UpsertClientBookkeepingApi", "UpsertClientSettingApi", "GetUserScoreRankingApi", "UpsertClientBookkeepingApi", "UpsertClientSettingApi",
"UpsertClientTestmodeApi", "UpsertClientUploadApi", "Ping", "RemoveTokenApi", "CMLoginApi", "CMLogoutApi", "UpsertClientTestmodeApi", "UpsertClientUploadApi", "Ping", "RemoveTokenApi", "CMLoginApi", "CMLogoutApi",
"CMUpsertBuyCardApi") "CMUpsertBuyCardApi",
// Luminous
"GetGameMapAreaConditionApi", "GetUserCMissionApi"
).toMutableList()
val noopEndpoint = endpointList.popAll("GetUserScoreRankingApi", "UpsertClientBookkeepingApi", val noopEndpoint = endpointList.popAll("GetUserScoreRankingApi", "UpsertClientBookkeepingApi",
"UpsertClientSettingApi", "UpsertClientTestmodeApi", "UpsertClientUploadApi", "Ping", "RemoveTokenApi", "UpsertClientSettingApi", "UpsertClientTestmodeApi", "UpsertClientUploadApi", "Ping", "RemoveTokenApi",
"CMLoginApi", "CMLogoutApi", "CMUpsertBuyCardApi", "UserLogoutApi") "CMLoginApi", "CMLogoutApi", "CMUpsertBuyCardApi", "UserLogoutApi", "GetGameMapAreaConditionApi")
val members = this::class.declaredMemberProperties val members = this::class.declaredMemberProperties
val handlers: Map<String, BaseHandler> = endpointList.associateWith { api -> val handlers: Map<String, BaseHandler> = endpointList.associateWith { api ->