-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b1534c
commit 4d92dcc
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
declare module 'runeterra' { | ||
export class DeckEncoder { | ||
static decode(code: string): Card[]; | ||
|
||
static encode(cards: Card[]): string; | ||
|
||
static encodeNofs(cards: Card[]): number[]; | ||
|
||
static encodeGroup(group: Card[]): number[]; | ||
|
||
static isValidDeck(cards: Card[]): boolean; | ||
|
||
static groupByFactionAndSetSorted(cards: Card[]): Card[][]; | ||
|
||
static MAX_KNOWN_VERSION: number; | ||
} | ||
|
||
export class Card { | ||
code: string; | ||
count: number; | ||
|
||
get set(): number; | ||
|
||
get faction(): Faction; | ||
|
||
get id(): number; | ||
|
||
static from(set: string, faction: string, number: string, count: number): Card; | ||
|
||
static fromCardString(cardString: number): Card; | ||
} | ||
|
||
export class Faction { | ||
shortCode: string; | ||
id: number; | ||
|
||
static fromCode(code: string): Faction; | ||
|
||
static fromID(id: number): Faction; | ||
|
||
static FACTIONS: string[]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters