halo-infinite-api 8.0.8 → 8.1.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/dist/models/halo-infinite/game-variant-category.d.ts +4 -1
- package/dist/models/halo-infinite/game-variant-category.js +4 -1
- package/dist/models/halo-infinite/game-variant-category.js.map +1 -1
- package/dist/models/halo-infinite/stats.d.ts +36 -0
- package/package.json +1 -1
- package/src/models/halo-infinite/game-variant-category.ts +4 -1
- package/src/models/halo-infinite/stats.ts +47 -3
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
export declare enum GameVariantCategory {
|
|
2
2
|
MultiplayerSlayer = 6,
|
|
3
3
|
MultiplayerAttrition = 7,
|
|
4
|
+
MultiplayerElimination = 8,
|
|
4
5
|
MultiplayerFiesta = 9,
|
|
5
6
|
MultiplayerStrongholds = 11,
|
|
6
7
|
MultiplayerKingOfTheHill = 12,
|
|
7
8
|
MultiplayerTotalControl = 14,
|
|
8
9
|
MultiplayerCtf = 15,
|
|
10
|
+
MultiplayerExtraction = 17,
|
|
9
11
|
MultiplayerOddball = 18,
|
|
10
12
|
MultiplayerStockpile = 19,
|
|
11
13
|
MultiplayerInfection = 22,
|
|
14
|
+
MultiplayerEscalation = 24,
|
|
12
15
|
MultiplayerGrifball = 25,
|
|
13
16
|
MultiplayerLandGrab = 39,
|
|
14
|
-
|
|
17
|
+
MultiplayerMinigame = 41,
|
|
15
18
|
MultiplayerFirefight = 42
|
|
16
19
|
}
|
|
@@ -2,17 +2,20 @@ export var GameVariantCategory;
|
|
|
2
2
|
(function (GameVariantCategory) {
|
|
3
3
|
GameVariantCategory[GameVariantCategory["MultiplayerSlayer"] = 6] = "MultiplayerSlayer";
|
|
4
4
|
GameVariantCategory[GameVariantCategory["MultiplayerAttrition"] = 7] = "MultiplayerAttrition";
|
|
5
|
+
GameVariantCategory[GameVariantCategory["MultiplayerElimination"] = 8] = "MultiplayerElimination";
|
|
5
6
|
GameVariantCategory[GameVariantCategory["MultiplayerFiesta"] = 9] = "MultiplayerFiesta";
|
|
6
7
|
GameVariantCategory[GameVariantCategory["MultiplayerStrongholds"] = 11] = "MultiplayerStrongholds";
|
|
7
8
|
GameVariantCategory[GameVariantCategory["MultiplayerKingOfTheHill"] = 12] = "MultiplayerKingOfTheHill";
|
|
8
9
|
GameVariantCategory[GameVariantCategory["MultiplayerTotalControl"] = 14] = "MultiplayerTotalControl";
|
|
9
10
|
GameVariantCategory[GameVariantCategory["MultiplayerCtf"] = 15] = "MultiplayerCtf";
|
|
11
|
+
GameVariantCategory[GameVariantCategory["MultiplayerExtraction"] = 17] = "MultiplayerExtraction";
|
|
10
12
|
GameVariantCategory[GameVariantCategory["MultiplayerOddball"] = 18] = "MultiplayerOddball";
|
|
11
13
|
GameVariantCategory[GameVariantCategory["MultiplayerStockpile"] = 19] = "MultiplayerStockpile";
|
|
12
14
|
GameVariantCategory[GameVariantCategory["MultiplayerInfection"] = 22] = "MultiplayerInfection";
|
|
15
|
+
GameVariantCategory[GameVariantCategory["MultiplayerEscalation"] = 24] = "MultiplayerEscalation";
|
|
13
16
|
GameVariantCategory[GameVariantCategory["MultiplayerGrifball"] = 25] = "MultiplayerGrifball";
|
|
14
17
|
GameVariantCategory[GameVariantCategory["MultiplayerLandGrab"] = 39] = "MultiplayerLandGrab";
|
|
15
|
-
GameVariantCategory[GameVariantCategory["
|
|
18
|
+
GameVariantCategory[GameVariantCategory["MultiplayerMinigame"] = 41] = "MultiplayerMinigame";
|
|
16
19
|
GameVariantCategory[GameVariantCategory["MultiplayerFirefight"] = 42] = "MultiplayerFirefight";
|
|
17
20
|
})(GameVariantCategory || (GameVariantCategory = {}));
|
|
18
21
|
//# sourceMappingURL=game-variant-category.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-variant-category.js","sourceRoot":"","sources":["../../../src/models/halo-infinite/game-variant-category.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"game-variant-category.js","sourceRoot":"","sources":["../../../src/models/halo-infinite/game-variant-category.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAkBX;AAlBD,WAAY,mBAAmB;IAC7B,uFAAqB,CAAA;IACrB,6FAAwB,CAAA;IACxB,iGAA0B,CAAA;IAC1B,uFAAqB,CAAA;IACrB,kGAA2B,CAAA;IAC3B,sGAA6B,CAAA;IAC7B,oGAA4B,CAAA;IAC5B,kFAAmB,CAAA;IACnB,gGAA0B,CAAA;IAC1B,0FAAuB,CAAA;IACvB,8FAAyB,CAAA;IACzB,8FAAyB,CAAA;IACzB,gGAA0B,CAAA;IAC1B,4FAAwB,CAAA;IACxB,4FAAwB,CAAA;IACxB,4FAAwB,CAAA;IACxB,8FAAyB,CAAA;AAC3B,CAAC,EAlBW,mBAAmB,KAAnB,mBAAmB,QAkB9B"}
|
|
@@ -68,30 +68,66 @@ export interface StockpileStats {
|
|
|
68
68
|
TimeAsPowerSeedCarrier: string;
|
|
69
69
|
TimeAsPowerSeedDriver: string;
|
|
70
70
|
}
|
|
71
|
+
export interface PvpStats {
|
|
72
|
+
Kills: number;
|
|
73
|
+
Deaths: number;
|
|
74
|
+
Assists: number;
|
|
75
|
+
KDA: number;
|
|
76
|
+
}
|
|
77
|
+
export interface PveStats {
|
|
78
|
+
Kills: number;
|
|
79
|
+
Deaths: number;
|
|
80
|
+
Assists: number;
|
|
81
|
+
KDA: number;
|
|
82
|
+
MarineKills: number;
|
|
83
|
+
GruntKills: number;
|
|
84
|
+
JackalKills: number;
|
|
85
|
+
EliteKills: number;
|
|
86
|
+
BruteKills: number;
|
|
87
|
+
HunterKills: number;
|
|
88
|
+
SkimmerKills: number;
|
|
89
|
+
SentinelKills: number;
|
|
90
|
+
BossKills: number;
|
|
91
|
+
}
|
|
71
92
|
type StatsMap = {
|
|
72
93
|
[GameVariantCategory.MultiplayerOddball]: {
|
|
73
94
|
OddballStats: OddballStats;
|
|
95
|
+
PvpStats: PvpStats;
|
|
74
96
|
};
|
|
75
97
|
[GameVariantCategory.MultiplayerStrongholds]: {
|
|
76
98
|
ZonesStats: ZonesStats;
|
|
99
|
+
PvpStats: PvpStats;
|
|
77
100
|
};
|
|
78
101
|
[GameVariantCategory.MultiplayerCtf]: {
|
|
79
102
|
CaptureTheFlagStats: CaptureTheFlagStats;
|
|
103
|
+
PvpStats: PvpStats;
|
|
80
104
|
};
|
|
81
105
|
[GameVariantCategory.MultiplayerKingOfTheHill]: {
|
|
82
106
|
ZonesStats: ZonesStats;
|
|
107
|
+
PvpStats: PvpStats;
|
|
83
108
|
};
|
|
84
109
|
[GameVariantCategory.MultiplayerExtraction]: {
|
|
85
110
|
ExtractionStats: ExtractionStats;
|
|
111
|
+
PvpStats: PvpStats;
|
|
86
112
|
};
|
|
87
113
|
[GameVariantCategory.MultiplayerFirefight]: {
|
|
88
114
|
EliminationStats: EliminationStats;
|
|
115
|
+
PveStats: PveStats;
|
|
89
116
|
};
|
|
90
117
|
[GameVariantCategory.MultiplayerInfection]: {
|
|
91
118
|
InfectionSTats: InfectionStats;
|
|
119
|
+
PvpStats: PvpStats;
|
|
92
120
|
};
|
|
93
121
|
[GameVariantCategory.MultiplayerStockpile]: {
|
|
94
122
|
StockpileStats: StockpileStats;
|
|
123
|
+
PvpStats: PvpStats;
|
|
124
|
+
};
|
|
125
|
+
[GameVariantCategory.MultiplayerElimination]: {
|
|
126
|
+
EliminationStats: EliminationStats;
|
|
127
|
+
PvpStats: PvpStats;
|
|
128
|
+
};
|
|
129
|
+
[GameVariantCategory.MultiplayerMinigame]: {
|
|
130
|
+
PvpStats: PvpStats;
|
|
95
131
|
};
|
|
96
132
|
};
|
|
97
133
|
export type Stats<TCategory extends GameVariantCategory = GameVariantCategory> = {
|
package/package.json
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
export enum GameVariantCategory {
|
|
2
2
|
MultiplayerSlayer = 6,
|
|
3
3
|
MultiplayerAttrition = 7,
|
|
4
|
+
MultiplayerElimination = 8,
|
|
4
5
|
MultiplayerFiesta = 9,
|
|
5
6
|
MultiplayerStrongholds = 11,
|
|
6
7
|
MultiplayerKingOfTheHill = 12,
|
|
7
8
|
MultiplayerTotalControl = 14,
|
|
8
9
|
MultiplayerCtf = 15,
|
|
10
|
+
MultiplayerExtraction = 17,
|
|
9
11
|
MultiplayerOddball = 18,
|
|
10
12
|
MultiplayerStockpile = 19,
|
|
11
13
|
MultiplayerInfection = 22,
|
|
14
|
+
MultiplayerEscalation = 24,
|
|
12
15
|
MultiplayerGrifball = 25,
|
|
13
16
|
MultiplayerLandGrab = 39,
|
|
14
|
-
|
|
17
|
+
MultiplayerMinigame = 41,
|
|
15
18
|
MultiplayerFirefight = 42,
|
|
16
19
|
}
|
|
@@ -76,24 +76,68 @@ export interface StockpileStats {
|
|
|
76
76
|
TimeAsPowerSeedDriver: string;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
export interface PvpStats {
|
|
80
|
+
Kills: number;
|
|
81
|
+
Deaths: number;
|
|
82
|
+
Assists: number;
|
|
83
|
+
KDA: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface PveStats {
|
|
87
|
+
Kills: number;
|
|
88
|
+
Deaths: number;
|
|
89
|
+
Assists: number;
|
|
90
|
+
KDA: number;
|
|
91
|
+
MarineKills: number;
|
|
92
|
+
GruntKills: number;
|
|
93
|
+
JackalKills: number;
|
|
94
|
+
EliteKills: number;
|
|
95
|
+
BruteKills: number;
|
|
96
|
+
HunterKills: number;
|
|
97
|
+
SkimmerKills: number;
|
|
98
|
+
SentinelKills: number;
|
|
99
|
+
BossKills: number;
|
|
100
|
+
}
|
|
101
|
+
|
|
79
102
|
type StatsMap = {
|
|
80
|
-
[GameVariantCategory.MultiplayerOddball]: {
|
|
81
|
-
|
|
103
|
+
[GameVariantCategory.MultiplayerOddball]: {
|
|
104
|
+
OddballStats: OddballStats;
|
|
105
|
+
PvpStats: PvpStats;
|
|
106
|
+
};
|
|
107
|
+
[GameVariantCategory.MultiplayerStrongholds]: {
|
|
108
|
+
ZonesStats: ZonesStats;
|
|
109
|
+
PvpStats: PvpStats;
|
|
110
|
+
};
|
|
82
111
|
[GameVariantCategory.MultiplayerCtf]: {
|
|
83
112
|
CaptureTheFlagStats: CaptureTheFlagStats;
|
|
113
|
+
PvpStats: PvpStats;
|
|
114
|
+
};
|
|
115
|
+
[GameVariantCategory.MultiplayerKingOfTheHill]: {
|
|
116
|
+
ZonesStats: ZonesStats;
|
|
117
|
+
PvpStats: PvpStats;
|
|
84
118
|
};
|
|
85
|
-
[GameVariantCategory.MultiplayerKingOfTheHill]: { ZonesStats: ZonesStats };
|
|
86
119
|
[GameVariantCategory.MultiplayerExtraction]: {
|
|
87
120
|
ExtractionStats: ExtractionStats;
|
|
121
|
+
PvpStats: PvpStats;
|
|
88
122
|
};
|
|
89
123
|
[GameVariantCategory.MultiplayerFirefight]: {
|
|
90
124
|
EliminationStats: EliminationStats;
|
|
125
|
+
PveStats: PveStats;
|
|
91
126
|
};
|
|
92
127
|
[GameVariantCategory.MultiplayerInfection]: {
|
|
93
128
|
InfectionSTats: InfectionStats;
|
|
129
|
+
PvpStats: PvpStats;
|
|
94
130
|
};
|
|
95
131
|
[GameVariantCategory.MultiplayerStockpile]: {
|
|
96
132
|
StockpileStats: StockpileStats;
|
|
133
|
+
PvpStats: PvpStats;
|
|
134
|
+
};
|
|
135
|
+
[GameVariantCategory.MultiplayerElimination]: {
|
|
136
|
+
EliminationStats: EliminationStats;
|
|
137
|
+
PvpStats: PvpStats;
|
|
138
|
+
};
|
|
139
|
+
[GameVariantCategory.MultiplayerMinigame]: {
|
|
140
|
+
PvpStats: PvpStats;
|
|
97
141
|
};
|
|
98
142
|
};
|
|
99
143
|
|