moons-ta-client 1.2.4 → 1.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.
@@ -22,19 +22,19 @@ export interface Push {
22
22
  data: {
23
23
  oneofKind: "realtimeScore";
24
24
  /**
25
- * @generated from protobuf field: proto.models.RealtimeScore realtime_score = 1;
25
+ * @generated from protobuf field: proto.models.RealtimeScore realtime_score = 1
26
26
  */
27
27
  realtimeScore: RealtimeScore;
28
28
  } | {
29
29
  oneofKind: "songFinished";
30
30
  /**
31
- * @generated from protobuf field: proto.packets.Push.SongFinished song_finished = 2;
31
+ * @generated from protobuf field: proto.packets.Push.SongFinished song_finished = 2
32
32
  */
33
33
  songFinished: Push_SongFinished;
34
34
  } | {
35
35
  oneofKind: "qualifierScoreSubmtited";
36
36
  /**
37
- * @generated from protobuf field: proto.packets.Push.QualifierScoreSubmitted qualifier_score_submtited = 3;
37
+ * @generated from protobuf field: proto.packets.Push.QualifierScoreSubmitted qualifier_score_submtited = 3
38
38
  */
39
39
  qualifierScoreSubmtited: Push_QualifierScoreSubmitted;
40
40
  } | {
@@ -46,51 +46,51 @@ export interface Push {
46
46
  */
47
47
  export interface Push_SongFinished {
48
48
  /**
49
- * @generated from protobuf field: proto.models.User player = 1;
49
+ * @generated from protobuf field: proto.models.User player = 1
50
50
  */
51
51
  player?: User;
52
52
  /**
53
- * @generated from protobuf field: proto.models.Beatmap beatmap = 2;
53
+ * @generated from protobuf field: proto.models.Beatmap beatmap = 2
54
54
  */
55
55
  beatmap?: Beatmap;
56
56
  /**
57
- * @generated from protobuf field: proto.packets.Push.SongFinished.CompletionType type = 3;
57
+ * @generated from protobuf field: proto.packets.Push.SongFinished.CompletionType type = 3
58
58
  */
59
59
  type: Push_SongFinished_CompletionType;
60
60
  /**
61
- * @generated from protobuf field: int32 score = 4;
61
+ * @generated from protobuf field: int32 score = 4
62
62
  */
63
63
  score: number;
64
64
  /**
65
- * @generated from protobuf field: int32 misses = 5;
65
+ * @generated from protobuf field: int32 misses = 5
66
66
  */
67
67
  misses: number;
68
68
  /**
69
- * @generated from protobuf field: int32 bad_cuts = 6;
69
+ * @generated from protobuf field: int32 bad_cuts = 6
70
70
  */
71
71
  badCuts: number;
72
72
  /**
73
- * @generated from protobuf field: int32 good_cuts = 7;
73
+ * @generated from protobuf field: int32 good_cuts = 7
74
74
  */
75
75
  goodCuts: number;
76
76
  /**
77
- * @generated from protobuf field: float end_time = 8;
77
+ * @generated from protobuf field: float end_time = 8
78
78
  */
79
79
  endTime: number;
80
80
  /**
81
- * @generated from protobuf field: string tournament_id = 9;
81
+ * @generated from protobuf field: string tournament_id = 9
82
82
  */
83
83
  tournamentId: string;
84
84
  /**
85
- * @generated from protobuf field: string match_id = 10;
85
+ * @generated from protobuf field: string match_id = 10
86
86
  */
87
87
  matchId: string;
88
88
  /**
89
- * @generated from protobuf field: int32 max_score = 11;
89
+ * @generated from protobuf field: int32 max_score = 11
90
90
  */
91
91
  maxScore: number;
92
92
  /**
93
- * @generated from protobuf field: double accuracy = 12;
93
+ * @generated from protobuf field: double accuracy = 12
94
94
  */
95
95
  accuracy: number;
96
96
  }
@@ -116,19 +116,19 @@ export declare enum Push_SongFinished_CompletionType {
116
116
  */
117
117
  export interface Push_QualifierScoreSubmitted {
118
118
  /**
119
- * @generated from protobuf field: string tournament_id = 1;
119
+ * @generated from protobuf field: string tournament_id = 1
120
120
  */
121
121
  tournamentId: string;
122
122
  /**
123
- * @generated from protobuf field: proto.models.QualifierEvent event = 2;
123
+ * @generated from protobuf field: proto.models.QualifierEvent event = 2
124
124
  */
125
125
  event?: QualifierEvent;
126
126
  /**
127
- * @generated from protobuf field: proto.models.GameplayParameters map = 3;
127
+ * @generated from protobuf field: proto.models.GameplayParameters map = 3
128
128
  */
129
129
  map?: GameplayParameters;
130
130
  /**
131
- * @generated from protobuf field: proto.models.LeaderboardEntry qualifier_score = 4;
131
+ * @generated from protobuf field: proto.models.LeaderboardEntry qualifier_score = 4
132
132
  */
133
133
  qualifierScore?: LeaderboardEntry;
134
134
  }
@@ -1,7 +1,6 @@
1
1
  import { WireType } from "@protobuf-ts/runtime";
2
2
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
3
3
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
4
- import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
5
4
  import { MessageType } from "@protobuf-ts/runtime";
6
5
  import { LeaderboardEntry } from './models.js';
7
6
  import { GameplayParameters } from './models.js';
@@ -37,8 +36,8 @@ class Push$Type extends MessageType {
37
36
  ]);
38
37
  }
39
38
  create(value) {
40
- const message = { data: { oneofKind: undefined } };
41
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
39
+ const message = globalThis.Object.create((this.messagePrototype));
40
+ message.data = { oneofKind: undefined };
42
41
  if (value !== undefined)
43
42
  reflectionMergePartial(this, message, value);
44
43
  return message;
@@ -116,8 +115,17 @@ class Push_SongFinished$Type extends MessageType {
116
115
  ]);
117
116
  }
118
117
  create(value) {
119
- const message = { type: 0, score: 0, misses: 0, badCuts: 0, goodCuts: 0, endTime: 0, tournamentId: "", matchId: "", maxScore: 0, accuracy: 0 };
120
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
118
+ const message = globalThis.Object.create((this.messagePrototype));
119
+ message.type = 0;
120
+ message.score = 0;
121
+ message.misses = 0;
122
+ message.badCuts = 0;
123
+ message.goodCuts = 0;
124
+ message.endTime = 0;
125
+ message.tournamentId = "";
126
+ message.matchId = "";
127
+ message.maxScore = 0;
128
+ message.accuracy = 0;
121
129
  if (value !== undefined)
122
130
  reflectionMergePartial(this, message, value);
123
131
  return message;
@@ -232,8 +240,8 @@ class Push_QualifierScoreSubmitted$Type extends MessageType {
232
240
  ]);
233
241
  }
234
242
  create(value) {
235
- const message = { tournamentId: "" };
236
- globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
243
+ const message = globalThis.Object.create((this.messagePrototype));
244
+ message.tournamentId = "";
237
245
  if (value !== undefined)
238
246
  reflectionMergePartial(this, message, value);
239
247
  return message;