neon_crisp / Modules / cardFactory/types
Module: cardFactory/types
Table of contents
Type Aliases
Type Aliases
CardData
Ƭ CardData: Object
Type declaration
| Name | Type |
|---|---|
atk | number |
atkSounds | string[] |
deathSounds | string[] |
defenseSounds | string[] |
hp | number |
id | string |
img | { atlasId: string ; filename: string ; imgPath: string } |
img.atlasId | string |
img.filename | string |
img.imgPath | string |
miscSounds | string[] |
name | string |
nextLevelCost? | number | null |
nextLevelId? | string | null |
nonPlayerCard | boolean |
on_after_attack | ActionTitle[] |
on_attack | ActionTitle[] |
on_before_attack | ActionTitle[] |
on_card_state_change | ActionTitle[] |
on_death | ActionTitle[] |
on_defense | ActionTitle[] |
on_game_start | ActionTitle[] |
on_targeted | ActionTitle[] |
on_turn | ActionTitle[] |
prevLevelId? | string | null |
Defined in
CostToLevelUp
Ƭ CostToLevelUp: Object
Type declaration
| Name | Type |
|---|---|
cardsNeeded | number |
gemsNeeded | number |
goldNeeded | number |
Defined in
LevelUpTableRow
Ƭ LevelUpTableRow: Object
Type declaration
| Name | Type |
|---|---|
atkChange | string |
cardsNeeded | number |
gemsNeeded | number |
goldNeeded | number |
hpChange | string |
lvl | number |
Defined in
TestingCardInput
Ƭ TestingCardInput: Object
Type declaration
| Name | Type |
|---|---|
atk? | number |
atkSounds? | string[] |
deathSounds? | string[] |
defenseSounds? | string[] |
description? | string |
hp? | number |
id? | string |
imageAtlasId? | string |
miscSounds? | string[] |
name? | string |
on_after_attack? | ActionTitle[] |
on_attack? | ActionTitle[] |
on_before_attack? | ActionTitle[] |
on_card_state_change? | ActionTitle[] |
on_death? | ActionTitle[] |
on_defense? | ActionTitle[] |
on_game_start? | ActionTitle[] |
on_targeted? | ActionTitle[] |
on_turn? | ActionTitle[] |