2022-04-08 10:39:58 +00:00
|
|
|
---@alias CardsMoveInfo {ids: integer[], from: integer|null, to: integer|null, toArea: CardArea, moveReason: CardMoveReason, proposer: integer, skillName: string|null, moveVisible: boolean|null, specialName: string|null, specialVisible: boolean|null }
|
|
|
|
---@alias MoveInfo {cardId: integer, fromArea: CardArea}
|
2022-04-14 10:22:00 +00:00
|
|
|
---@alias CardsMoveStruct {moveInfo: MoveInfo[], from: integer|null, to: integer|null, toArea: CardArea, moveReason: CardMoveReason, proposer: integer|null, skillName: string|null, moveVisible: boolean|null, specialName: string|null, specialVisible: boolean|null, fromSpecialName: string|null }
|
2022-04-08 10:39:58 +00:00
|
|
|
|
|
|
|
---@alias HpChangedData { num: integer, reason: string, skillName: string }
|
|
|
|
---@alias HpLostData { num: integer, skillName: string }
|
|
|
|
---@alias DamageStruct { from: integer|null, to: integer, damage: integer, damageType: DamageType, skillName: string }
|
|
|
|
---@alias RecoverStruct { who: integer, num: integer, recoverBy: integer|null, skillName: string|null }
|
|
|
|
|
|
|
|
---@alias DyingStruct { who: integer, damage: DamageStruct }
|
|
|
|
---@alias DeathStruct { who: integer, damage: DamageStruct }
|
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
---@alias CardUseStruct { from: integer, tos: TargetGroup, cardId: integer, toCardId: integer|null, responseToEvent: CardUseStruct|null, nullifiedTargets: interger[]|null, extraUse: boolean|null, disresponsiveList: integer[]|null, unoffsetableList: integer[]|null, addtionalDamage: integer|null, customFrom: integer|null, cardIdsResponded: integer[]|null }
|
2022-12-20 13:15:49 +00:00
|
|
|
---@alias AimStruct { from: integer, cardId: integer, tos: AimGroup, to: integer, subTargets: integer[]|null, targetGroup: TargetGroup|null, nullifiedTargets: integer[]|null, firstTarget: boolean, additionalDamage: integer|null, disresponsive: boolean|null, unoffsetableList: boolean|null }
|
|
|
|
---@alias CardEffectEvent { from: integer, to: integer, subTargets: integer[]|null, tos: TargetGroup, cardId: integer, toCardId: integer|null, responseToEvent: CardUseStruct|null, nullifiedTargets: interger[]|null, extraUse: boolean|null, disresponsiveList: integer[]|null, unoffsetableList: integer[]|null, addtionalDamage: integer|null, customFrom: integer|null, cardIdsResponded: integer[]|null, disresponsive: boolean|null, unoffsetable: boolean|null }
|
2022-09-14 05:01:10 +00:00
|
|
|
---@alias SkillEffectEvent { from: integer, tos: integer[], cards: integer[] }
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-12-20 10:40:17 +00:00
|
|
|
---@alias JudgeStruct { who: ServerPlayer, card: Card, reason: string }
|
2022-12-20 13:15:49 +00:00
|
|
|
---@alias CardResponseEvent { from: integer, cardId: integer, responseToEvent: CardEffectEvent|null, skipDrop: boolean|null, 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
|
|
|
|
|
|
|
---@alias DamageType integer
|
|
|
|
|
|
|
|
fk.NormalDamage = 1
|
|
|
|
fk.ThunderDamage = 2
|
|
|
|
fk.FireDamage = 3
|
2022-12-18 04:52:52 +00:00
|
|
|
|
|
|
|
---@alias LogMessage {type: string, from: integer, to: integer[], card: integer[], arg: any, arg2: any, arg3: any}
|