@wfcd/profile-parser 2.0.11 → 2.0.12

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 (83) hide show
  1. package/dist/Ability.d.mts +18 -1
  2. package/dist/Ability.mjs +23 -1
  3. package/dist/ChallengeProgress.d.mts +19 -1
  4. package/dist/ChallengeProgress.mjs +24 -1
  5. package/dist/Enemy.d.mts +43 -1
  6. package/dist/Enemy.mjs +42 -1
  7. package/dist/Intrinsics.d.mts +66 -1
  8. package/dist/Intrinsics.mjs +65 -1
  9. package/dist/ItemConfig.d.mts +50 -3
  10. package/dist/ItemConfig.mjs +48 -3
  11. package/dist/LoadOutInventory.d.mts +52 -6
  12. package/dist/LoadOutInventory.mjs +50 -7
  13. package/dist/LoadOutItem.d.mts +119 -4
  14. package/dist/LoadOutItem.mjs +125 -5
  15. package/dist/LoadOutPreset.d.mts +82 -1
  16. package/dist/LoadOutPreset.mjs +81 -2
  17. package/dist/Mission.d.mts +52 -1
  18. package/dist/Mission.mjs +53 -1
  19. package/dist/OperatorLoadOuts.d.mts +80 -3
  20. package/dist/OperatorLoadOuts.mjs +74 -3
  21. package/dist/Polarity.d.mts +25 -1
  22. package/dist/Polarity.mjs +26 -1
  23. package/dist/Profile.d.mts +10 -14
  24. package/dist/Profile.mjs +7 -13
  25. package/dist/ProfileParser.d.mts +5 -11
  26. package/dist/ProfileParser.mjs +2 -13
  27. package/dist/Pvp.d.mts +35 -1
  28. package/dist/Pvp.mjs +34 -1
  29. package/dist/Race.d.mts +31 -1
  30. package/dist/Race.mjs +33 -1
  31. package/dist/Scan.d.mts +26 -1
  32. package/dist/Scan.mjs +25 -1
  33. package/dist/Skin.d.mts +27 -1
  34. package/dist/Skin.mjs +34 -2
  35. package/dist/Stats.d.mts +7 -7
  36. package/dist/Stats.mjs +7 -7
  37. package/dist/Syndicate.d.mts +32 -1
  38. package/dist/Syndicate.mjs +31 -1
  39. package/dist/Utils.d.mts +35 -1
  40. package/dist/Utils.mjs +58 -1
  41. package/dist/Weapon.d.mts +31 -1
  42. package/dist/Weapon.mjs +62 -1
  43. package/dist/XpInfo.d.mts +33 -1
  44. package/dist/XpInfo.mjs +33 -2
  45. package/package.json +8 -9
  46. package/dist/Ability-CmHyNfw4.d.mts +0 -19
  47. package/dist/Ability-DsyqxzjP.mjs +0 -25
  48. package/dist/ChallengeProgress-BO8tPybG.d.mts +0 -20
  49. package/dist/ChallengeProgress-Cpks92At.mjs +0 -26
  50. package/dist/Enemy-5RVVfZme.d.mts +0 -44
  51. package/dist/Enemy-B3JSksZZ.mjs +0 -44
  52. package/dist/Intrinsics-DwonOlUE.d.mts +0 -67
  53. package/dist/Intrinsics-kYw_LPq1.mjs +0 -67
  54. package/dist/ItemConfig-DTIrA_P_.mjs +0 -50
  55. package/dist/ItemConfig-DxhXby04.d.mts +0 -51
  56. package/dist/LoadOutInventory-B84bUV2-.d.mts +0 -53
  57. package/dist/LoadOutInventory-BbaIazHX.mjs +0 -52
  58. package/dist/LoadOutItem-DWQ4aFI_.d.mts +0 -120
  59. package/dist/LoadOutItem-p-f5RdTB.mjs +0 -127
  60. package/dist/LoadOutPreset-CwbK2VvR.mjs +0 -83
  61. package/dist/LoadOutPreset-m_1RVkf9.d.mts +0 -83
  62. package/dist/Mission-CeX2BRp0.d.mts +0 -53
  63. package/dist/Mission-DfGQMV7B.mjs +0 -55
  64. package/dist/OperatorLoadOuts-51DN5Rwo.d.mts +0 -75
  65. package/dist/OperatorLoadOuts-LYGpTHuj.mjs +0 -76
  66. package/dist/Polarity-KCoYUO6f.d.mts +0 -26
  67. package/dist/Polarity-Q2JfovbR.mjs +0 -28
  68. package/dist/Pvp-DCfleh26.mjs +0 -36
  69. package/dist/Pvp-R4iYmiAT.d.mts +0 -36
  70. package/dist/Race-DXOXL9VT.d.mts +0 -32
  71. package/dist/Race-dyrF8Zs5.mjs +0 -35
  72. package/dist/Scan-CJnYpzKb.d.mts +0 -27
  73. package/dist/Scan-D4p43-1c.mjs +0 -27
  74. package/dist/Skin-DJMr6L-X.d.mts +0 -28
  75. package/dist/Skin-D_brWp2g.mjs +0 -36
  76. package/dist/Syndicate-CcRnzmZs.mjs +0 -33
  77. package/dist/Syndicate-Dq5vLEB-.d.mts +0 -33
  78. package/dist/Utils-Bqm2Gg1K.mjs +0 -59
  79. package/dist/Utils-VTFhFHIp.d.mts +0 -37
  80. package/dist/Weapon-CsKff27X.mjs +0 -64
  81. package/dist/Weapon-DgQ4hNgE.d.mts +0 -32
  82. package/dist/XpInfo-IT6LOTzI.mjs +0 -35
  83. package/dist/XpInfo-qplT5008.d.mts +0 -34
@@ -1,120 +0,0 @@
1
- import { n as RawDate } from "./Utils-VTFhFHIp.mjs";
2
- import { n as RawItemConfig, t as ItemConfig } from "./ItemConfig-DxhXby04.mjs";
3
- import { n as RawPolarity, t as Polarity } from "./Polarity-KCoYUO6f.mjs";
4
- import { ColorMap, Item, RawColors } from "@wfcd/items";
5
- import { Locale } from "warframe-worldstate-data";
6
-
7
- //#region src/LoadOutItem.d.ts
8
- interface RawLoadOutItem {
9
- ItemId: {
10
- $oid: string;
11
- };
12
- ItemType: string;
13
- ItemName?: string;
14
- Configs: RawItemConfig[];
15
- UpgradeType?: string;
16
- UpgradeFingerprint?: unknown;
17
- Features: number;
18
- UpgradeVer: number;
19
- XP?: number;
20
- Polarized?: number;
21
- Polarity?: RawPolarity[];
22
- FocusLens?: string;
23
- CustomizationSlotPurchases?: number;
24
- pricol?: RawColors;
25
- sigcol?: RawColors;
26
- ugly?: boolean;
27
- attcol?: RawColors;
28
- syancol?: RawColors;
29
- InfestationDate?: RawDate;
30
- }
31
- /**
32
- * An an item in LoadOutInventory
33
- * @module
34
- */
35
- declare class LoadOutItem {
36
- /**
37
- * Item ID
38
- */
39
- itemId: string;
40
- /**
41
- * Item unique name
42
- */
43
- uniqueName: string;
44
- /**
45
- * Item in-game name
46
- */
47
- name?: string;
48
- /**
49
- * Complete item from @wfcd/items
50
- */
51
- item?: Item;
52
- /**
53
- * The name of the Lich, Sister, or Technocyte
54
- */
55
- nemesis?: string;
56
- /**
57
- * Configuration for this weapon. Such as colors and skins applied by the player
58
- */
59
- configs: ItemConfig[];
60
- /**
61
- * The upgrade that was applied to this weapon
62
- */
63
- upgradeType?: string;
64
- /**
65
- * Information on the upgradeType that was applied
66
- * TODO need model for for fingerprint
67
- */
68
- upgradeFingerprint: unknown;
69
- features: number;
70
- upgradeVer: number;
71
- /**
72
- * XP earned with this weapon
73
- */
74
- xp?: number;
75
- /**
76
- * How many mod slots are currently polarized.
77
- */
78
- polarized?: number;
79
- /**
80
- * Which polarity types exist on the weapon
81
- */
82
- polarity?: Polarity[];
83
- /**
84
- * Focus lens applied
85
- */
86
- focuseLens?: string;
87
- customizationSlotPurchases: number;
88
- /**
89
- * Primary colors applied to item if they exist
90
- */
91
- primaryColor?: ColorMap;
92
- /**
93
- * Sigil colors applied to item if they exist
94
- */
95
- sigilColor?: ColorMap;
96
- /**
97
- * Whether prime details are enabled or not
98
- */
99
- enablePrime: boolean;
100
- /**
101
- * Attachment colors applied to item if they exist
102
- */
103
- attachmentsColor?: ColorMap;
104
- /**
105
- * Syandana colors applied to item if they exist
106
- */
107
- syandanaColor?: ColorMap;
108
- /**
109
- * If set will show when the player's warframe was infested.
110
- */
111
- infestationDate?: Date;
112
- /**
113
- *
114
- * @param {Object} loadOutItem The loadout item from LoadoutInventory
115
- * @param {string} [locale='en'] The locale to return item in
116
- */
117
- constructor(loadOutItem: RawLoadOutItem, locale?: Locale);
118
- }
119
- //#endregion
120
- export { RawLoadOutItem as n, LoadOutItem as t };
@@ -1,127 +0,0 @@
1
- import { t as find } from "./Utils-Bqm2Gg1K.mjs";
2
- import { t as ItemConfig } from "./ItemConfig-DTIrA_P_.mjs";
3
- import { t as Polarity } from "./Polarity-Q2JfovbR.mjs";
4
- import { parseDate, toTitleCase } from "warframe-worldstate-data/utilities";
5
- import { colors } from "@wfcd/items/utilities";
6
-
7
- //#region src/LoadOutItem.ts
8
- /**
9
- * An an item in LoadOutInventory
10
- * @module
11
- */
12
- var LoadOutItem = class {
13
- /**
14
- * Item ID
15
- */
16
- itemId;
17
- /**
18
- * Item unique name
19
- */
20
- uniqueName;
21
- /**
22
- * Item in-game name
23
- */
24
- name;
25
- /**
26
- * Complete item from @wfcd/items
27
- */
28
- item;
29
- /**
30
- * The name of the Lich, Sister, or Technocyte
31
- */
32
- nemesis;
33
- /**
34
- * Configuration for this weapon. Such as colors and skins applied by the player
35
- */
36
- configs;
37
- /**
38
- * The upgrade that was applied to this weapon
39
- */
40
- upgradeType;
41
- /**
42
- * Information on the upgradeType that was applied
43
- * TODO need model for for fingerprint
44
- */
45
- upgradeFingerprint;
46
- features;
47
- upgradeVer;
48
- /**
49
- * XP earned with this weapon
50
- */
51
- xp;
52
- /**
53
- * How many mod slots are currently polarized.
54
- */
55
- polarized;
56
- /**
57
- * Which polarity types exist on the weapon
58
- */
59
- polarity;
60
- /**
61
- * Focus lens applied
62
- */
63
- focuseLens;
64
- customizationSlotPurchases;
65
- /**
66
- * Primary colors applied to item if they exist
67
- */
68
- primaryColor;
69
- /**
70
- * Sigil colors applied to item if they exist
71
- */
72
- sigilColor;
73
- /**
74
- * Whether prime details are enabled or not
75
- */
76
- enablePrime;
77
- /**
78
- * Attachment colors applied to item if they exist
79
- */
80
- attachmentsColor;
81
- /**
82
- * Syandana colors applied to item if they exist
83
- */
84
- syandanaColor;
85
- /**
86
- * If set will show when the player's warframe was infested.
87
- */
88
- infestationDate;
89
- /**
90
- *
91
- * @param {Object} loadOutItem The loadout item from LoadoutInventory
92
- * @param {string} [locale='en'] The locale to return item in
93
- */
94
- constructor(loadOutItem, locale = "en") {
95
- this.itemId = loadOutItem.ItemId.$oid;
96
- this.uniqueName = loadOutItem.ItemType;
97
- const item = find(loadOutItem.ItemType, locale);
98
- if (item) {
99
- this.name = item.name;
100
- this.item = item;
101
- }
102
- if (loadOutItem.ItemName) {
103
- const [, nemesis] = loadOutItem.ItemName.split("|");
104
- if (nemesis !== void 0) this.nemesis = toTitleCase(nemesis);
105
- else this.name = loadOutItem.ItemName;
106
- }
107
- this.configs = loadOutItem.Configs.map((c) => new ItemConfig(c));
108
- if (loadOutItem.UpgradeType) this.upgradeType = loadOutItem.UpgradeType;
109
- this.upgradeFingerprint = loadOutItem.UpgradeFingerprint;
110
- this.features = loadOutItem.Features;
111
- this.upgradeVer = loadOutItem.UpgradeVer;
112
- this.xp = loadOutItem.XP;
113
- this.polarized = loadOutItem.Polarized;
114
- this.polarity = loadOutItem.Polarity?.map((p) => new Polarity(p));
115
- this.focuseLens = loadOutItem.FocusLens;
116
- this.customizationSlotPurchases = loadOutItem.CustomizationSlotPurchases ?? 0;
117
- if (loadOutItem.pricol) this.primaryColor = colors.mapColors(loadOutItem.pricol);
118
- if (loadOutItem.sigcol) this.sigilColor = colors.mapColors(loadOutItem.sigcol);
119
- this.enablePrime = loadOutItem.ugly ?? false;
120
- if (loadOutItem.attcol) this.attachmentsColor = colors.mapColors(loadOutItem.attcol);
121
- if (loadOutItem.syancol) this.syandanaColor = colors.mapColors(loadOutItem.syancol);
122
- if (loadOutItem.InfestationDate) this.infestationDate = parseDate(loadOutItem.InfestationDate);
123
- }
124
- };
125
-
126
- //#endregion
127
- export { LoadOutItem as t };
@@ -1,83 +0,0 @@
1
- import { r as numberToLetter } from "./Utils-Bqm2Gg1K.mjs";
2
- import { translatePolarity } from "warframe-worldstate-data/utilities";
3
-
4
- //#region src/LoadOutPreset.ts
5
- var SlotPreset = class {
6
- id;
7
- modPreset;
8
- appearancePreset;
9
- isHidden;
10
- constructor(slot) {
11
- if (slot?.ItemId?.$oid) this.id = slot.ItemId.$oid;
12
- if (slot?.mod !== void 0) this.modPreset = numberToLetter(slot.mod);
13
- if (slot?.cus !== void 0) this.appearancePreset = numberToLetter(slot.cus);
14
- this.isHidden = slot?.hide ?? false;
15
- }
16
- };
17
- var LoadOutPreset = class {
18
- /**
19
- * Focus School
20
- */
21
- focusSchool;
22
- /**
23
- * Preset icon
24
- *
25
- * Note:
26
- * Icon in-game seems to be an image of whatever Warframe is equipped on it
27
- */
28
- icon;
29
- /**
30
- * Whether this preset is a favorite
31
- */
32
- isFavorite;
33
- /**
34
- * Preset name
35
- */
36
- name;
37
- /**
38
- * Warframe equipped in preset
39
- */
40
- warframe;
41
- /**
42
- * Primary equipped in preset
43
- */
44
- primary;
45
- /**
46
- * Secondary equipped in preset
47
- */
48
- secondary;
49
- /**
50
- * Heavy equipped in preset
51
- */
52
- heavy;
53
- /**
54
- * Melee equiped in preset
55
- */
56
- melee;
57
- /**
58
- * Exalted ability
59
- */
60
- exalted;
61
- /**
62
- * Secondary exalted ability
63
- *
64
- * i.e Sevagoth has his shadow and his shadow's claws both of which can be modded separately
65
- */
66
- exaltedB;
67
- constructor(preset) {
68
- this.focusSchool = translatePolarity(preset.FocusSchool);
69
- this.icon = preset.PresetIcon;
70
- this.isFavorite = preset.Favorite;
71
- this.name = preset.n;
72
- this.warframe = new SlotPreset(preset.s);
73
- if (preset.l) this.primary = new SlotPreset(preset.l);
74
- if (preset.p) this.secondary = new SlotPreset(preset.p);
75
- if (preset.h) this.heavy = new SlotPreset(preset.h);
76
- if (preset.m) this.melee = new SlotPreset(preset.m);
77
- if (preset.a) this.exalted = new SlotPreset(preset.a);
78
- if (preset.b) this.exaltedB = new SlotPreset(preset.b);
79
- }
80
- };
81
-
82
- //#endregion
83
- export { LoadOutPreset as t };
@@ -1,83 +0,0 @@
1
- //#region src/LoadOutPreset.d.ts
2
- interface RawSlotPreset {
3
- ItemId?: {
4
- $oid: string;
5
- };
6
- mod?: number;
7
- cus?: number;
8
- hide?: boolean;
9
- }
10
- interface RawLoadOutPreset {
11
- FocusSchool: string;
12
- PresetIcon: string;
13
- Favorite: boolean;
14
- n: string;
15
- s: RawSlotPreset;
16
- l?: RawSlotPreset;
17
- p?: RawSlotPreset;
18
- h?: RawSlotPreset;
19
- m?: RawSlotPreset;
20
- a?: RawSlotPreset;
21
- b?: RawSlotPreset;
22
- }
23
- declare class SlotPreset {
24
- id?: string;
25
- modPreset?: string;
26
- appearancePreset?: string;
27
- isHidden: boolean;
28
- constructor(slot: RawSlotPreset);
29
- }
30
- declare class LoadOutPreset {
31
- /**
32
- * Focus School
33
- */
34
- focusSchool: string;
35
- /**
36
- * Preset icon
37
- *
38
- * Note:
39
- * Icon in-game seems to be an image of whatever Warframe is equipped on it
40
- */
41
- icon: string;
42
- /**
43
- * Whether this preset is a favorite
44
- */
45
- isFavorite: boolean;
46
- /**
47
- * Preset name
48
- */
49
- name: string;
50
- /**
51
- * Warframe equipped in preset
52
- */
53
- warframe: SlotPreset;
54
- /**
55
- * Primary equipped in preset
56
- */
57
- primary?: SlotPreset;
58
- /**
59
- * Secondary equipped in preset
60
- */
61
- secondary?: SlotPreset;
62
- /**
63
- * Heavy equipped in preset
64
- */
65
- heavy?: SlotPreset;
66
- /**
67
- * Melee equiped in preset
68
- */
69
- melee?: SlotPreset;
70
- /**
71
- * Exalted ability
72
- */
73
- exalted?: SlotPreset;
74
- /**
75
- * Secondary exalted ability
76
- *
77
- * i.e Sevagoth has his shadow and his shadow's claws both of which can be modded separately
78
- */
79
- exaltedB?: SlotPreset;
80
- constructor(preset: RawLoadOutPreset);
81
- }
82
- //#endregion
83
- export { RawLoadOutPreset as n, LoadOutPreset as t };
@@ -1,53 +0,0 @@
1
- import { Locale } from "warframe-worldstate-data";
2
-
3
- //#region src/Mission.d.ts
4
- interface RawMission {
5
- Tag?: string | undefined;
6
- type?: string;
7
- Mission?: string;
8
- highScore?: number;
9
- Completes?: number;
10
- Tier?: number;
11
- }
12
- /**
13
- * A mission completed by the player
14
- * @module
15
- */
16
- declare class Mission {
17
- /**
18
- * Node name
19
- */
20
- node: string;
21
- /**
22
- * Node unique name
23
- */
24
- nodeKey: string;
25
- /**
26
- * Node mission type
27
- */
28
- missionType: string;
29
- /**
30
- * Node faction
31
- */
32
- faction: string;
33
- /**
34
- * Highest score earned in this mission
35
- */
36
- highScore?: number;
37
- /**
38
- * How many times the mission was completed
39
- */
40
- completes?: number;
41
- /**
42
- * Denotes a steel path node
43
- */
44
- tier?: number;
45
- /**
46
- *
47
- * @param mission The mission data
48
- * @param locale The locale to return in
49
- */
50
- constructor(mission: RawMission, locale?: Locale);
51
- }
52
- //#endregion
53
- export { RawMission as n, Mission as t };
@@ -1,55 +0,0 @@
1
- import { node, nodeEnemy, nodeMissionType } from "warframe-worldstate-data/utilities";
2
-
3
- //#region src/Mission.ts
4
- /**
5
- * A mission completed by the player
6
- * @module
7
- */
8
- var Mission = class {
9
- /**
10
- * Node name
11
- */
12
- node;
13
- /**
14
- * Node unique name
15
- */
16
- nodeKey;
17
- /**
18
- * Node mission type
19
- */
20
- missionType;
21
- /**
22
- * Node faction
23
- */
24
- faction;
25
- /**
26
- * Highest score earned in this mission
27
- */
28
- highScore;
29
- /**
30
- * How many times the mission was completed
31
- */
32
- completes;
33
- /**
34
- * Denotes a steel path node
35
- */
36
- tier;
37
- /**
38
- *
39
- * @param mission The mission data
40
- * @param locale The locale to return in
41
- */
42
- constructor(mission, locale = "en") {
43
- const uniqueName = mission.type || mission.Tag;
44
- this.node = node(uniqueName, locale);
45
- this.nodeKey = uniqueName;
46
- this.missionType = nodeMissionType(uniqueName, locale);
47
- this.faction = nodeEnemy(uniqueName, locale);
48
- if (mission.highScore) this.highScore = mission.highScore;
49
- if (mission.Completes) this.completes = mission.Completes;
50
- if (mission.Tier) this.tier = mission.Tier;
51
- }
52
- };
53
-
54
- //#endregion
55
- export { Mission as t };
@@ -1,75 +0,0 @@
1
- import { n as Skin } from "./Skin-DJMr6L-X.mjs";
2
- import { t as ProfileRawColors } from "./Utils-VTFhFHIp.mjs";
3
- import { ColorMap } from "@wfcd/items";
4
- import { Locale } from "warframe-worldstate-data";
5
-
6
- //#region src/OperatorLoadOuts.d.ts
7
- interface RawOperatorLoadOuts {
8
- Skins: string[];
9
- OperatorAmp?: {
10
- $oid: string;
11
- };
12
- Upgrades: string[];
13
- AbilityOverride: any;
14
- pricol?: ProfileRawColors;
15
- sigcol?: ProfileRawColors;
16
- attcol?: ProfileRawColors;
17
- syancol?: ProfileRawColors;
18
- eyecol?: ProfileRawColors;
19
- facial?: ProfileRawColors;
20
- cloth?: ProfileRawColors;
21
- }
22
- /**
23
- * Player's operator loadout
24
- * @module
25
- */
26
- declare class OperatorLoadOuts {
27
- /**
28
- * Skins that have been applied to the player's operator.
29
- */
30
- skins: Skin[];
31
- /**
32
- * Operator amp ID
33
- */
34
- operatorAmp?: string;
35
- /**
36
- * Applied upgrade IDs
37
- */
38
- upgrades: string[];
39
- abilityOverride: any;
40
- /**
41
- * Operator primary colors
42
- */
43
- primaryColor?: ColorMap;
44
- /**
45
- * Operator sigil colors
46
- */
47
- sigilColor?: ColorMap;
48
- /**
49
- * Operator attachment colors
50
- */
51
- attachmentsColor?: ColorMap;
52
- /**
53
- * Operator syandana colors
54
- */
55
- syandanaColor?: ColorMap;
56
- /**
57
- * Operator eye colors
58
- */
59
- eyeColor?: ColorMap;
60
- /**
61
- * Operator facial colors
62
- */
63
- facial?: ColorMap;
64
- /**
65
- * Operator cloth colors
66
- */
67
- cloth?: ColorMap;
68
- /**
69
- *
70
- * @param {Object} loadout The operator loadout
71
- */
72
- constructor(loadout: RawOperatorLoadOuts, locale?: Locale);
73
- }
74
- //#endregion
75
- export { RawOperatorLoadOuts as n, OperatorLoadOuts as t };
@@ -1,76 +0,0 @@
1
- import { n as mapToHex } from "./Utils-Bqm2Gg1K.mjs";
2
- import { t as Skin } from "./Skin-D_brWp2g.mjs";
3
- import { colors } from "@wfcd/items/utilities";
4
-
5
- //#region src/OperatorLoadOuts.ts
6
- /**
7
- * Player's operator loadout
8
- * @module
9
- */
10
- var OperatorLoadOuts = class {
11
- /**
12
- * Skins that have been applied to the player's operator.
13
- */
14
- skins;
15
- /**
16
- * Operator amp ID
17
- */
18
- operatorAmp;
19
- /**
20
- * Applied upgrade IDs
21
- */
22
- upgrades;
23
- abilityOverride;
24
- /**
25
- * Operator primary colors
26
- */
27
- primaryColor;
28
- /**
29
- * Operator sigil colors
30
- */
31
- sigilColor;
32
- /**
33
- * Operator attachment colors
34
- */
35
- attachmentsColor;
36
- /**
37
- * Operator syandana colors
38
- */
39
- syandanaColor;
40
- /**
41
- * Operator eye colors
42
- */
43
- eyeColor;
44
- /**
45
- * Operator facial colors
46
- */
47
- facial;
48
- /**
49
- * Operator cloth colors
50
- */
51
- cloth;
52
- /**
53
- *
54
- * @param {Object} loadout The operator loadout
55
- */
56
- constructor(loadout, locale = "en") {
57
- this.skins = loadout.Skins.filter(Boolean).map((s) => new Skin({ ItemType: s }, locale));
58
- this.operatorAmp = loadout.OperatorAmp?.$oid;
59
- /**
60
- * Applied upgrade IDs
61
- * @type {Array<String>}
62
- */
63
- this.upgrades = loadout.Upgrades;
64
- this.abilityOverride = loadout.AbilityOverride;
65
- if (loadout.pricol) this.primaryColor = colors.mapColors(mapToHex(loadout.pricol));
66
- if (loadout.sigcol) this.sigilColor = colors.mapColors(mapToHex(loadout.sigcol));
67
- if (loadout.attcol) this.attachmentsColor = colors.mapColors(mapToHex(loadout.attcol));
68
- if (loadout.syancol) this.syandanaColor = colors.mapColors(mapToHex(loadout.syancol));
69
- if (loadout.eyecol) this.eyeColor = colors.mapColors(mapToHex(loadout.eyecol));
70
- if (loadout.facial) this.facial = colors.mapColors(mapToHex(loadout.facial));
71
- if (loadout.cloth) this.cloth = colors.mapColors(mapToHex(loadout.cloth));
72
- }
73
- };
74
-
75
- //#endregion
76
- export { OperatorLoadOuts as t };
@@ -1,26 +0,0 @@
1
- //#region src/Polarity.d.ts
2
- interface RawPolarity {
3
- Value: string;
4
- Slot: number;
5
- }
6
- /**
7
- * A polarity in a LoadOutItem
8
- * @module
9
- */
10
- declare class Polarity {
11
- /**
12
- * Polarity name
13
- */
14
- polarity: string;
15
- /**
16
- * Polarized slot
17
- */
18
- slot: number;
19
- /**
20
- *
21
- * @param {Object} raw The polarity to parse
22
- */
23
- constructor(raw: RawPolarity);
24
- }
25
- //#endregion
26
- export { RawPolarity as n, Polarity as t };