-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.mjs
24 lines (21 loc) · 685 Bytes
/
index.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export {default as Card} from './src/card.mjs';
export {default as Deck} from './src/deck.mjs';
export {default as Faction} from './src/faction.mjs';
export {default as Factions} from './src/factions.mjs';
import DataDragon from './src/data-dragon.mjs';
/**
* Creates a new instance of data dragon client.
* @returns {DataDragon} instance of data dragon.
*/
export function generateDataDragon() {
return new DataDragon();
}
import Deck from './src/deck.mjs';
/**
* Initialize the deck.
* @param {string} code The code to initialize the deck from.
* @returns {Deck} The new instance of the deck.
*/
export default function createDeck(code) {
return Deck.fromCode(code);
}