2023-02-15 11:54:35 +00: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 10:39:58 +00:00
|
|
|
|
2023-02-15 11:54:35 +00:00
|
|
|
---@class MoveInfo
|
|
|
|
---@field cardId integer
|
|
|
|
---@field fromArea CardArea
|
2023-02-21 05:44:24 +00:00
|
|
|
---@field fromSpecialName string|null
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2023-02-15 11:54:35 +00: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 10:39:58 +00:00
|
|
|
|
2023-02-15 11:54:35 +00:00
|
|
|
---@class HpChangedData
|
|
|
|
---@field num integer
|
|
|
|
---@field reason string
|
|
|
|
---@field skillName string
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2023-02-15 11:54:35 +00: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
|
|
|
|
---@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
|
|
|
|
---@field addtionalDamage integer|null
|
|
|
|
---@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
|
|
|
|
|
|
|
|
---@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 05:44:24 +00:00
|
|
|
---@field responseToEvent CardEffectEvent|null
|
2023-02-15 11:54:35 +00:00
|
|
|
---@field nullifiedTargets interger[]|null
|
|
|
|
---@field extraUse boolean|null
|
|
|
|
---@field disresponsiveList integer[]|null
|
|
|
|
---@field unoffsetableList integer[]|null
|
|
|
|
---@field addtionalDamage integer|null
|
|
|
|
---@field customFrom integer|null
|
|
|
|
---@field cardsResponded Card[]|null
|
|
|
|
---@field disresponsive boolean|null
|
|
|
|
---@field unoffsetable boolean|null
|
|
|
|
---@field isCancellOut boolean|null
|
|
|
|
|
|
|
|
---@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 10:40:17 +00:00
|
|
|
|
2022-09-14 05:01:10 +00:00
|
|
|
---@alias CardMoveReason integer
|
2022-04-08 10:39:58 +00: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 07:27:56 +00:00
|
|
|
fk.ReasonUse = 9
|
|
|
|
fk.ReasonResonpse = 10
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2023-02-21 05:44:24 +00:00
|
|
|
---@class PindianStruct
|
|
|
|
---@field from ServerPlayer
|
|
|
|
---@field to ServerPlayer
|
|
|
|
---@field from_card Card
|
|
|
|
---@field to_card Card
|
|
|
|
---@field from_number integer
|
|
|
|
---@field to_number integer
|
|
|
|
---@field reason string
|
|
|
|
---@field winner ServerPlayer|null
|
|
|
|
|
2023-02-15 11:54:35 +00:00
|
|
|
---@class LogMessage
|
|
|
|
---@field type string
|
|
|
|
---@field from integer
|
|
|
|
---@field to integer[]
|
|
|
|
---@field card integer[]
|
|
|
|
---@field arg any
|
|
|
|
---@field arg2 any
|
|
|
|
---@field arg3 any
|