mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-09-22 22:38:14 +03:00
feat: ongeki return technical challenges
This commit is contained in:
@@ -23,8 +23,7 @@ fun OngekiController.ongekiInit() {
|
||||
"GetGamePresent".static { gdb.present.findAll().staticLst("gamePresentList") }
|
||||
"GetGameReward".static { gdb.reward.findAll().staticLst("gameRewardList") }
|
||||
|
||||
// Dummy endpoints
|
||||
"GetGameTechMusic".static { empty.staticLst("gameTechMusicList") }
|
||||
"GetGameTechMusic".static { gdb.gameData.ogkGameTechMusics.staticLst("gameTechMusicList") }
|
||||
"GetGameMessage" { mapOf("type" to data["type"], "length" to 0, "gameMessageList" to empty) }
|
||||
"GetGameMusicReleaseState".static { mapOf("techScore" to 0, "cardNum" to 0) }
|
||||
|
||||
@@ -82,4 +81,4 @@ fun OngekiController.ongekiInit() {
|
||||
"UpsertClientTestmode" static { """{"returnCode":1, "apiName":"UpsertClientTestmodeApi"}""" }
|
||||
"UpsertUserGplog" static { """{"returnCode":1, "apiName":"UpsertUserGplogApi"}""" }
|
||||
"Ping" static { """{"returnCode":1, "apiName":"Ping"}""" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,12 @@ class GameEvent {
|
||||
var id: Long = 0
|
||||
}
|
||||
|
||||
class GameTechMusic {
|
||||
var eventId = 0
|
||||
var musicId = 0
|
||||
var level = 0
|
||||
}
|
||||
|
||||
class GameMusic {
|
||||
var id: Long = 0
|
||||
var name: String = ""
|
||||
@@ -105,4 +111,4 @@ class GameGacha {
|
||||
|
||||
@JsonProperty("isCeiling")
|
||||
var isCeiling: Boolean = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ import icu.samnyan.aqua.sega.ongeki.model.GameChara as OgkGameChara
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameEvent as OgkGameEvent
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameGacha as OgkGameGacha
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameGachaCard as OgkGameGachaCard
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameTechMusic as OgkGameTechMusic
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameMusic as OgkGameMusic
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GamePoint as OgkGamePoint
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GamePresent as OgkGamePresent
|
||||
@@ -50,6 +51,7 @@ class GameDataService() {
|
||||
log.warn("Game data file $f or resource $resPath not found, using empty list")
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// maimai2
|
||||
@@ -72,6 +74,7 @@ class GameDataService() {
|
||||
lateinit var ogkGameCards: List<OgkGameCard>
|
||||
lateinit var ogkGameCharas: List<OgkGameChara>
|
||||
lateinit var ogkGameEvents: List<OgkGameEvent>
|
||||
lateinit var ogkGameTechMusics: List<OgkGameTechMusic>
|
||||
lateinit var ogkGameMusics: List<OgkGameMusic>
|
||||
lateinit var ogkGamePoints: List<OgkGamePoint>
|
||||
lateinit var ogkGamePresents: List<OgkGamePresent>
|
||||
@@ -103,6 +106,7 @@ class GameDataService() {
|
||||
ogkGameCards = load("ongeki", "game_card.json")
|
||||
ogkGameCharas = load("ongeki", "game_chara.json")
|
||||
ogkGameEvents = load("ongeki", "game_event.json")
|
||||
ogkGameTechMusics = load("ongeki", "game_tech_music.json")
|
||||
ogkGameMusics = load("ongeki", "game_music.json")
|
||||
ogkGamePoints = load("ongeki", "game_point.json")
|
||||
ogkGamePresents = load("ongeki", "game_present.json")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user