@rian8337/osu-droid-replay-analyzer 4.0.0-beta.47 → 4.0.0-beta.49

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/index.js CHANGED
@@ -2257,7 +2257,6 @@ class ReplayAnalyzer {
2257
2257
  const v = hitObjectData[i];
2258
2258
  const o = objects[i];
2259
2259
  if (o instanceof osuBase.Spinner || v.result === exports.HitResult.miss) {
2260
- accuracies.push(0);
2261
2260
  continue;
2262
2261
  }
2263
2262
  const { accuracy } = v;
@@ -2265,7 +2264,6 @@ class ReplayAnalyzer {
2265
2264
  // Do not include slider breaks.
2266
2265
  (-mehWindow > accuracy ||
2267
2266
  accuracy > Math.min(mehWindow, o.duration))) {
2268
- accuracies.push(0);
2269
2267
  continue;
2270
2268
  }
2271
2269
  accuracies.push(accuracy);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-droid-replay-analyzer",
3
- "version": "4.0.0-beta.47",
3
+ "version": "4.0.0-beta.49",
4
4
  "description": "A replay analyzer for analyzing osu!droid replay files.",
5
5
  "keywords": [
6
6
  "osu",
@@ -34,9 +34,9 @@
34
34
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@rian8337/osu-base": "^4.0.0-beta.47",
38
- "@rian8337/osu-difficulty-calculator": "^4.0.0-beta.47",
39
- "@rian8337/osu-rebalance-difficulty-calculator": "^4.0.0-beta.47",
37
+ "@rian8337/osu-base": "^4.0.0-beta.48",
38
+ "@rian8337/osu-difficulty-calculator": "^4.0.0-beta.49",
39
+ "@rian8337/osu-rebalance-difficulty-calculator": "^4.0.0-beta.49",
40
40
  "java-deserialization": "^0.1.0",
41
41
  "unzipper": "^0.10.11"
42
42
  },
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "5d907d19c542a636041ed9a29c5a74c4f4c5501d"
49
+ "gitHead": "a352562e37332f9eea56f47628d1d2280aea4437"
50
50
  }
@@ -189,6 +189,20 @@ declare class CursorData {
189
189
  constructor(values: CursorInformation);
190
190
  }
191
191
 
192
+ /**
193
+ * Represents a JSON object that is exported from in-game replay exporter.
194
+ */
195
+ interface ExportedReplayJSON<TVersion extends number, TReplayJSON extends object> {
196
+ /**
197
+ * The version of the exported replay.
198
+ */
199
+ version: TVersion;
200
+ /**
201
+ * Data of the exported replay.
202
+ */
203
+ replaydata: TReplayJSON;
204
+ }
205
+
192
206
  /**
193
207
  * The structure of the exported replay JSON data for version 1.
194
208
  */
@@ -259,100 +273,25 @@ interface ExportedReplayJSONDataV1 {
259
273
  perfect: number;
260
274
  }
261
275
 
262
- interface ExportedReplayJSONDataV2 {
263
- /**
264
- * The name of the beatmap.
265
- */
266
- filename: string;
267
- /**
268
- * The name of the player.
269
- */
270
- playername: string;
271
- /**
272
- * The name of the replay file.
273
- */
274
- replayfile: string;
276
+ /**
277
+ * The structure of the exported replay JSON data for version 2.
278
+ */
279
+ interface ExportedReplayJSONDataV2 extends ExportedReplayJSONDataV1 {
275
280
  /**
276
281
  * The MD5 hash of the beatmap.
277
282
  */
278
283
  beatmapMD5: string;
279
- /**
280
- * Droid modifications that are used in the replay.
281
- */
282
- mod: string;
283
- /**
284
- * The amount of total score achieved.
285
- */
286
- score: number;
287
- /**
288
- * The maximum combo achieved.
289
- */
290
- combo: number;
291
- /**
292
- * The rank achieved in the replay.
293
- */
294
- mark: string;
295
- /**
296
- * The amount of geki hits in the replay.
297
- */
298
- h300k: number;
299
- /**
300
- * The amount of great hits in the replay.
301
- */
302
- h300: number;
303
- /**
304
- * The amount of katu hits in the replay.
305
- */
306
- h100k: number;
307
- /**
308
- * The amount of good hits in the replay.
309
- */
310
- h100: number;
311
- /**
312
- * The amount of meh hits in the replay.
313
- */
314
- h50: number;
315
- /**
316
- * The amount of misses in the replay.
317
- */
318
- misses: number;
319
- /**
320
- * Accuracy gained in the replay.
321
- */
322
- accuracy: number;
323
- /**
324
- * The epoch date at which the score was set, in milliseconds.
325
- */
326
- time: number;
327
284
  }
328
285
 
329
286
  /**
330
287
  * Represents an exported replay's JSON structure for version 1.
331
288
  */
332
- interface ExportedReplayJSONV1 {
333
- /**
334
- * The version of the exported replay.
335
- */
336
- version: 1;
337
- /**
338
- * Data of the exported replay.
339
- */
340
- replaydata: ExportedReplayJSONDataV1;
341
- }
289
+ type ExportedReplayJSONV1 = ExportedReplayJSON<1, ExportedReplayJSONDataV1>;
342
290
 
343
291
  /**
344
292
  * Represents an exported replay's JSON structure for version 2.
345
293
  */
346
- interface ExportedReplayJSONV2 {
347
- /**
348
- * The version of the exported replay.
349
- */
350
- version: 2;
351
- /**
352
- * Data of the exported replay.
353
- */
354
- replaydata: ExportedReplayJSONDataV2;
355
- }
294
+ type ExportedReplayJSONV2 = ExportedReplayJSON<2, ExportedReplayJSONDataV2>;
356
295
 
357
296
  /**
358
297
  * The result of a hit in an osu!droid replay.
@@ -1270,4 +1209,4 @@ declare class TwoHandChecker {
1270
1209
  private getCursorPosition;
1271
1210
  }
1272
1211
 
1273
- export { CursorData, type CursorInformation, CursorOccurrence, CursorOccurrenceGroup, type ExportedReplayJSONDataV1, type ExportedReplayJSONDataV2, type ExportedReplayJSONV1, type ExportedReplayJSONV2, type HitErrorInformation, HitResult, MovementType, RebalanceThreeFingerChecker, ReplayAnalyzer, ReplayData, ReplayObjectData, ReplayV3Data, ReplayV4Data, ReplayV5Data, SliderCheeseChecker, type SliderCheeseInformation, ThreeFingerChecker, type ThreeFingerInformation, TwoHandChecker, type TwoHandInformation };
1212
+ export { CursorData, type CursorInformation, CursorOccurrence, CursorOccurrenceGroup, type ExportedReplayJSON, type ExportedReplayJSONDataV1, type ExportedReplayJSONDataV2, type ExportedReplayJSONV1, type ExportedReplayJSONV2, type HitErrorInformation, HitResult, MovementType, RebalanceThreeFingerChecker, ReplayAnalyzer, ReplayData, ReplayObjectData, ReplayV3Data, ReplayV4Data, ReplayV5Data, SliderCheeseChecker, type SliderCheeseInformation, ThreeFingerChecker, type ThreeFingerInformation, TwoHandChecker, type TwoHandInformation };