@wfcd/profile-parser 1.5.0 → 2.0.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.
Files changed (135) hide show
  1. package/dist/Ability-D1F1s_19.js +25 -0
  2. package/dist/Ability-DzKgEG5R.d.ts +19 -0
  3. package/dist/Ability.d.ts +2 -0
  4. package/dist/Ability.js +3 -0
  5. package/dist/ArchonCrystal.d.ts +23 -0
  6. package/dist/ArchonCrystal.js +29 -0
  7. package/dist/ChallengeProgress-B8Kv32oi.d.ts +20 -0
  8. package/dist/ChallengeProgress-DKKtijWw.js +26 -0
  9. package/dist/ChallengeProgress.d.ts +2 -0
  10. package/dist/ChallengeProgress.js +3 -0
  11. package/dist/Enemy-BqxhFdkB.js +44 -0
  12. package/dist/Enemy-toy1Spyi.d.ts +44 -0
  13. package/dist/Enemy.d.ts +2 -0
  14. package/dist/Enemy.js +3 -0
  15. package/dist/Intrinsics-CqFOpLxp.js +67 -0
  16. package/dist/Intrinsics-azrsOZJd.d.ts +67 -0
  17. package/dist/Intrinsics.d.ts +2 -0
  18. package/dist/Intrinsics.js +3 -0
  19. package/dist/ItemConfig-7as-gjPG.d.ts +51 -0
  20. package/dist/ItemConfig-uU36aJFJ.js +50 -0
  21. package/dist/ItemConfig.d.ts +4 -0
  22. package/dist/ItemConfig.js +5 -0
  23. package/dist/LoadOutInventory-BsPRtXfG.d.ts +53 -0
  24. package/dist/LoadOutInventory-CPVZJ_W5.js +52 -0
  25. package/dist/LoadOutInventory.d.ts +8 -0
  26. package/dist/LoadOutInventory.js +9 -0
  27. package/dist/LoadOutItem-B_6G9dXC.js +127 -0
  28. package/dist/LoadOutItem-BlRFZMNd.d.ts +120 -0
  29. package/dist/LoadOutItem.d.ts +6 -0
  30. package/dist/LoadOutItem.js +7 -0
  31. package/dist/LoadOutPreset-BshJF0LH.d.ts +83 -0
  32. package/dist/LoadOutPreset-CMbZo-II.js +83 -0
  33. package/dist/LoadOutPreset.d.ts +2 -0
  34. package/dist/LoadOutPreset.js +4 -0
  35. package/dist/Mission-BZgLMluh.d.ts +53 -0
  36. package/dist/Mission-D2n1i5R2.js +55 -0
  37. package/dist/Mission.d.ts +2 -0
  38. package/dist/Mission.js +3 -0
  39. package/dist/OperatorLoadOuts-B8bEy2dp.js +76 -0
  40. package/dist/OperatorLoadOuts-Dk2uMwby.d.ts +75 -0
  41. package/dist/OperatorLoadOuts.d.ts +4 -0
  42. package/dist/OperatorLoadOuts.js +5 -0
  43. package/dist/Polarity--RYq3iwF.js +28 -0
  44. package/dist/Polarity-DDWqEVm2.d.ts +26 -0
  45. package/dist/Polarity.d.ts +2 -0
  46. package/dist/Polarity.js +3 -0
  47. package/dist/Profile-WWZ2BDf0.js +193 -0
  48. package/dist/Profile-rva_Xss5.d.ts +212 -0
  49. package/dist/Profile.d.ts +15 -0
  50. package/dist/Profile.js +16 -0
  51. package/dist/ProfileParser.d.ts +71 -0
  52. package/dist/ProfileParser.js +71 -0
  53. package/dist/Pvp-Cb1KNKvw.d.ts +36 -0
  54. package/dist/Pvp-hyzYfVBB.js +36 -0
  55. package/dist/Pvp.d.ts +2 -0
  56. package/dist/Pvp.js +3 -0
  57. package/dist/Race-5Q0StEkE.js +35 -0
  58. package/dist/Race-DCxzjMpC.d.ts +32 -0
  59. package/dist/Race.d.ts +2 -0
  60. package/dist/Race.js +3 -0
  61. package/dist/Scan-BWfZiLoW.d.ts +27 -0
  62. package/dist/Scan-Dlrv6viG.js +27 -0
  63. package/dist/Scan.d.ts +2 -0
  64. package/dist/Scan.js +3 -0
  65. package/dist/Skin-BbUkegH1.d.ts +28 -0
  66. package/dist/Skin-D6v6jC9U.js +36 -0
  67. package/dist/Skin.d.ts +2 -0
  68. package/dist/Skin.js +4 -0
  69. package/dist/Stats-Bm1bpQe5.js +305 -0
  70. package/dist/Stats-DtkR2w1A.d.ts +325 -0
  71. package/dist/Stats.d.ts +9 -0
  72. package/dist/Stats.js +10 -0
  73. package/dist/Syndicate-CjUKKAsk.js +33 -0
  74. package/dist/Syndicate-FSUt1PP5.d.ts +33 -0
  75. package/dist/Syndicate.d.ts +2 -0
  76. package/dist/Syndicate.js +3 -0
  77. package/dist/Utils-C3kZCO6a.js +60 -0
  78. package/dist/Utils-C7BZqK4e.d.ts +37 -0
  79. package/dist/Utils.d.ts +2 -0
  80. package/dist/Utils.js +3 -0
  81. package/dist/Weapon-4KlXEHQF.js +64 -0
  82. package/dist/Weapon-DAJp-nbn.d.ts +32 -0
  83. package/dist/Weapon.d.ts +2 -0
  84. package/dist/Weapon.js +3 -0
  85. package/dist/XpInfo-CXC3I0NQ.js +35 -0
  86. package/dist/XpInfo-ChJ_lJaH.d.ts +34 -0
  87. package/dist/XpInfo.d.ts +2 -0
  88. package/dist/XpInfo.js +4 -0
  89. package/package.json +34 -32
  90. package/src/Ability.js +0 -22
  91. package/src/ArchonCrystal.js +0 -26
  92. package/src/ChallengeProgress.js +0 -23
  93. package/src/Enemy.js +0 -47
  94. package/src/Intrinsics.js +0 -77
  95. package/src/ItemConfig.js +0 -52
  96. package/src/LoadOutInventory.js +0 -53
  97. package/src/LoadOutItem.js +0 -155
  98. package/src/LoadOutPreset.js +0 -90
  99. package/src/Mission.js +0 -58
  100. package/src/OperatorLoadOuts.js +0 -77
  101. package/src/Polarity.js +0 -25
  102. package/src/Profile.js +0 -213
  103. package/src/ProfileParser.js +0 -50
  104. package/src/Pvp.js +0 -35
  105. package/src/Race.js +0 -33
  106. package/src/Scan.js +0 -22
  107. package/src/Skin.js +0 -33
  108. package/src/Stats.js +0 -340
  109. package/src/Syndicate.js +0 -34
  110. package/src/Utils.js +0 -66
  111. package/src/Weapon.js +0 -59
  112. package/src/XpInfo.js +0 -35
  113. package/types/Ability.d.ts +0 -20
  114. package/types/ArchonCrystal.d.ts +0 -22
  115. package/types/ChallengeProgress.d.ts +0 -21
  116. package/types/Enemy.d.ts +0 -41
  117. package/types/Intrinsics.d.ts +0 -66
  118. package/types/ItemConfig.d.ts +0 -21
  119. package/types/LoadOutInventory.d.ts +0 -45
  120. package/types/LoadOutItem.d.ts +0 -92
  121. package/types/LoadOutPreset.d.ts +0 -45
  122. package/types/Mission.d.ts +0 -35
  123. package/types/OperatorLoadOuts.d.ts +0 -35
  124. package/types/Polarity.d.ts +0 -21
  125. package/types/Profile.d.ts +0 -154
  126. package/types/ProfileParser.d.ts +0 -41
  127. package/types/Pvp.d.ts +0 -31
  128. package/types/Race.d.ts +0 -28
  129. package/types/Scan.d.ts +0 -20
  130. package/types/Skin.d.ts +0 -19
  131. package/types/Stats.d.ts +0 -255
  132. package/types/Syndicate.d.ts +0 -26
  133. package/types/Utils.d.ts +0 -3
  134. package/types/Weapon.d.ts +0 -51
  135. package/types/XpInfo.d.ts +0 -28
@@ -0,0 +1,25 @@
1
+ //#region src/Ability.ts
2
+ /**
3
+ * Represents a players used ability
4
+ * @module
5
+ */
6
+ var Ability = class {
7
+ uniqueName;
8
+ used;
9
+ /**
10
+ * @param ability The ability
11
+ */
12
+ constructor(ability) {
13
+ /**
14
+ * The ability unique name
15
+ */
16
+ this.uniqueName = ability.type;
17
+ /**
18
+ * How many time the ability was used in the player's lifetime
19
+ */
20
+ this.used = ability.used;
21
+ }
22
+ };
23
+
24
+ //#endregion
25
+ export { Ability };
@@ -0,0 +1,19 @@
1
+ //#region src/Ability.d.ts
2
+ interface RawAbility {
3
+ type: string;
4
+ used: number;
5
+ }
6
+ /**
7
+ * Represents a players used ability
8
+ * @module
9
+ */
10
+ declare class Ability {
11
+ uniqueName: string;
12
+ used: number;
13
+ /**
14
+ * @param ability The ability
15
+ */
16
+ constructor(ability: RawAbility);
17
+ }
18
+ //#endregion
19
+ export { Ability, RawAbility };
@@ -0,0 +1,2 @@
1
+ import { Ability, RawAbility } from "./Ability-DzKgEG5R.js";
2
+ export { RawAbility, Ability as default };
@@ -0,0 +1,3 @@
1
+ import { Ability } from "./Ability-D1F1s_19.js";
2
+
3
+ export { Ability as default };
@@ -0,0 +1,23 @@
1
+ import { Locale } from "warframe-worldstate-data";
2
+
3
+ //#region src/ArchonCrystal.d.ts
4
+ interface RawArchonCrystal {
5
+ Color: string;
6
+ UpgradeType: string;
7
+ }
8
+ /**
9
+ * Represents an Archon shard
10
+ * @module
11
+ */
12
+ declare class ArchonCrystal {
13
+ color: string;
14
+ modifier: string;
15
+ /**
16
+ *
17
+ * @param crystal The archon crystal object
18
+ * @param locale The locale to get translations in
19
+ */
20
+ constructor(crystal: RawArchonCrystal, locale?: Locale);
21
+ }
22
+ //#endregion
23
+ export { ArchonCrystal as default };
@@ -0,0 +1,29 @@
1
+ import { archonShardColor, archonShardUpgradeType } from "warframe-worldstate-data/utilities";
2
+
3
+ //#region src/ArchonCrystal.ts
4
+ /**
5
+ * Represents an Archon shard
6
+ * @module
7
+ */
8
+ var ArchonCrystal = class {
9
+ color;
10
+ modifier;
11
+ /**
12
+ *
13
+ * @param crystal The archon crystal object
14
+ * @param locale The locale to get translations in
15
+ */
16
+ constructor(crystal, locale = "en") {
17
+ /**
18
+ * Archon shard color
19
+ */
20
+ this.color = archonShardColor(crystal.Color, locale);
21
+ /**
22
+ * Archon shard modifier
23
+ */
24
+ this.modifier = archonShardUpgradeType(crystal.Color, crystal.UpgradeType, locale);
25
+ }
26
+ };
27
+
28
+ //#endregion
29
+ export { ArchonCrystal as default };
@@ -0,0 +1,20 @@
1
+ //#region src/ChallengeProgress.d.ts
2
+ interface RawChallengeProgress {
3
+ Name: string;
4
+ Progress: number;
5
+ }
6
+ /**
7
+ * Player completed or in progress challenges
8
+ * @module
9
+ */
10
+ declare class ChallengeProgress {
11
+ name: string;
12
+ progress: number;
13
+ /**
14
+ *
15
+ * @param challenge The challenge object to parse
16
+ */
17
+ constructor(challenge: RawChallengeProgress);
18
+ }
19
+ //#endregion
20
+ export { ChallengeProgress, RawChallengeProgress };
@@ -0,0 +1,26 @@
1
+ //#region src/ChallengeProgress.ts
2
+ /**
3
+ * Player completed or in progress challenges
4
+ * @module
5
+ */
6
+ var ChallengeProgress = class {
7
+ name;
8
+ progress;
9
+ /**
10
+ *
11
+ * @param challenge The challenge object to parse
12
+ */
13
+ constructor(challenge) {
14
+ /**
15
+ * Name of the challenge
16
+ */
17
+ this.name = challenge.Name;
18
+ /**
19
+ * Progress towards completing this challenge
20
+ */
21
+ this.progress = challenge.Progress;
22
+ }
23
+ };
24
+
25
+ //#endregion
26
+ export { ChallengeProgress };
@@ -0,0 +1,2 @@
1
+ import { ChallengeProgress, RawChallengeProgress } from "./ChallengeProgress-B8Kv32oi.js";
2
+ export { RawChallengeProgress, ChallengeProgress as default };
@@ -0,0 +1,3 @@
1
+ import { ChallengeProgress } from "./ChallengeProgress-DKKtijWw.js";
2
+
3
+ export { ChallengeProgress as default };
@@ -0,0 +1,44 @@
1
+ //#region src/Enemy.ts
2
+ /**
3
+ * An enemy killed/executed by player
4
+ */
5
+ var Enemy = class {
6
+ /**
7
+ * Enemy's unique name
8
+ */
9
+ uniqueName;
10
+ /**
11
+ * How many times the player has killed this enemy type
12
+ */
13
+ kills;
14
+ /**
15
+ * The amount of kills that were headshots
16
+ */
17
+ headshots;
18
+ /**
19
+ * The amount of kills that were finishers
20
+ */
21
+ executions;
22
+ /**
23
+ * The amount of kills that were assits
24
+ */
25
+ assists;
26
+ /**
27
+ * How many times this enemy type has killed the player
28
+ */
29
+ deaths;
30
+ /**
31
+ * @param enemy The enemy
32
+ */
33
+ constructor(enemy) {
34
+ this.uniqueName = enemy.type;
35
+ this.kills = enemy.kills;
36
+ this.headshots = enemy.headshots;
37
+ this.executions = enemy.executions;
38
+ this.assists = enemy.assists;
39
+ this.deaths = enemy.deaths;
40
+ }
41
+ };
42
+
43
+ //#endregion
44
+ export { Enemy };
@@ -0,0 +1,44 @@
1
+ //#region src/Enemy.d.ts
2
+ interface RawEnemy {
3
+ type: string;
4
+ kills: number;
5
+ headshots: number;
6
+ executions: number;
7
+ assists: number;
8
+ deaths: number;
9
+ }
10
+ /**
11
+ * An enemy killed/executed by player
12
+ */
13
+ declare class Enemy {
14
+ /**
15
+ * Enemy's unique name
16
+ */
17
+ uniqueName: string;
18
+ /**
19
+ * How many times the player has killed this enemy type
20
+ */
21
+ kills: number;
22
+ /**
23
+ * The amount of kills that were headshots
24
+ */
25
+ headshots: number;
26
+ /**
27
+ * The amount of kills that were finishers
28
+ */
29
+ executions: number;
30
+ /**
31
+ * The amount of kills that were assits
32
+ */
33
+ assists: number;
34
+ /**
35
+ * How many times this enemy type has killed the player
36
+ */
37
+ deaths: number;
38
+ /**
39
+ * @param enemy The enemy
40
+ */
41
+ constructor(enemy: RawEnemy);
42
+ }
43
+ //#endregion
44
+ export { Enemy, RawEnemy };
@@ -0,0 +1,2 @@
1
+ import { Enemy, RawEnemy } from "./Enemy-toy1Spyi.js";
2
+ export { RawEnemy, Enemy as default };
package/dist/Enemy.js ADDED
@@ -0,0 +1,3 @@
1
+ import { Enemy } from "./Enemy-BqxhFdkB.js";
2
+
3
+ export { Enemy as default };
@@ -0,0 +1,67 @@
1
+ //#region src/Intrinsics.ts
2
+ /**
3
+ * Player's intrinsics ranks
4
+ * @module
5
+ */
6
+ var Intrinsics = class {
7
+ /**
8
+ * Intrinsic points for railjack
9
+ */
10
+ railjack;
11
+ /**
12
+ * Railjack engineering rank
13
+ */
14
+ engineering;
15
+ /**
16
+ * Railjack gunnery rank
17
+ */
18
+ gunnery;
19
+ /**
20
+ * Railjack piloting rank
21
+ */
22
+ piloting;
23
+ /**
24
+ * Railjack tactical rank
25
+ */
26
+ tactical;
27
+ /**
28
+ * Railjack command rank
29
+ */
30
+ command;
31
+ /**
32
+ * Intrinsic points for railjack
33
+ */
34
+ drifter;
35
+ /**
36
+ * Drifter riding rank
37
+ */
38
+ riding;
39
+ /**
40
+ * Drifter combat rank
41
+ */
42
+ combat;
43
+ /**
44
+ * Drifter opportunity rank
45
+ */
46
+ opportunity;
47
+ /**
48
+ * Drifter endurance rank
49
+ */
50
+ endurance;
51
+ constructor(skills) {
52
+ this.railjack = Math.floor((skills.LPP_SPACE ?? 0) / 1e3);
53
+ this.engineering = skills.LPS_ENGINEERING ?? 0;
54
+ this.gunnery = skills.LPS_GUNNERY ?? 0;
55
+ this.piloting = skills.LPS_PILOTING ?? 0;
56
+ this.tactical = skills.LPS_TACTICAL ?? 0;
57
+ this.command = skills.LPS_COMMAND ?? 0;
58
+ this.drifter = Math.floor((skills.LPP_DRIFTER ?? 0) / 1e3);
59
+ this.riding = skills.LPS_DRIFT_RIDING ?? 0;
60
+ this.combat = skills.LPS_DRIFT_COMBAT ?? 0;
61
+ this.opportunity = skills.LPS_DRIFT_OPPORTUNITY ?? 0;
62
+ this.endurance = skills.LPS_DRIFT_ENDURANCE ?? 0;
63
+ }
64
+ };
65
+
66
+ //#endregion
67
+ export { Intrinsics };
@@ -0,0 +1,67 @@
1
+ //#region src/Intrinsics.d.ts
2
+ interface RawIntrinsics {
3
+ LPS_ENGINEERING?: number;
4
+ LPS_GUNNERY?: number;
5
+ LPS_PILOTING?: number;
6
+ LPS_TACTICAL?: number;
7
+ LPS_COMMAND?: number;
8
+ LPP_DRIFTER?: number;
9
+ LPS_DRIFT_RIDING?: number;
10
+ LPS_DRIFT_COMBAT?: number;
11
+ LPS_DRIFT_OPPORTUNITY?: number;
12
+ LPS_DRIFT_ENDURANCE?: number;
13
+ LPP_SPACE?: number;
14
+ }
15
+ /**
16
+ * Player's intrinsics ranks
17
+ * @module
18
+ */
19
+ declare class Intrinsics {
20
+ /**
21
+ * Intrinsic points for railjack
22
+ */
23
+ railjack: number;
24
+ /**
25
+ * Railjack engineering rank
26
+ */
27
+ engineering: number;
28
+ /**
29
+ * Railjack gunnery rank
30
+ */
31
+ gunnery: number;
32
+ /**
33
+ * Railjack piloting rank
34
+ */
35
+ piloting: number;
36
+ /**
37
+ * Railjack tactical rank
38
+ */
39
+ tactical: number;
40
+ /**
41
+ * Railjack command rank
42
+ */
43
+ command: number;
44
+ /**
45
+ * Intrinsic points for railjack
46
+ */
47
+ drifter: number;
48
+ /**
49
+ * Drifter riding rank
50
+ */
51
+ riding: number;
52
+ /**
53
+ * Drifter combat rank
54
+ */
55
+ combat: number;
56
+ /**
57
+ * Drifter opportunity rank
58
+ */
59
+ opportunity: number;
60
+ /**
61
+ * Drifter endurance rank
62
+ */
63
+ endurance: number;
64
+ constructor(skills: RawIntrinsics);
65
+ }
66
+ //#endregion
67
+ export { Intrinsics, RawIntrinsics };
@@ -0,0 +1,2 @@
1
+ import { Intrinsics, RawIntrinsics } from "./Intrinsics-azrsOZJd.js";
2
+ export { RawIntrinsics, Intrinsics as default };
@@ -0,0 +1,3 @@
1
+ import { Intrinsics } from "./Intrinsics-CqFOpLxp.js";
2
+
3
+ export { Intrinsics as default };
@@ -0,0 +1,51 @@
1
+ import { Skin } from "./Skin-BbUkegH1.js";
2
+ import { ProfileRawColors } from "./Utils-C7BZqK4e.js";
3
+ import { ColorMap } from "@wfcd/items";
4
+ import { Locale } from "warframe-worldstate-data";
5
+
6
+ //#region src/ItemConfig.d.ts
7
+ interface RawItemConfig {
8
+ Skins?: string[];
9
+ PvpUpgrades?: string[];
10
+ pricol?: ProfileRawColors;
11
+ sigcol?: ProfileRawColors;
12
+ attcol?: ProfileRawColors;
13
+ syancol?: ProfileRawColors;
14
+ }
15
+ /**
16
+ * Item customizations such as colors and applied skins
17
+ * @module
18
+ */
19
+ declare class ItemConfig {
20
+ /**
21
+ * Array of unique names for the skins applied to item
22
+ */
23
+ skins?: Skin[];
24
+ /**
25
+ * Array of PVP unique name upgrades applied
26
+ */
27
+ conclaveUpgrades?: string[];
28
+ /**
29
+ * Primary colors applied to item if they exist
30
+ */
31
+ primaryColor?: ColorMap;
32
+ /**
33
+ * Sigil colors applied to item if they exist
34
+ */
35
+ sigilColor?: ColorMap;
36
+ /**
37
+ * Attachment colors applied to item if they exist
38
+ */
39
+ attachmentsColor?: ColorMap;
40
+ /**
41
+ * Syandana colors applied to item if they exist
42
+ */
43
+ syandanaColor?: ColorMap;
44
+ /**
45
+ *
46
+ * @param config The configuration
47
+ */
48
+ constructor(config: RawItemConfig, locale?: Locale);
49
+ }
50
+ //#endregion
51
+ export { ItemConfig, RawItemConfig };
@@ -0,0 +1,50 @@
1
+ import { mapToHex } from "./Utils-C3kZCO6a.js";
2
+ import { Skin } from "./Skin-D6v6jC9U.js";
3
+ import { colors } from "@wfcd/items/utilities";
4
+
5
+ //#region src/ItemConfig.ts
6
+ /**
7
+ * Item customizations such as colors and applied skins
8
+ * @module
9
+ */
10
+ var ItemConfig = class {
11
+ /**
12
+ * Array of unique names for the skins applied to item
13
+ */
14
+ skins;
15
+ /**
16
+ * Array of PVP unique name upgrades applied
17
+ */
18
+ conclaveUpgrades;
19
+ /**
20
+ * Primary colors applied to item if they exist
21
+ */
22
+ primaryColor;
23
+ /**
24
+ * Sigil colors applied to item if they exist
25
+ */
26
+ sigilColor;
27
+ /**
28
+ * Attachment colors applied to item if they exist
29
+ */
30
+ attachmentsColor;
31
+ /**
32
+ * Syandana colors applied to item if they exist
33
+ */
34
+ syandanaColor;
35
+ /**
36
+ *
37
+ * @param config The configuration
38
+ */
39
+ constructor(config, locale = "en") {
40
+ this.skins = config.Skins?.filter(Boolean).map((s) => new Skin({ ItemType: s }, locale));
41
+ if (config.PvpUpgrades) this.conclaveUpgrades = config.PvpUpgrades;
42
+ if (config.pricol) this.primaryColor = colors.mapColors(mapToHex(config.pricol));
43
+ if (config.sigcol) this.sigilColor = colors.mapColors(mapToHex(config.sigcol));
44
+ if (config.attcol) this.attachmentsColor = colors.mapColors(mapToHex(config.attcol));
45
+ if (config.syancol) this.syandanaColor = colors.mapColors(mapToHex(config.syancol));
46
+ }
47
+ };
48
+
49
+ //#endregion
50
+ export { ItemConfig };
@@ -0,0 +1,4 @@
1
+ import "./Skin-BbUkegH1.js";
2
+ import "./Utils-C7BZqK4e.js";
3
+ import { ItemConfig, RawItemConfig } from "./ItemConfig-7as-gjPG.js";
4
+ export { RawItemConfig, ItemConfig as default };
@@ -0,0 +1,5 @@
1
+ import "./Utils-C3kZCO6a.js";
2
+ import "./Skin-D6v6jC9U.js";
3
+ import { ItemConfig } from "./ItemConfig-uU36aJFJ.js";
4
+
5
+ export { ItemConfig as default };
@@ -0,0 +1,53 @@
1
+ import { RawSkin, Skin } from "./Skin-BbUkegH1.js";
2
+ import { LoadOutItem, RawLoadOutItem } from "./LoadOutItem-BlRFZMNd.js";
3
+ import { RawXpItem, XpInfo } from "./XpInfo-ChJ_lJaH.js";
4
+ import { Locale } from "warframe-worldstate-data";
5
+
6
+ //#region src/LoadOutInventory.d.ts
7
+ interface RawLoadOut {
8
+ WeaponSkins: RawSkin[];
9
+ Suits: RawLoadOutItem[];
10
+ Pistols?: RawLoadOutItem[];
11
+ LongGuns?: RawLoadOutItem[];
12
+ Melee?: RawLoadOutItem[];
13
+ XPInfo: RawXpItem[];
14
+ }
15
+ /**
16
+ * Player loudout
17
+ * @module
18
+ */
19
+ declare class LoadOutInventory {
20
+ /**
21
+ * Skins applied to weapons
22
+ */
23
+ weaponSkins: Skin[];
24
+ /**
25
+ * An array of the player's currently equiped Warframe (or powersuits)
26
+ */
27
+ suits: LoadOutItem[];
28
+ /**
29
+ * An array of the player's currently equiped secondary weapon
30
+ */
31
+ secondary?: LoadOutItem[];
32
+ /**
33
+ * An array of the player's currently equiped primary weapon
34
+ */
35
+ primary?: LoadOutItem[];
36
+ /**
37
+ * An array of the player's currently equiped melee weapon
38
+ */
39
+ melee?: LoadOutItem[];
40
+ /**
41
+ * Items that have counted towards the players mastery rank
42
+ */
43
+ xpInfo: XpInfo[];
44
+ /**
45
+ *
46
+ * @param item The loadout data
47
+ * @param locale The locale to return loudout items in. Default is en
48
+ * @param withItem Whether or not to include items
49
+ */
50
+ constructor(item: RawLoadOut, locale?: Locale, withItem?: boolean);
51
+ }
52
+ //#endregion
53
+ export { LoadOutInventory, RawLoadOut };
@@ -0,0 +1,52 @@
1
+ import { Skin } from "./Skin-D6v6jC9U.js";
2
+ import { LoadOutItem } from "./LoadOutItem-B_6G9dXC.js";
3
+ import { XpInfo } from "./XpInfo-CXC3I0NQ.js";
4
+
5
+ //#region src/LoadOutInventory.ts
6
+ /**
7
+ * Player loudout
8
+ * @module
9
+ */
10
+ var LoadOutInventory = class {
11
+ /**
12
+ * Skins applied to weapons
13
+ */
14
+ weaponSkins;
15
+ /**
16
+ * An array of the player's currently equiped Warframe (or powersuits)
17
+ */
18
+ suits;
19
+ /**
20
+ * An array of the player's currently equiped secondary weapon
21
+ */
22
+ secondary;
23
+ /**
24
+ * An array of the player's currently equiped primary weapon
25
+ */
26
+ primary;
27
+ /**
28
+ * An array of the player's currently equiped melee weapon
29
+ */
30
+ melee;
31
+ /**
32
+ * Items that have counted towards the players mastery rank
33
+ */
34
+ xpInfo;
35
+ /**
36
+ *
37
+ * @param item The loadout data
38
+ * @param locale The locale to return loudout items in. Default is en
39
+ * @param withItem Whether or not to include items
40
+ */
41
+ constructor(item, locale = "en", withItem = false) {
42
+ this.weaponSkins = item.WeaponSkins.map((s) => new Skin(s, locale));
43
+ this.suits = item.Suits.map((s) => new LoadOutItem(s, locale));
44
+ this.secondary = item.Pistols?.map((p) => new LoadOutItem(p, locale));
45
+ this.primary = item.LongGuns?.map((lg) => new LoadOutItem(lg, locale));
46
+ this.melee = item.Melee?.map((m) => new LoadOutItem(m, locale));
47
+ this.xpInfo = item.XPInfo.map((xp) => new XpInfo(xp, locale, withItem));
48
+ }
49
+ };
50
+
51
+ //#endregion
52
+ export { LoadOutInventory };
@@ -0,0 +1,8 @@
1
+ import "./Skin-BbUkegH1.js";
2
+ import "./Utils-C7BZqK4e.js";
3
+ import "./ItemConfig-7as-gjPG.js";
4
+ import "./Polarity-DDWqEVm2.js";
5
+ import "./LoadOutItem-BlRFZMNd.js";
6
+ import "./XpInfo-ChJ_lJaH.js";
7
+ import { LoadOutInventory, RawLoadOut } from "./LoadOutInventory-BsPRtXfG.js";
8
+ export { RawLoadOut, LoadOutInventory as default };
@@ -0,0 +1,9 @@
1
+ import "./Utils-C3kZCO6a.js";
2
+ import "./Skin-D6v6jC9U.js";
3
+ import "./ItemConfig-uU36aJFJ.js";
4
+ import "./Polarity--RYq3iwF.js";
5
+ import "./LoadOutItem-B_6G9dXC.js";
6
+ import "./XpInfo-CXC3I0NQ.js";
7
+ import { LoadOutInventory } from "./LoadOutInventory-CPVZJ_W5.js";
8
+
9
+ export { LoadOutInventory as default };