Using WH datasets

This commit is contained in:
Melvin Valster
2019-07-16 23:25:41 +02:00
parent 85f9208b4a
commit 7d1b822830
11 changed files with 12679 additions and 62 deletions
+21 -1
View File
@@ -5,6 +5,26 @@ interface TalentTree {
talents: Talent[]
}
interface TalentData {
/** ID for the Talent */
id: number
/** Row for talent. Starts at 0 */
row: number
/** Column for talent. Starts at 0 */
col: number
/** Icon */
icon: string
/** Array of spell IDs */
ranks: number[]
/** Talent dependencies for this talent */
requires: Array<{
/** Talent ID */
id: number
/** Amount of points required in this talent */
qty: number
}>
}
interface Talent {
name: string
row: number
@@ -14,4 +34,4 @@ interface Talent {
prerequisite?: [number, number] | number // [row, column] OR index
}
type TalentClickHandler = (talentId, clickType: 'add' | 'remove') => void
type TalentClickHandler = (specId: number, talentId: number, modifier: 1 | -1) => void