BattleSessionGateway

BattleSession 内部网关接口。

设计意图:

  • 为上层调用方提供稳定的会话 API。

  • 屏蔽 BattleSession 内部装配、存储和查询细节。

Inheritors

Functions

Link copied to clipboard
abstract fun configureSession(sessionId: String, battleKind: BattleType, capturableSideId: String? = null): BattleSessionQuery
Link copied to clipboard
abstract fun createSession(sessionId: String, formatId: String): BattleSessionQuery
Link copied to clipboard
abstract fun markSessionSettled(sessionId: String): BattleSessionQuery
Link copied to clipboard
abstract fun querySession(sessionId: String): BattleSessionQuery
Link copied to clipboard
abstract fun registerSide(sessionId: String, sideId: String): BattleSessionQuery
Link copied to clipboard
abstract fun registerUnit(sessionId: String, sideId: String, unit: UnitState, active: Boolean = true): BattleSessionQuery
Link copied to clipboard
abstract fun resolveTurn(sessionId: String): BattleSessionTurnResult
Link copied to clipboard
abstract fun startSession(sessionId: String): BattleSessionQuery
Link copied to clipboard
abstract fun submitChoice(sessionId: String, choice: BattleSessionChoice): BattleSessionQuery
Link copied to clipboard
abstract fun submitChoices(sessionId: String, choices: List<BattleSessionChoice>): BattleSessionQuery
Link copied to clipboard
abstract fun submitReplacementChoice(sessionId: String, sideId: String, incomingUnitId: String): BattleSessionQuery