Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
战斗会话的全局生命周期。
Link copied to clipboard
Link copied to clipboard
data class BattleRandomState(val seed: Long, val state: Long = seed, val generatedValueCount: Long = 0)
battle session 级确定性随机状态。
Link copied to clipboard
data class BattleState(val id: String, val formatId: String, val battleKind: BattleType = BattleType.TRAINER, val randomState: BattleRandomState = BattleRandomState.seeded(id, formatId), val lifecycle: BattleLifecycle = BattleLifecycle.INITIALIZING, val turn: Int = 0, val winner: String? = null, val endedReason: String? = null, val capturableSideId: String? = null, val capturedUnitId: String? = null, val failedRunAttempts: Map<String, Int> = emptyMap())
战斗级运行时状态的最小骨架。
Link copied to clipboard
标准战斗类型。
Link copied to clipboard
data class FieldState(val weatherState: AttachedEffectState? = null, val terrainState: AttachedEffectState? = null, val conditionStates: Map<String, AttachedEffectState> = emptyMap())
场地级运行时状态骨架。
Link copied to clipboard
Link copied to clipboard
单位运行时调试状态。
Link copied to clipboard
data class UnitMetadataState(val creatureId: Long? = null, val creatureSpeciesId: Long? = null, val creatureInternalName: String? = null, val creatureName: String? = null, val level: Int? = null, val requiredExperience: Int? = null, val natureId: Long? = null, val captureRate: Int? = null, val weight: Int? = null, val captureContext: UnitCaptureContextState = UnitCaptureContextState(), val ivs: Map<String, Int> = emptyMap(), val evs: Map<String, Int> = emptyMap())
战斗单位的结构化元数据。
Link copied to clipboard
data class UnitSessionState(val faintHookProcessed: Boolean = false, val pendingSwitchBoostCarry: Map<String, Int> = emptyMap())
单位在 battle session 内部使用的工作状态。
Link copied to clipboard
data class UnitState(val id: String, val currentHp: Int, val maxHp: Int, val statusState: AttachedEffectState? = null, val abilityId: String? = null, val itemId: String? = null, val typeIds: Set<String> = emptySet(), val volatileStates: Map<String, AttachedEffectState> = emptyMap(), val conditionStates: Map<String, AttachedEffectState> = emptyMap(), val boosts: Map<String, Int> = emptyMap(), val stats: Map<String, Int> = emptyMap(), val movePp: Map<String, Int> = emptyMap(), val metadata: UnitMetadataState = UnitMetadataState(), val debugState: UnitDebugState = UnitDebugState(), val sessionState: UnitSessionState = UnitSessionState(), val forceSwitchRequested: Boolean = false)
战斗单位运行时状态骨架。