2023-02-15 19:54:35 +08:00
|
|
|
---@class CardsMoveInfo
|
|
|
|
---@field ids integer[]
|
|
|
|
---@field from integer|null
|
|
|
|
---@field to integer|null
|
|
|
|
---@field toArea CardArea
|
|
|
|
---@field moveReason CardMoveReason
|
|
|
|
---@field proposer integer
|
|
|
|
---@field skillName string|null
|
|
|
|
---@field moveVisible boolean|null
|
|
|
|
---@field specialName string|null
|
|
|
|
---@field specialVisible boolean|null
|
2022-04-08 18:39:58 +08:00
|
|
|
|
2023-02-15 19:54:35 +08:00
|
|
|
---@class MoveInfo
|
|
|
|
---@field cardId integer
|
|
|
|
---@field fromArea CardArea
|
2023-02-21 13:44:24 +08:00
|
|
|
---@field fromSpecialName string|null
|
2022-04-08 18:39:58 +08:00
|
|
|
|
2023-02-15 19:54:35 +08:00
|
|
|
---@class CardsMoveStruct
|
|
|
|
---@field moveInfo MoveInfo[]
|
|
|
|
---@field from integer|null
|
|
|
|
---@field to integer|null
|
|
|
|
---@field toArea CardArea
|
|
|
|
---@field moveReason CardMoveReason
|
|
|
|
---@field proposer integer|null
|
|
|
|
---@field skillName string|null
|
|
|
|
---@field moveVisible boolean|null
|
|
|
|
---@field specialName string|null
|
|
|
|
---@field specialVisible boolean|null
|
2022-04-08 18:39:58 +08:00
|
|
|
|
2023-03-14 20:48:08 +08:00
|
|
|
---@class PindianResult
|
|
|
|
---@field toCard Card
|
|
|
|
---@field winner ServerPlayer|null
|
|
|
|
|
2023-02-15 19:54:35 +08:00
|
|
|
---@class HpChangedData
|
|
|
|
---@field num integer
|
|
|
|
---@field reason string
|
|
|
|
---@field skillName string
|
2022-04-08 18:39:58 +08:00
|
|
|
|
2023-02-15 19:54:35 +08:00
|
|
|
---@class HpLostData
|
|
|
|
---@field num integer
|
|
|
|
---@field skillName string
|
|
|
|
|
|
|
|
---@alias DamageType integer
|
|
|
|
|
|
|
|
fk.NormalDamage = 1
|
|
|
|
fk.ThunderDamage = 2
|
|
|
|
fk.FireDamage = 3
|
|
|
|
|
|
|
|
---@class DamageStruct
|
|
|
|
---@field from ServerPlayer|null
|
|
|
|
---@field to ServerPlayer
|
|
|
|
---@field damage integer
|
|
|
|
---@field card Card
|
2023-03-09 12:19:16 +08:00
|
|
|
---@field chain boolean
|
2023-02-15 19:54:35 +08:00
|
|
|
---@field damageType DamageType
|
|
|
|
---@field skillName string
|
|
|
|
|
|
|
|
---@class RecoverStruct
|
|
|
|
---@field who ServerPlayer
|
|
|
|
---@field num integer
|
|
|
|
---@field recoverBy ServerPlayer|null
|
|
|
|
---@field skillName string|null
|
|
|
|
---@field card Card|null
|
|
|
|
|
|
|
|
---@class DyingStruct
|
|
|
|
---@field who integer
|
|
|
|
---@field damage DamageStruct
|
|
|
|
|
|
|
|
---@class DeathStruct
|
|
|
|
---@field who integer
|
|
|
|
---@field damage DamageStruct
|
|
|
|
|
|
|
|
---@class CardUseStruct
|
|
|
|
---@field from integer
|
|
|
|
---@field tos TargetGroup
|
|
|
|
---@field card Card
|
|
|
|
---@field toCard Card|null
|
|
|
|
---@field responseToEvent CardUseStruct|null
|
|
|
|
---@field nullifiedTargets interger[]|null
|
|
|
|
---@field extraUse boolean|null
|
|
|
|
---@field disresponsiveList integer[]|null
|
|
|
|
---@field unoffsetableList integer[]|null
|
2023-03-14 20:48:08 +08:00
|
|
|
---@field additionalDamage integer|null
|
2023-02-15 19:54:35 +08:00
|
|
|
---@field customFrom integer|null
|
|
|
|
---@field cardsResponded Card[]|null
|
|
|
|
|
|
|
|
---@class AimStruct
|
|
|
|
---@field from integer
|
|
|
|
---@field card Card
|
|
|
|
---@field tos AimGroup
|
|
|
|
---@field to integer
|
|
|
|
---@field subTargets integer[]|null
|
|
|
|
---@field targetGroup TargetGroup|null
|
|
|
|
---@field nullifiedTargets integer[]|null
|
|
|
|
---@field firstTarget boolean
|
|
|
|
---@field additionalDamage integer|null
|
|
|
|
---@field disresponsive boolean|null
|
|
|
|
---@field unoffsetableList boolean|null
|
2023-03-06 01:07:54 +08:00
|
|
|
---@field additionalResponseTimes table<string, integer>|integer|null
|
|
|
|
---@field fixedAddTimesResponsors integer[]
|
2023-02-15 19:54:35 +08:00
|
|
|
|
|
|
|
---@class CardEffectEvent
|
|
|
|
---@field from integer
|
|
|
|
---@field to integer
|
|
|
|
---@field subTargets integer[]|null
|
|
|
|
---@field tos TargetGroup
|
|
|
|
---@field card Card
|
|
|
|
---@field toCard Card|null
|
2023-02-21 13:44:24 +08:00
|
|
|
---@field responseToEvent CardEffectEvent|null
|
2023-02-15 19:54:35 +08:00
|
|
|
---@field nullifiedTargets interger[]|null
|
|
|
|
---@field extraUse boolean|null
|
|
|
|
---@field disresponsiveList integer[]|null
|
|
|
|
---@field unoffsetableList integer[]|null
|
2023-03-14 20:48:08 +08:00
|
|
|
---@field additionalDamage integer|null
|
2023-02-15 19:54:35 +08:00
|
|
|
---@field customFrom integer|null
|
|
|
|
---@field cardsResponded Card[]|null
|
|
|
|
---@field disresponsive boolean|null
|
|
|
|
---@field unoffsetable boolean|null
|
|
|
|
---@field isCancellOut boolean|null
|
2023-03-06 01:07:54 +08:00
|
|
|
---@field fixedResponseTimes table<string, integer>|integer|null
|
|
|
|
---@field fixedAddTimesResponsors integer[]
|
2023-02-15 19:54:35 +08:00
|
|
|
|
|
|
|
---@class SkillEffectEvent
|
|
|
|
---@field from integer
|
|
|
|
---@field tos integer[]
|
|
|
|
---@field cards integer[]
|
|
|
|
|
|
|
|
---@class JudgeStruct
|
|
|
|
---@field who ServerPlayer
|
|
|
|
---@field card Card
|
|
|
|
---@field reason string
|
|
|
|
---@field pattern string
|
|
|
|
|
|
|
|
---@class CardResponseEvent
|
|
|
|
---@field from integer
|
|
|
|
---@field card Card
|
|
|
|
---@field responseToEvent CardEffectEvent|null
|
|
|
|
---@field skipDrop boolean|null
|
|
|
|
---@field customFrom integer|null
|
2022-12-20 18:40:17 +08:00
|
|
|
|
2023-03-06 01:07:54 +08:00
|
|
|
---@class AskForCardUse
|
|
|
|
---@field user ServerPlayer
|
|
|
|
---@field cardName string
|
|
|
|
---@field pattern string
|
|
|
|
---@field result CardUseStruct
|
|
|
|
|
|
|
|
---@class AskForCardResponse
|
|
|
|
---@field user ServerPlayer
|
|
|
|
---@field cardName string
|
|
|
|
---@field pattern string
|
|
|
|
---@field result Card
|
|
|
|
|
2022-09-14 13:01:10 +08:00
|
|
|
---@alias CardMoveReason integer
|
2022-04-08 18:39:58 +08:00
|
|
|
|
|
|
|
fk.ReasonJustMove = 1
|
|
|
|
fk.ReasonDraw = 2
|
|
|
|
fk.ReasonDiscard = 3
|
|
|
|
fk.ReasonGive = 4
|
|
|
|
fk.ReasonPut = 5
|
|
|
|
fk.ReasonPutIntoDiscardPile = 6
|
|
|
|
fk.ReasonPrey = 7
|
|
|
|
fk.ReasonExchange = 8
|
2022-04-30 15:27:56 +08:00
|
|
|
fk.ReasonUse = 9
|
|
|
|
fk.ReasonResonpse = 10
|
2022-04-08 18:39:58 +08:00
|
|
|
|
2023-02-21 13:44:24 +08:00
|
|
|
---@class PindianStruct
|
|
|
|
---@field from ServerPlayer
|
2023-03-14 20:48:08 +08:00
|
|
|
---@field tos ServerPlayer[]
|
|
|
|
---@field fromCard Card
|
|
|
|
---@field results table<integer, PindianResult>
|
2023-02-21 13:44:24 +08:00
|
|
|
---@field reason string
|
|
|
|
|
2023-02-15 19:54:35 +08:00
|
|
|
---@class LogMessage
|
|
|
|
---@field type string
|
|
|
|
---@field from integer
|
|
|
|
---@field to integer[]
|
|
|
|
---@field card integer[]
|
|
|
|
---@field arg any
|
|
|
|
---@field arg2 any
|
|
|
|
---@field arg3 any
|