raspberry_games_engine_helpers 1.8.362 → 1.8.364

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.
@@ -16,21 +16,21 @@
16
16
  'use strict';
17
17
  //region block: imports
18
18
  var imul = Math.imul;
19
- var protoOf = kotlin_kotlin.$_$.m9;
20
- var initMetadataForObject = kotlin_kotlin.$_$.u8;
21
- var defineProp = kotlin_kotlin.$_$.i8;
22
- var THROW_CCE = kotlin_kotlin.$_$.ic;
23
- var Comparator = kotlin_kotlin.$_$.yb;
24
- var VOID = kotlin_kotlin.$_$.f;
25
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.dd;
26
- var Unit_instance = kotlin_kotlin.$_$.e4;
27
- var initMetadataForCompanion = kotlin_kotlin.$_$.q8;
28
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.f1;
29
- var Enum = kotlin_kotlin.$_$.bc;
30
- var initMetadataForClass = kotlin_kotlin.$_$.p8;
19
+ var protoOf = kotlin_kotlin.$_$.da;
20
+ var initMetadataForObject = kotlin_kotlin.$_$.m9;
21
+ var defineProp = kotlin_kotlin.$_$.a9;
22
+ var VOID = kotlin_kotlin.$_$.b;
23
+ var THROW_CCE = kotlin_kotlin.$_$.cd;
24
+ var Comparator = kotlin_kotlin.$_$.sc;
25
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.xd;
26
+ var Unit_instance = kotlin_kotlin.$_$.a4;
27
+ var initMetadataForCompanion = kotlin_kotlin.$_$.i9;
28
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.b1;
29
+ var Enum = kotlin_kotlin.$_$.vc;
30
+ var initMetadataForClass = kotlin_kotlin.$_$.h9;
31
31
  var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
32
- var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.h;
33
- var lazy = kotlin_kotlin.$_$.bd;
32
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.d;
33
+ var lazy = kotlin_kotlin.$_$.vd;
34
34
  var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
35
35
  //endregion
36
36
  //region block: pre-declaration
@@ -46,7 +46,7 @@
46
46
  function CoreConfig() {
47
47
  this.version = '0.0.53';
48
48
  }
49
- protoOf(CoreConfig).y27 = function () {
49
+ protoOf(CoreConfig).k17 = function () {
50
50
  return this.version;
51
51
  };
52
52
  var CoreConfig_instance;
@@ -55,12 +55,12 @@
55
55
  }
56
56
  function CardIndexComparator() {
57
57
  }
58
- protoOf(CardIndexComparator).z27 = function (a, b) {
59
- return a.a28_1 - b.a28_1 | 0;
58
+ protoOf(CardIndexComparator).l17 = function (a, b) {
59
+ return a.m17_1 - b.m17_1 | 0;
60
60
  };
61
61
  protoOf(CardIndexComparator).compare = function (a, b) {
62
62
  var tmp = a instanceof GameCard ? a : THROW_CCE();
63
- return this.z27(tmp, b instanceof GameCard ? b : THROW_CCE());
63
+ return this.l17(tmp, b instanceof GameCard ? b : THROW_CCE());
64
64
  };
65
65
  var CardIndexComparator_instance;
66
66
  function CardIndexComparator_getInstance() {
@@ -82,7 +82,7 @@
82
82
  var CardName_HIDDEN_instance;
83
83
  function getShortName($this) {
84
84
  var tmp;
85
- switch ($this.j2_1) {
85
+ switch ($this.h2_1) {
86
86
  case 0:
87
87
  tmp = 'A';
88
88
  break;
@@ -153,14 +153,14 @@
153
153
  }
154
154
  function Companion() {
155
155
  }
156
- protoOf(Companion).b28 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
156
+ protoOf(Companion).n17 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
157
157
  var tmp;
158
158
  if (previousHiddenCardWithMaxIndex == null) {
159
159
  tmp = null;
160
160
  } else {
161
161
  // Inline function 'kotlin.takeIf' call
162
162
  var tmp_0;
163
- if (previousHiddenCardWithMaxIndex.c28()) {
163
+ if (previousHiddenCardWithMaxIndex.o17()) {
164
164
  tmp_0 = previousHiddenCardWithMaxIndex;
165
165
  } else {
166
166
  tmp_0 = null;
@@ -168,8 +168,8 @@
168
168
  tmp = tmp_0;
169
169
  }
170
170
  var tmp1_safe_receiver = tmp;
171
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a28_1;
172
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.i28(tmp2_safe_receiver, playerIndex, reverse);
171
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m17_1;
172
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.u17(tmp2_safe_receiver, playerIndex, reverse);
173
173
  var tmp_1;
174
174
  if (tmp3_safe_receiver == null) {
175
175
  tmp_1 = null;
@@ -188,10 +188,10 @@
188
188
  var index = tmp_2;
189
189
  return new GameCard(index);
190
190
  };
191
- protoOf(Companion).j28 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
191
+ protoOf(Companion).v17 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
192
192
  previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
193
193
  reverse = reverse === VOID ? false : reverse;
194
- return $super === VOID ? this.b28(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.b28.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
194
+ return $super === VOID ? this.n17(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.n17.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
195
195
  };
196
196
  var Companion_instance;
197
197
  function Companion_getInstance() {
@@ -245,7 +245,7 @@
245
245
  return tmp;
246
246
  }
247
247
  function _get_isShirt__vd98rp($this) {
248
- return $this.a28_1 >= 150 && $this.a28_1 <= 202;
248
+ return $this.m17_1 >= 150 && $this.m17_1 <= 202;
249
249
  }
250
250
  function CardName(name, ordinal) {
251
251
  Enum.call(this, name, ordinal);
@@ -254,13 +254,13 @@
254
254
  return getShortName(this);
255
255
  };
256
256
  function Companion_0() {
257
- this.d28_1 = -1;
258
- this.e28_1 = 13;
259
- this.f28_1 = 52;
260
- this.g28_1 = 150;
261
- this.h28_1 = 53;
257
+ this.p17_1 = -1;
258
+ this.q17_1 = 13;
259
+ this.r17_1 = 52;
260
+ this.s17_1 = 150;
261
+ this.t17_1 = 53;
262
262
  }
263
- protoOf(Companion_0).i28 = function (_this__u8e3s4, playerIndex, reverse) {
263
+ protoOf(Companion_0).u17 = function (_this__u8e3s4, playerIndex, reverse) {
264
264
  var tmp;
265
265
  if (reverse) {
266
266
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -330,56 +330,56 @@
330
330
  return CardName_HIDDEN_instance;
331
331
  }
332
332
  function GameCard(index) {
333
- this.a28_1 = index;
333
+ this.m17_1 = index;
334
334
  }
335
- protoOf(GameCard).k28 = function () {
335
+ protoOf(GameCard).w17 = function () {
336
336
  var tmp;
337
- var containsArg = this.a28_1;
337
+ var containsArg = this.m17_1;
338
338
  if (0 <= containsArg ? containsArg <= 13 : false) {
339
339
  tmp = Suit_DIAMOND_getInstance();
340
340
  } else {
341
- if (this.a28_1 <= 26) {
341
+ if (this.m17_1 <= 26) {
342
342
  tmp = Suit_SPADE_getInstance();
343
343
  } else {
344
- if (this.a28_1 <= 39) {
344
+ if (this.m17_1 <= 39) {
345
345
  tmp = Suit_HEART_getInstance();
346
346
  } else {
347
- if (this.a28_1 <= 52) {
347
+ if (this.m17_1 <= 52) {
348
348
  tmp = Suit_CLUB_getInstance();
349
349
  } else {
350
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.a28_1);
350
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.m17_1);
351
351
  }
352
352
  }
353
353
  }
354
354
  }
355
355
  return tmp;
356
356
  };
357
- protoOf(GameCard).l28 = function () {
357
+ protoOf(GameCard).x17 = function () {
358
358
  var tmp;
359
- if (this.c28()) {
359
+ if (this.o17()) {
360
360
  tmp = -1;
361
361
  } else {
362
- tmp = this.a28_1 - imul(13, getIndex(this.k28())) | 0;
362
+ tmp = this.m17_1 - imul(13, getIndex(this.w17())) | 0;
363
363
  }
364
364
  return tmp;
365
365
  };
366
- protoOf(GameCard).k2 = function () {
367
- return this.c28() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.l28());
366
+ protoOf(GameCard).i2 = function () {
367
+ return this.o17() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.x17());
368
368
  };
369
- protoOf(GameCard).c28 = function () {
370
- return this.a28_1 >= 53 && this.a28_1 <= 105;
369
+ protoOf(GameCard).o17 = function () {
370
+ return this.m17_1 >= 53 && this.m17_1 <= 105;
371
371
  };
372
372
  protoOf(GameCard).toString = function () {
373
373
  if (_get_isShirt__vd98rp(this)) {
374
- return 'GameCard(SHIRT, ' + this.a28_1 + ')';
374
+ return 'GameCard(SHIRT, ' + this.m17_1 + ')';
375
375
  }
376
- if (this.c28()) {
377
- return 'GameCard(HIDDEN, ' + this.a28_1 + ')';
376
+ if (this.o17()) {
377
+ return 'GameCard(HIDDEN, ' + this.m17_1 + ')';
378
378
  }
379
- return 'GameCard(' + this.k28().toString() + this.k2().toString() + ', ' + this.a28_1 + ')';
379
+ return 'GameCard(' + this.w17().toString() + this.i2().toString() + ', ' + this.m17_1 + ')';
380
380
  };
381
381
  protoOf(GameCard).hashCode = function () {
382
- return this.a28_1;
382
+ return this.m17_1;
383
383
  };
384
384
  protoOf(GameCard).equals = function (other) {
385
385
  if (this === other)
@@ -387,12 +387,12 @@
387
387
  if (!(other instanceof GameCard))
388
388
  return false;
389
389
  var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
390
- if (!(this.a28_1 === tmp0_other_with_cast.a28_1))
390
+ if (!(this.m17_1 === tmp0_other_with_cast.m17_1))
391
391
  return false;
392
392
  return true;
393
393
  };
394
394
  function _get_$cachedSerializer__te6jhj($this) {
395
- return $this.m28_1.a2();
395
+ return $this.y17_1.v1();
396
396
  }
397
397
  function Suit$Companion$_anonymous__cbm2iq() {
398
398
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -403,7 +403,7 @@
403
403
  var Suit_CLUB_instance;
404
404
  function getSuitEmoji($this) {
405
405
  var tmp;
406
- switch ($this.j2_1) {
406
+ switch ($this.h2_1) {
407
407
  case 0:
408
408
  tmp = '\u2666\uFE0F';
409
409
  break;
@@ -429,13 +429,13 @@
429
429
  Companion_instance_1 = this;
430
430
  var tmp = this;
431
431
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
432
- tmp.m28_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
432
+ tmp.y17_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
433
433
  }
434
- protoOf(Companion_1).p19 = function () {
434
+ protoOf(Companion_1).z17 = function () {
435
435
  return _get_$cachedSerializer__te6jhj(this);
436
436
  };
437
- protoOf(Companion_1).yx = function (typeParamsSerializers) {
438
- return this.p19();
437
+ protoOf(Companion_1).cw = function (typeParamsSerializers) {
438
+ return this.z17();
439
439
  };
440
440
  var Companion_instance_1;
441
441
  function Companion_getInstance_1() {
@@ -479,7 +479,7 @@
479
479
  }
480
480
  function getIndex(_this__u8e3s4) {
481
481
  var tmp;
482
- switch (_this__u8e3s4.j2_1) {
482
+ switch (_this__u8e3s4.h2_1) {
483
483
  case 0:
484
484
  tmp = 0;
485
485
  break;
@@ -510,7 +510,7 @@
510
510
  var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
511
511
  var $io$raspberryapps$cardgame = $io$raspberryapps.cardgame || ($io$raspberryapps.cardgame = {});
512
512
  var $io$raspberryapps$cardgame$core = $io$raspberryapps$cardgame.core || ($io$raspberryapps$cardgame.core = {});
513
- defineProp($io$raspberryapps$cardgame$core, 'CoreConfig', CoreConfig_getInstance);
513
+ defineProp($io$raspberryapps$cardgame$core, 'CoreConfig', CoreConfig_getInstance, VOID, true);
514
514
  }
515
515
  $jsExportAll$(_);
516
516
  _.$jsExportAll$ = $jsExportAll$;