lol-constants 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/ChampionKeys.d.ts +2 -0
- package/dist/Constants/ChampionKeys.js +8 -0
- package/dist/Constants/ChampionNames.d.ts +2 -0
- package/dist/Constants/ChampionNames.js +8 -0
- package/dist/Constants/ItemKeys.d.ts +2 -0
- package/dist/Constants/ItemKeys.js +8 -0
- package/dist/Constants/ItemNames.d.ts +2 -0
- package/dist/Constants/ItemNames.js +8 -0
- package/dist/Constants/RuneIds.d.ts +2 -0
- package/dist/Constants/RuneIds.js +12 -0
- package/dist/Constants/RuneNames.d.ts +2 -0
- package/dist/Constants/RuneNames.js +8 -0
- package/dist/Constants/StatRuneIds.d.ts +2 -0
- package/dist/Constants/StatRuneIds.js +5 -0
- package/dist/Constants/StatRuneNames.d.ts +2 -0
- package/dist/Constants/StatRuneNames.js +5 -0
- package/dist/Constants/StatRunes.d.ts +9 -9
- package/dist/Constants/StatRunes.js +9 -9
- package/dist/Constants/SummonerIds.d.ts +2 -0
- package/dist/Constants/SummonerIds.js +8 -0
- package/dist/Constants/SummonerKeys.d.ts +2 -0
- package/dist/Constants/SummonerKeys.js +8 -0
- package/dist/Constants/SummonerNames.d.ts +2 -0
- package/dist/Constants/SummonerNames.js +8 -0
- package/dist/Constants/SummonerSpellIds.d.ts +2 -0
- package/dist/Constants/SummonerSpellIds.js +8 -0
- package/dist/Constants/SummonerSpellKeys.d.ts +2 -0
- package/dist/Constants/SummonerSpellKeys.js +8 -0
- package/dist/Constants/SummonerSpellNames.d.ts +2 -0
- package/dist/Constants/SummonerSpellNames.js +8 -0
- package/dist/Constants/TreeRuneIds.d.ts +2 -0
- package/dist/Constants/TreeRuneIds.js +8 -0
- package/dist/Constants/TreeRuneNames.d.ts +2 -0
- package/dist/Constants/TreeRuneNames.js +8 -0
- package/dist/Helpers/generateItemsByName.js +4 -4
- package/dist/Helpers/generateSummonerSpellsByKey.d.ts +1 -0
- package/dist/Helpers/generateSummonerSpellsByKey.js +24 -0
- package/dist/Helpers/generateSummonerSpellsByName.d.ts +1 -0
- package/dist/Helpers/generateSummonerSpellsByName.js +24 -0
- package/dist/Helpers/isChampionKey.d.ts +2 -0
- package/dist/Helpers/isChampionKey.js +10 -0
- package/dist/Helpers/isChampionName.d.ts +2 -0
- package/dist/Helpers/isChampionName.js +10 -0
- package/dist/Helpers/isItemKey.d.ts +2 -0
- package/dist/Helpers/isItemKey.js +10 -0
- package/dist/Helpers/isItemName.d.ts +2 -0
- package/dist/Helpers/isItemName.js +10 -0
- package/dist/Helpers/isRuneId.d.ts +2 -0
- package/dist/Helpers/isRuneId.js +10 -0
- package/dist/Helpers/isRuneName.d.ts +2 -0
- package/dist/Helpers/isRuneName.js +10 -0
- package/dist/Helpers/isSummonerId.d.ts +2 -0
- package/dist/Helpers/isSummonerId.js +10 -0
- package/dist/Helpers/isSummonerKey.d.ts +2 -0
- package/dist/Helpers/isSummonerKey.js +10 -0
- package/dist/Helpers/isSummonerName.d.ts +2 -0
- package/dist/Helpers/isSummonerName.js +10 -0
- package/dist/Helpers/isSummonerSpellId.d.ts +2 -0
- package/dist/Helpers/isSummonerSpellId.js +10 -0
- package/dist/Helpers/isSummonerSpellKey.d.ts +2 -0
- package/dist/Helpers/isSummonerSpellKey.js +10 -0
- package/dist/Helpers/isSummonerSpellName.d.ts +2 -0
- package/dist/Helpers/isSummonerSpellName.js +10 -0
- package/dist/generated/itemByName.json +1 -0
- package/dist/index.d.ts +24 -1
- package/dist/index.js +49 -3
- package/dist/scripts/generate-all.js +4 -4
- package/dist/types/index.d.ts +10 -6
- package/package.json +2 -2
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.ChampionKeys = void 0;
|
7
|
+
const championByKey_json_1 = __importDefault(require("../generated/championByKey.json"));
|
8
|
+
exports.ChampionKeys = (Object.keys(championByKey_json_1.default.data).map(key => key));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.ChampionNames = void 0;
|
7
|
+
const championByName_json_1 = __importDefault(require("../generated/championByName.json"));
|
8
|
+
exports.ChampionNames = (Object.keys(championByName_json_1.default.data).map(name => name));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.ItemKeys = void 0;
|
7
|
+
const item_json_1 = __importDefault(require("../assets/item.json"));
|
8
|
+
exports.ItemKeys = (Object.keys(item_json_1.default.data).map(key => key));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.ItemNames = void 0;
|
7
|
+
const itemByName_json_1 = __importDefault(require("../generated/itemByName.json"));
|
8
|
+
exports.ItemNames = (Object.keys(itemByName_json_1.default.data).map(name => name));
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.RuneIds = void 0;
|
7
|
+
const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
|
8
|
+
const StatRunes_1 = require("./StatRunes");
|
9
|
+
exports.RuneIds = [
|
10
|
+
...Object.keys(runesById_json_1.default).map(id => id),
|
11
|
+
...Object.keys(StatRunes_1.StatRunes).map(id => id),
|
12
|
+
];
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.RuneNames = void 0;
|
7
|
+
const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
|
8
|
+
exports.RuneNames = (Object.keys(runesByName_json_1.default).map(name => name));
|
@@ -1,11 +1,11 @@
|
|
1
1
|
export declare const StatRunes: {
|
2
|
-
readonly '5001': "
|
3
|
-
readonly '5002': "
|
4
|
-
readonly '5003': "
|
5
|
-
readonly '5002f': "
|
6
|
-
readonly '5003f': "
|
7
|
-
readonly '5008f': "
|
8
|
-
readonly '5005': "
|
9
|
-
readonly '5007': "
|
10
|
-
readonly '5008': "
|
2
|
+
readonly '5001': "Defense (HP)";
|
3
|
+
readonly '5002': "Defense (AR)";
|
4
|
+
readonly '5003': "Defense (MR)";
|
5
|
+
readonly '5002f': "Flex (AR)";
|
6
|
+
readonly '5003f': "Flex (MR)";
|
7
|
+
readonly '5008f': "Flex (AF)";
|
8
|
+
readonly '5005': "Offense (AS)";
|
9
|
+
readonly '5007': "Offense (AH)";
|
10
|
+
readonly '5008': "Offense (AF)";
|
11
11
|
};
|
@@ -2,13 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.StatRunes = void 0;
|
4
4
|
exports.StatRunes = {
|
5
|
-
'5001': '
|
6
|
-
'5002': '
|
7
|
-
'5003': '
|
8
|
-
'5002f': '
|
9
|
-
'5003f': '
|
10
|
-
'5008f': '
|
11
|
-
'5005': '
|
12
|
-
'5007': '
|
13
|
-
'5008': '
|
5
|
+
'5001': 'Defense (HP)',
|
6
|
+
'5002': 'Defense (AR)',
|
7
|
+
'5003': 'Defense (MR)',
|
8
|
+
'5002f': 'Flex (AR)',
|
9
|
+
'5003f': 'Flex (MR)',
|
10
|
+
'5008f': 'Flex (AF)',
|
11
|
+
'5005': 'Offense (AS)',
|
12
|
+
'5007': 'Offense (AH)',
|
13
|
+
'5008': 'Offense (AF)',
|
14
14
|
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerIds = void 0;
|
7
|
+
const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
|
8
|
+
exports.SummonerIds = (Object.keys(summoner_json_1.default.data).map(id => id));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerKeys = void 0;
|
7
|
+
const summonerByKey_json_1 = __importDefault(require("../generated/summonerByKey.json"));
|
8
|
+
exports.SummonerKeys = (Object.keys(summonerByKey_json_1.default.data).map(key => key));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerNames = void 0;
|
7
|
+
const summonerByName_json_1 = __importDefault(require("../generated/summonerByName.json"));
|
8
|
+
exports.SummonerNames = (Object.keys(summonerByName_json_1.default.data).map(name => name));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerSpellIds = void 0;
|
7
|
+
const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
|
8
|
+
exports.SummonerSpellIds = (Object.keys(summoner_json_1.default.data).map(id => id));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerSpellKeys = void 0;
|
7
|
+
const summonerByKey_json_1 = __importDefault(require("../generated/summonerByKey.json"));
|
8
|
+
exports.SummonerSpellKeys = (Object.keys(summonerByKey_json_1.default.data).map(key => key));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.SummonerSpellNames = void 0;
|
7
|
+
const summonerByName_json_1 = __importDefault(require("../generated/summonerByName.json"));
|
8
|
+
exports.SummonerSpellNames = (Object.keys(summonerByName_json_1.default.data).map(name => name));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.TreeRuneIds = void 0;
|
7
|
+
const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
|
8
|
+
exports.TreeRuneIds = (Object.keys(runesById_json_1.default).map(id => id));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.TreeRuneNames = void 0;
|
7
|
+
const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
|
8
|
+
exports.TreeRuneNames = (Object.keys(runesByName_json_1.default).map(name => name));
|
@@ -7,19 +7,19 @@ exports.generateItemsByName = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
8
8
|
const item_json_1 = __importDefault(require("../assets/item.json"));
|
9
9
|
function generateItemsByName() {
|
10
|
-
const
|
10
|
+
const itemByName = {
|
11
11
|
data: {},
|
12
12
|
version: '',
|
13
13
|
};
|
14
14
|
let itemKey;
|
15
15
|
for (itemKey in item_json_1.default.data) {
|
16
16
|
const itemData = item_json_1.default.data[itemKey];
|
17
|
-
|
17
|
+
itemByName.data[itemData.name] = {
|
18
18
|
...itemData,
|
19
19
|
key: itemKey,
|
20
20
|
};
|
21
21
|
}
|
22
|
-
|
23
|
-
fs_1.default.writeFileSync(`src/generated/
|
22
|
+
itemByName.version = item_json_1.default.version;
|
23
|
+
fs_1.default.writeFileSync(`src/generated/itemByName.json`, JSON.stringify(itemByName));
|
24
24
|
}
|
25
25
|
exports.generateItemsByName = generateItemsByName;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function generateSummonerSpellsByKey(): void;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.generateSummonerSpellsByKey = void 0;
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
8
|
+
const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
|
9
|
+
function generateSummonerSpellsByKey() {
|
10
|
+
const summonersByKey = {
|
11
|
+
data: {},
|
12
|
+
version: '',
|
13
|
+
};
|
14
|
+
let summonerId;
|
15
|
+
for (summonerId in summoner_json_1.default.data) {
|
16
|
+
const summonerData = summoner_json_1.default.data[summonerId];
|
17
|
+
summonersByKey.data[summonerData.key] = {
|
18
|
+
...summonerData,
|
19
|
+
};
|
20
|
+
}
|
21
|
+
summonersByKey.version = summoner_json_1.default.version;
|
22
|
+
fs_1.default.writeFileSync(`src/generated/summonerByKey.json`, JSON.stringify(summonersByKey));
|
23
|
+
}
|
24
|
+
exports.generateSummonerSpellsByKey = generateSummonerSpellsByKey;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function generateSummonerSpellsByName(): void;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.generateSummonerSpellsByName = void 0;
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
8
|
+
const summoner_json_1 = __importDefault(require("../assets/summoner.json"));
|
9
|
+
function generateSummonerSpellsByName() {
|
10
|
+
const summonersByName = {
|
11
|
+
data: {},
|
12
|
+
version: '',
|
13
|
+
};
|
14
|
+
let summonerId;
|
15
|
+
for (summonerId in summoner_json_1.default.data) {
|
16
|
+
const summonerData = summoner_json_1.default.data[summonerId];
|
17
|
+
summonersByName.data[summonerData.name] = {
|
18
|
+
...summonerData,
|
19
|
+
};
|
20
|
+
}
|
21
|
+
summonersByName.version = summoner_json_1.default.version;
|
22
|
+
fs_1.default.writeFileSync(`src/generated/summonerByName.json`, JSON.stringify(summonersByName));
|
23
|
+
}
|
24
|
+
exports.generateSummonerSpellsByName = generateSummonerSpellsByName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isChampionKey = void 0;
|
4
|
+
const ChampionKeys_1 = require("../Constants/ChampionKeys");
|
5
|
+
function isChampionKey(key) {
|
6
|
+
if (ChampionKeys_1.ChampionKeys.includes(key))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isChampionKey = isChampionKey;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isChampionName = void 0;
|
4
|
+
const ChampionNames_1 = require("../Constants/ChampionNames");
|
5
|
+
function isChampionName(name) {
|
6
|
+
if (ChampionNames_1.ChampionNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isChampionName = isChampionName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isItemKey = void 0;
|
4
|
+
const ItemKeys_1 = require("../Constants/ItemKeys");
|
5
|
+
function isItemKey(key) {
|
6
|
+
if (ItemKeys_1.ItemKeys.includes(key))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isItemKey = isItemKey;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isItemName = void 0;
|
4
|
+
const ItemNames_1 = require("../Constants/ItemNames");
|
5
|
+
function isItemName(name) {
|
6
|
+
if (ItemNames_1.ItemNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isItemName = isItemName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRuneId = void 0;
|
4
|
+
const RuneIds_1 = require("../Constants/RuneIds");
|
5
|
+
function isRuneId(id) {
|
6
|
+
if (RuneIds_1.RuneIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isRuneId = isRuneId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRuneName = void 0;
|
4
|
+
const RuneNames_1 = require("../Constants/RuneNames");
|
5
|
+
function isRuneName(name) {
|
6
|
+
if (RuneNames_1.RuneNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isRuneName = isRuneName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerId = void 0;
|
4
|
+
const SummonerIds_1 = require("../Constants/SummonerIds");
|
5
|
+
function isSummonerId(id) {
|
6
|
+
if (SummonerIds_1.SummonerIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerId = isSummonerId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerKey = void 0;
|
4
|
+
const SummonerKeys_1 = require("../Constants/SummonerKeys");
|
5
|
+
function isSummonerKey(key) {
|
6
|
+
if (SummonerKeys_1.SummonerKeys.includes(key))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerKey = isSummonerKey;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerName = void 0;
|
4
|
+
const SummonerNames_1 = require("../Constants/SummonerNames");
|
5
|
+
function isSummonerName(name) {
|
6
|
+
if (SummonerNames_1.SummonerNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerName = isSummonerName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerSpellId = void 0;
|
4
|
+
const SummonerSpellIds_1 = require("../Constants/SummonerSpellIds");
|
5
|
+
function isSummonerSpellId(id) {
|
6
|
+
if (SummonerSpellIds_1.SummonerSpellIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerSpellId = isSummonerSpellId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerSpellKey = void 0;
|
4
|
+
const SummonerSpellKeys_1 = require("../Constants/SummonerSpellKeys");
|
5
|
+
function isSummonerSpellKey(key) {
|
6
|
+
if (SummonerSpellKeys_1.SummonerSpellKeys.includes(key))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerSpellKey = isSummonerSpellKey;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSummonerSpellName = void 0;
|
4
|
+
const SummonerSpellNames_1 = require("../Constants/SummonerSpellNames");
|
5
|
+
function isSummonerSpellName(name) {
|
6
|
+
if (SummonerSpellNames_1.SummonerSpellNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isSummonerSpellName = isSummonerSpellName;
|