lol-constants 2.2.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/constants/BuildingTypes.d.ts +6 -0
- package/core/constants/BuildingTypes.js +11 -0
- package/core/constants/DragonTypes.d.ts +11 -0
- package/core/constants/DragonTypes.js +16 -0
- package/core/constants/KillTypes.d.ts +7 -0
- package/core/constants/KillTypes.js +12 -0
- package/core/constants/LaneTypes.d.ts +7 -0
- package/core/constants/LaneTypes.js +12 -0
- package/core/constants/MonsterTypes.d.ts +7 -0
- package/core/constants/MonsterTypes.js +12 -0
- package/core/constants/SkillSlots.d.ts +8 -0
- package/core/constants/SkillSlots.js +13 -0
- package/core/constants/TowerTypes.d.ts +8 -0
- package/core/constants/TowerTypes.js +13 -0
- package/core/constants/WardTypes.d.ts +2 -0
- package/core/constants/WardTypes.js +2 -0
- package/core/index.d.ts +7 -0
- package/core/index.js +7 -0
- package/package.json +1 -1
@@ -0,0 +1,6 @@
|
|
1
|
+
export declare const BuildingTypes: {
|
2
|
+
readonly TOWER_BUILDING: "TOWER_BUILDING";
|
3
|
+
readonly INHIBITOR_BUILDING: "INHIBITOR_BUILDING";
|
4
|
+
};
|
5
|
+
export type BuildingType = typeof BuildingTypes[keyof typeof BuildingTypes];
|
6
|
+
export declare function isBuildingType(value: any): value is BuildingType;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isBuildingType = exports.BuildingTypes = void 0;
|
4
|
+
exports.BuildingTypes = {
|
5
|
+
'TOWER_BUILDING': 'TOWER_BUILDING',
|
6
|
+
'INHIBITOR_BUILDING': 'INHIBITOR_BUILDING',
|
7
|
+
};
|
8
|
+
function isBuildingType(value) {
|
9
|
+
return typeof value == 'string' && value in exports.BuildingTypes;
|
10
|
+
}
|
11
|
+
exports.isBuildingType = isBuildingType;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare const DragonTypes: {
|
2
|
+
readonly EARTH_DRAGON: "EARTH_DRAGON";
|
3
|
+
readonly CHEMTECH_DRAGON: "CHEMTECH_DRAGON";
|
4
|
+
readonly AIR_DRAGON: "AIR_DRAGON";
|
5
|
+
readonly HEXTECH_DRAGON: "HEXTECH_DRAGON";
|
6
|
+
readonly WATER_DRAGON: "WATER_DRAGON";
|
7
|
+
readonly FIRE_DRAGON: "FIRE_DRAGON";
|
8
|
+
readonly ELDER_DRAGON: "ELDER_DRAGON";
|
9
|
+
};
|
10
|
+
export type DragonType = typeof DragonTypes[keyof typeof DragonTypes];
|
11
|
+
export declare function isDragonType(value: any): value is DragonType;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isDragonType = exports.DragonTypes = void 0;
|
4
|
+
exports.DragonTypes = {
|
5
|
+
'EARTH_DRAGON': 'EARTH_DRAGON',
|
6
|
+
'CHEMTECH_DRAGON': 'CHEMTECH_DRAGON',
|
7
|
+
'AIR_DRAGON': 'AIR_DRAGON',
|
8
|
+
'HEXTECH_DRAGON': 'HEXTECH_DRAGON',
|
9
|
+
'WATER_DRAGON': 'WATER_DRAGON',
|
10
|
+
'FIRE_DRAGON': 'FIRE_DRAGON',
|
11
|
+
'ELDER_DRAGON': 'ELDER_DRAGON',
|
12
|
+
};
|
13
|
+
function isDragonType(value) {
|
14
|
+
return typeof value == 'string' && value in exports.DragonTypes;
|
15
|
+
}
|
16
|
+
exports.isDragonType = isDragonType;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const KillTypes: {
|
2
|
+
readonly KILL_FIRST_BLOOD: "KILL_FIRST_BLOOD";
|
3
|
+
readonly KILL_MULTI: "KILL_MULTI";
|
4
|
+
readonly KILL_ACE: "KILL_ACE";
|
5
|
+
};
|
6
|
+
export type KillType = typeof KillTypes[keyof typeof KillTypes];
|
7
|
+
export declare function isKillType(value: any): value is KillType;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isKillType = exports.KillTypes = void 0;
|
4
|
+
exports.KillTypes = {
|
5
|
+
'KILL_FIRST_BLOOD': 'KILL_FIRST_BLOOD',
|
6
|
+
'KILL_MULTI': 'KILL_MULTI',
|
7
|
+
'KILL_ACE': 'KILL_ACE',
|
8
|
+
};
|
9
|
+
function isKillType(value) {
|
10
|
+
return typeof value == 'string' && value in exports.KillTypes;
|
11
|
+
}
|
12
|
+
exports.isKillType = isKillType;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const LaneTypes: {
|
2
|
+
readonly TOP_LANE: "TOP_LANE";
|
3
|
+
readonly MID_LANE: "MID_LANE";
|
4
|
+
readonly BOT_LANE: "BOT_LANE";
|
5
|
+
};
|
6
|
+
export type LaneType = typeof LaneTypes[keyof typeof LaneTypes];
|
7
|
+
export declare function isLaneType(value: any): value is LaneType;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isLaneType = exports.LaneTypes = void 0;
|
4
|
+
exports.LaneTypes = {
|
5
|
+
'TOP_LANE': 'TOP_LANE',
|
6
|
+
'MID_LANE': 'MID_LANE',
|
7
|
+
'BOT_LANE': 'BOT_LANE',
|
8
|
+
};
|
9
|
+
function isLaneType(value) {
|
10
|
+
return typeof value == 'string' && value in exports.LaneTypes;
|
11
|
+
}
|
12
|
+
exports.isLaneType = isLaneType;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const MonsterTypes: {
|
2
|
+
readonly RIFTHERALD: "RIFTHERALD";
|
3
|
+
readonly DRAGON: "DRAGON";
|
4
|
+
readonly BARON_NASHOR: "BARON_NASHOR";
|
5
|
+
};
|
6
|
+
export type MonsterType = typeof MonsterTypes[keyof typeof MonsterTypes];
|
7
|
+
export declare function isMonsterType(value: any): value is MonsterType;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isMonsterType = exports.MonsterTypes = void 0;
|
4
|
+
exports.MonsterTypes = {
|
5
|
+
'RIFTHERALD': 'RIFTHERALD',
|
6
|
+
'DRAGON': 'DRAGON',
|
7
|
+
'BARON_NASHOR': 'BARON_NASHOR',
|
8
|
+
};
|
9
|
+
function isMonsterType(value) {
|
10
|
+
return typeof value == 'string' && value in exports.MonsterTypes;
|
11
|
+
}
|
12
|
+
exports.isMonsterType = isMonsterType;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSkillSlot = exports.SkillSlots = void 0;
|
4
|
+
exports.SkillSlots = {
|
5
|
+
1: 1,
|
6
|
+
2: 2,
|
7
|
+
3: 3,
|
8
|
+
4: 4,
|
9
|
+
};
|
10
|
+
function isSkillSlot(value) {
|
11
|
+
return typeof value == 'number' && value in exports.SkillSlots;
|
12
|
+
}
|
13
|
+
exports.isSkillSlot = isSkillSlot;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const TowerTypes: {
|
2
|
+
readonly OUTER_TURRET: "OUTER_TURRET";
|
3
|
+
readonly INNER_TURRET: "INNER_TURRET";
|
4
|
+
readonly BASE_TURRET: "BASE_TURRET";
|
5
|
+
readonly NEXUS_TURRET: "NEXUS_TURRET";
|
6
|
+
};
|
7
|
+
export type TowerType = typeof TowerTypes[keyof typeof TowerTypes];
|
8
|
+
export declare function isTowerType(value: any): value is TowerType;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTowerType = exports.TowerTypes = void 0;
|
4
|
+
exports.TowerTypes = {
|
5
|
+
'OUTER_TURRET': 'OUTER_TURRET',
|
6
|
+
'INNER_TURRET': 'INNER_TURRET',
|
7
|
+
'BASE_TURRET': 'BASE_TURRET',
|
8
|
+
'NEXUS_TURRET': 'NEXUS_TURRET',
|
9
|
+
};
|
10
|
+
function isTowerType(value) {
|
11
|
+
return typeof value == 'string' && value in exports.TowerTypes;
|
12
|
+
}
|
13
|
+
exports.isTowerType = isTowerType;
|
@@ -2,6 +2,8 @@ export declare const WardTypes: {
|
|
2
2
|
readonly UNDEFINED: "UNDEFINED";
|
3
3
|
readonly YELLOW_TRINKET: "YELLOW_TRINKET";
|
4
4
|
readonly CONTROL_WARD: "CONTROL_WARD";
|
5
|
+
readonly SIGHT_WARD: "SIGHT_WARD";
|
6
|
+
readonly BLUE_TRINKET: "BLUE_TRINKET";
|
5
7
|
};
|
6
8
|
export type WardType = typeof WardTypes[keyof typeof WardTypes];
|
7
9
|
export declare function isWardType(value: any): value is WardType;
|
@@ -5,6 +5,8 @@ exports.WardTypes = {
|
|
5
5
|
'UNDEFINED': 'UNDEFINED',
|
6
6
|
'YELLOW_TRINKET': 'YELLOW_TRINKET',
|
7
7
|
'CONTROL_WARD': 'CONTROL_WARD',
|
8
|
+
'SIGHT_WARD': 'SIGHT_WARD',
|
9
|
+
'BLUE_TRINKET': 'BLUE_TRINKET',
|
8
10
|
};
|
9
11
|
function isWardType(value) {
|
10
12
|
return typeof value == 'string' && value in exports.WardTypes;
|
package/core/index.d.ts
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
+
export * from './constants/BuildingTypes';
|
1
2
|
export * from './constants/DataDragonUrls';
|
3
|
+
export * from './constants/DragonTypes';
|
2
4
|
export * from './constants/GameModes';
|
3
5
|
export * from './constants/GameTypes';
|
6
|
+
export * from './constants/KillTypes';
|
4
7
|
export * from './constants/Lanes';
|
8
|
+
export * from './constants/LaneTypes';
|
5
9
|
export * from './constants/Levels';
|
6
10
|
export * from './constants/Locales';
|
11
|
+
export * from './constants/MonsterTypes';
|
7
12
|
export * from './constants/PlatformIds';
|
8
13
|
export * from './constants/Positions';
|
9
14
|
export * from './constants/Queues';
|
@@ -13,6 +18,8 @@ export * from './constants/Regions';
|
|
13
18
|
export * from './constants/RelativeTeams';
|
14
19
|
export * from './constants/Roles';
|
15
20
|
export * from './constants/Skills';
|
21
|
+
export * from './constants/SkillSlots';
|
22
|
+
export * from './constants/TowerTypes';
|
16
23
|
export * from './constants/WardTypes';
|
17
24
|
export * from './constants/Champions/ChampionIds';
|
18
25
|
export * from './constants/Champions/ChampionIdsByName';
|
package/core/index.js
CHANGED
@@ -15,12 +15,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
// # constants
|
18
|
+
__exportStar(require("./constants/BuildingTypes"), exports);
|
18
19
|
__exportStar(require("./constants/DataDragonUrls"), exports);
|
20
|
+
__exportStar(require("./constants/DragonTypes"), exports);
|
19
21
|
__exportStar(require("./constants/GameModes"), exports);
|
20
22
|
__exportStar(require("./constants/GameTypes"), exports);
|
23
|
+
__exportStar(require("./constants/KillTypes"), exports);
|
21
24
|
__exportStar(require("./constants/Lanes"), exports);
|
25
|
+
__exportStar(require("./constants/LaneTypes"), exports);
|
22
26
|
__exportStar(require("./constants/Levels"), exports);
|
23
27
|
__exportStar(require("./constants/Locales"), exports);
|
28
|
+
__exportStar(require("./constants/MonsterTypes"), exports);
|
24
29
|
__exportStar(require("./constants/PlatformIds"), exports);
|
25
30
|
__exportStar(require("./constants/Positions"), exports);
|
26
31
|
__exportStar(require("./constants/Queues"), exports);
|
@@ -30,6 +35,8 @@ __exportStar(require("./constants/Regions"), exports);
|
|
30
35
|
__exportStar(require("./constants/RelativeTeams"), exports);
|
31
36
|
__exportStar(require("./constants/Roles"), exports);
|
32
37
|
__exportStar(require("./constants/Skills"), exports);
|
38
|
+
__exportStar(require("./constants/SkillSlots"), exports);
|
39
|
+
__exportStar(require("./constants/TowerTypes"), exports);
|
33
40
|
__exportStar(require("./constants/WardTypes"), exports);
|
34
41
|
// ## Champions
|
35
42
|
__exportStar(require("./constants/Champions/ChampionIds"), exports);
|
package/package.json
CHANGED