raspberry_games_engine_helpers 1.8.248 → 1.8.250

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "Logic_Debertz-engine.js",
3
3
  "types": "Logic_Debertz-engine.d.ts",
4
- "version": "1.8.248",
4
+ "version": "1.8.250",
5
5
  "name": "raspberry_games_engine_helpers",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "3.2.0",
@@ -16,21 +16,21 @@
16
16
  'use strict';
17
17
  //region block: imports
18
18
  var imul = Math.imul;
19
- var protoOf = kotlin_kotlin.$_$.o9;
20
- var initMetadataForObject = kotlin_kotlin.$_$.w8;
21
- var defineProp = kotlin_kotlin.$_$.j8;
22
- var THROW_CCE = kotlin_kotlin.$_$.hc;
23
- var Comparator = kotlin_kotlin.$_$.xb;
19
+ var protoOf = kotlin_kotlin.$_$.p9;
20
+ var initMetadataForObject = kotlin_kotlin.$_$.x8;
21
+ var defineProp = kotlin_kotlin.$_$.k8;
22
+ var THROW_CCE = kotlin_kotlin.$_$.ic;
23
+ var Comparator = kotlin_kotlin.$_$.yb;
24
24
  var VOID = kotlin_kotlin.$_$.f;
25
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.cd;
26
- var Unit_instance = kotlin_kotlin.$_$.j4;
27
- var initMetadataForCompanion = kotlin_kotlin.$_$.s8;
25
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.dd;
26
+ var Unit_instance = kotlin_kotlin.$_$.k4;
27
+ var initMetadataForCompanion = kotlin_kotlin.$_$.t8;
28
28
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.i1;
29
- var Enum = kotlin_kotlin.$_$.ac;
30
- var initMetadataForClass = kotlin_kotlin.$_$.r8;
29
+ var Enum = kotlin_kotlin.$_$.bc;
30
+ var initMetadataForClass = kotlin_kotlin.$_$.s8;
31
31
  var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
32
32
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
33
- var lazy = kotlin_kotlin.$_$.ad;
33
+ var lazy = kotlin_kotlin.$_$.bd;
34
34
  var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
35
35
  //endregion
36
36
  //region block: pre-declaration
@@ -46,7 +46,7 @@
46
46
  function CoreConfig() {
47
47
  this.version = '0.0.37';
48
48
  }
49
- protoOf(CoreConfig).t24 = function () {
49
+ protoOf(CoreConfig).e25 = 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).u24 = function (a, b) {
59
- return a.v24_1 - b.v24_1 | 0;
58
+ protoOf(CardIndexComparator).f25 = function (a, b) {
59
+ return a.g25_1 - b.g25_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.u24(tmp, b instanceof GameCard ? b : THROW_CCE());
63
+ return this.f25(tmp, b instanceof GameCard ? b : THROW_CCE());
64
64
  };
65
65
  var CardIndexComparator_instance;
66
66
  function CardIndexComparator_getInstance() {
@@ -153,7 +153,7 @@
153
153
  }
154
154
  function Companion() {
155
155
  }
156
- protoOf(Companion).w24 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
156
+ protoOf(Companion).h25 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
157
157
  var tmp;
158
158
  if (previousStubCardWithMaxIndex == null) {
159
159
  tmp = null;
@@ -162,7 +162,7 @@
162
162
  // Inline function 'kotlin.contracts.contract' call
163
163
  var tmp_0;
164
164
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
165
- if (previousStubCardWithMaxIndex.x24()) {
165
+ if (previousStubCardWithMaxIndex.i25()) {
166
166
  tmp_0 = previousStubCardWithMaxIndex;
167
167
  } else {
168
168
  tmp_0 = null;
@@ -170,8 +170,8 @@
170
170
  tmp = tmp_0;
171
171
  }
172
172
  var tmp3_safe_receiver = tmp;
173
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v24_1;
174
- var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.c25(tmp4_safe_receiver, playerIndex, reverse);
173
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g25_1;
174
+ var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.n25(tmp4_safe_receiver, playerIndex, reverse);
175
175
  var tmp_1;
176
176
  if (tmp5_safe_receiver == null) {
177
177
  tmp_1 = null;
@@ -192,10 +192,10 @@
192
192
  var index = tmp_2;
193
193
  return new GameCard(index);
194
194
  };
195
- protoOf(Companion).d25 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
195
+ protoOf(Companion).o25 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
196
196
  previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
197
197
  reverse = reverse === VOID ? false : reverse;
198
- return $super === VOID ? this.w24(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.w24.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
198
+ return $super === VOID ? this.h25(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.h25.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
199
199
  };
200
200
  var Companion_instance;
201
201
  function Companion_getInstance() {
@@ -249,7 +249,7 @@
249
249
  return tmp;
250
250
  }
251
251
  function _get_isShirt__vd98rp($this) {
252
- return $this.v24_1 === 52;
252
+ return $this.g25_1 === 52;
253
253
  }
254
254
  function CardName(name, ordinal) {
255
255
  Enum.call(this, name, ordinal);
@@ -258,12 +258,12 @@
258
258
  return getShortName(this);
259
259
  };
260
260
  function Companion_0() {
261
- this.y24_1 = -1;
262
- this.z24_1 = 13;
263
- this.a25_1 = 52;
264
- this.b25_1 = 53;
261
+ this.j25_1 = -1;
262
+ this.k25_1 = 13;
263
+ this.l25_1 = 52;
264
+ this.m25_1 = 53;
265
265
  }
266
- protoOf(Companion_0).c25 = function (_this__u8e3s4, playerIndex, reverse) {
266
+ protoOf(Companion_0).n25 = function (_this__u8e3s4, playerIndex, reverse) {
267
267
  var tmp;
268
268
  if (reverse) {
269
269
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -333,56 +333,56 @@
333
333
  return CardName_STUB_instance;
334
334
  }
335
335
  function GameCard(index) {
336
- this.v24_1 = index;
336
+ this.g25_1 = index;
337
337
  }
338
- protoOf(GameCard).e25 = function () {
338
+ protoOf(GameCard).p25 = function () {
339
339
  var tmp;
340
- var containsArg = this.v24_1;
340
+ var containsArg = this.g25_1;
341
341
  if (0 <= containsArg ? containsArg <= 13 : false) {
342
342
  tmp = Suit_DIAMOND_getInstance();
343
343
  } else {
344
- if (this.v24_1 <= 26) {
344
+ if (this.g25_1 <= 26) {
345
345
  tmp = Suit_SPADE_getInstance();
346
346
  } else {
347
- if (this.v24_1 <= 39) {
347
+ if (this.g25_1 <= 39) {
348
348
  tmp = Suit_HEART_getInstance();
349
349
  } else {
350
- if (this.v24_1 <= 52) {
350
+ if (this.g25_1 <= 52) {
351
351
  tmp = Suit_CLUB_getInstance();
352
352
  } else {
353
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.v24_1);
353
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.g25_1);
354
354
  }
355
355
  }
356
356
  }
357
357
  }
358
358
  return tmp;
359
359
  };
360
- protoOf(GameCard).f25 = function () {
360
+ protoOf(GameCard).q25 = function () {
361
361
  var tmp;
362
- if (this.x24()) {
362
+ if (this.i25()) {
363
363
  tmp = -1;
364
364
  } else {
365
- tmp = this.v24_1 - imul(13, getIndex(this.e25())) | 0;
365
+ tmp = this.g25_1 - imul(13, getIndex(this.p25())) | 0;
366
366
  }
367
367
  return tmp;
368
368
  };
369
369
  protoOf(GameCard).k2 = function () {
370
- return this.x24() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.f25());
370
+ return this.i25() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.q25());
371
371
  };
372
- protoOf(GameCard).x24 = function () {
373
- return this.v24_1 >= 53;
372
+ protoOf(GameCard).i25 = function () {
373
+ return this.g25_1 >= 53;
374
374
  };
375
375
  protoOf(GameCard).toString = function () {
376
376
  if (_get_isShirt__vd98rp(this)) {
377
377
  return 'GameCard(SHIRT)';
378
378
  }
379
- if (this.x24()) {
380
- return 'GameCard(STUB, ' + this.v24_1 + ')';
379
+ if (this.i25()) {
380
+ return 'GameCard(STUB, ' + this.g25_1 + ')';
381
381
  }
382
- return 'GameCard(' + this.e25().toString() + this.k2().toString() + ', ' + this.v24_1 + ')';
382
+ return 'GameCard(' + this.p25().toString() + this.k2().toString() + ', ' + this.g25_1 + ')';
383
383
  };
384
384
  protoOf(GameCard).hashCode = function () {
385
- return this.v24_1;
385
+ return this.g25_1;
386
386
  };
387
387
  protoOf(GameCard).equals = function (other) {
388
388
  if (this === other)
@@ -390,12 +390,12 @@
390
390
  if (!(other instanceof GameCard))
391
391
  return false;
392
392
  var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
393
- if (!(this.v24_1 === tmp0_other_with_cast.v24_1))
393
+ if (!(this.g25_1 === tmp0_other_with_cast.g25_1))
394
394
  return false;
395
395
  return true;
396
396
  };
397
397
  function _get_$cachedSerializer__te6jhj($this) {
398
- return $this.g25_1.a2();
398
+ return $this.r25_1.a2();
399
399
  }
400
400
  function Suit$Companion$_anonymous__cbm2iq() {
401
401
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -432,13 +432,13 @@
432
432
  Companion_instance_1 = this;
433
433
  var tmp = this;
434
434
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
435
- tmp.g25_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
435
+ tmp.r25_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
436
436
  }
437
- protoOf(Companion_1).d17 = function () {
437
+ protoOf(Companion_1).o17 = function () {
438
438
  return _get_$cachedSerializer__te6jhj(this);
439
439
  };
440
- protoOf(Companion_1).mv = function (typeParamsSerializers) {
441
- return this.d17();
440
+ protoOf(Companion_1).xv = function (typeParamsSerializers) {
441
+ return this.o17();
442
442
  };
443
443
  var Companion_instance_1;
444
444
  function Companion_getInstance_1() {
@@ -12,49 +12,49 @@
12
12
  }(function (_, kotlin_kotlin) {
13
13
  'use strict';
14
14
  //region block: imports
15
- var protoOf = kotlin_kotlin.$_$.o9;
16
- var initMetadataForInterface = kotlin_kotlin.$_$.u8;
15
+ var protoOf = kotlin_kotlin.$_$.p9;
16
+ var initMetadataForInterface = kotlin_kotlin.$_$.v8;
17
17
  var VOID = kotlin_kotlin.$_$.f;
18
- var Unit_instance = kotlin_kotlin.$_$.j4;
19
- var Enum = kotlin_kotlin.$_$.ac;
20
- var initMetadataForClass = kotlin_kotlin.$_$.r8;
21
- var printStackTrace = kotlin_kotlin.$_$.ed;
22
- var initMetadataForObject = kotlin_kotlin.$_$.w8;
23
- var isBlank = kotlin_kotlin.$_$.qa;
24
- var stackTraceToString = kotlin_kotlin.$_$.fd;
25
- var toString = kotlin_kotlin.$_$.gd;
18
+ var Unit_instance = kotlin_kotlin.$_$.k4;
19
+ var Enum = kotlin_kotlin.$_$.bc;
20
+ var initMetadataForClass = kotlin_kotlin.$_$.s8;
21
+ var printStackTrace = kotlin_kotlin.$_$.fd;
22
+ var initMetadataForObject = kotlin_kotlin.$_$.x8;
23
+ var isBlank = kotlin_kotlin.$_$.ra;
24
+ var stackTraceToString = kotlin_kotlin.$_$.gd;
25
+ var toString = kotlin_kotlin.$_$.hd;
26
26
  //endregion
27
27
  //region block: pre-declaration
28
28
  function d(tag, message, payload, $super) {
29
29
  tag = tag === VOID ? null : tag;
30
30
  payload = payload === VOID ? null : payload;
31
- return this.yi(tag, message, payload);
31
+ return this.jj(tag, message, payload);
32
32
  }
33
33
  function e(tag, message, exception, payload, $super) {
34
34
  tag = tag === VOID ? null : tag;
35
35
  message = message === VOID ? null : message;
36
36
  exception = exception === VOID ? null : exception;
37
37
  payload = payload === VOID ? null : payload;
38
- return this.zi(tag, message, exception, payload);
38
+ return this.kj(tag, message, exception, payload);
39
39
  }
40
40
  function w(tag, message, exception, payload, $super) {
41
41
  tag = tag === VOID ? null : tag;
42
42
  message = message === VOID ? null : message;
43
43
  exception = exception === VOID ? null : exception;
44
44
  payload = payload === VOID ? null : payload;
45
- return this.aj(tag, message, exception, payload);
45
+ return this.lj(tag, message, exception, payload);
46
46
  }
47
47
  function v(tag, message, exception, payload, $super) {
48
48
  tag = tag === VOID ? null : tag;
49
49
  message = message === VOID ? null : message;
50
50
  exception = exception === VOID ? null : exception;
51
51
  payload = payload === VOID ? null : payload;
52
- return this.bj(tag, message, exception, payload);
52
+ return this.mj(tag, message, exception, payload);
53
53
  }
54
54
  function i(tag, message, payload, $super) {
55
55
  tag = tag === VOID ? null : tag;
56
56
  payload = payload === VOID ? null : payload;
57
- return this.cj(tag, message, payload);
57
+ return this.nj(tag, message, payload);
58
58
  }
59
59
  initMetadataForInterface(LoggerOutput, 'LoggerOutput');
60
60
  initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
@@ -84,17 +84,17 @@
84
84
  Category_NONE_instance = new Category('NONE', 1, true);
85
85
  }
86
86
  function generateTag($this, tag) {
87
- return !($this.fj_1 == null) && !(tag == null) ? '' + $this.fj_1 + ':' + tag : tag;
87
+ return !($this.qj_1 == null) && !(tag == null) ? '' + $this.qj_1 + ':' + tag : tag;
88
88
  }
89
89
  function Category(name, ordinal, isEnabled) {
90
90
  Enum.call(this, name, ordinal);
91
- this.ij_1 = isEnabled;
91
+ this.tj_1 = isEnabled;
92
92
  }
93
93
  function Logger$loggerSource$1() {
94
- this.jj_1 = new PlatformLogger();
94
+ this.uj_1 = new PlatformLogger();
95
95
  }
96
- protoOf(Logger$loggerSource$1).kj = function (tag, msg, exception) {
97
- this.jj_1.kj(tag, msg, exception);
96
+ protoOf(Logger$loggerSource$1).vj = function (tag, msg, exception) {
97
+ this.uj_1.vj(tag, msg, exception);
98
98
  };
99
99
  function Category_NONE_getInstance() {
100
100
  Category_initEntries();
@@ -103,31 +103,31 @@
103
103
  function Logger() {
104
104
  Logger_instance = this;
105
105
  var tmp = this;
106
- tmp.dj_1 = new Logger$loggerSource$1();
107
- this.ej_1 = true;
108
- this.fj_1 = null;
106
+ tmp.oj_1 = new Logger$loggerSource$1();
107
+ this.pj_1 = true;
108
+ this.qj_1 = null;
109
109
  }
110
- protoOf(Logger).lj = function (tag, message, exception, category) {
111
- if (this.ej_1 && category.ij_1) {
110
+ protoOf(Logger).wj = function (tag, message, exception, category) {
111
+ if (this.pj_1 && category.tj_1) {
112
112
  if (exception == null)
113
113
  null;
114
114
  else {
115
115
  printStackTrace(exception);
116
116
  }
117
- this.dj_1.kj(generateTag(this, tag), generateMsg(message, exception), exception);
117
+ this.oj_1.vj(generateTag(this, tag), generateMsg(message, exception), exception);
118
118
  }
119
119
  };
120
- protoOf(Logger).mj = function (tag, message, exception, category, $super) {
120
+ protoOf(Logger).xj = function (tag, message, exception, category, $super) {
121
121
  tag = tag === VOID ? null : tag;
122
122
  message = message === VOID ? null : message;
123
123
  exception = exception === VOID ? null : exception;
124
124
  category = category === VOID ? Category_NONE_getInstance() : category;
125
125
  var tmp;
126
126
  if ($super === VOID) {
127
- this.lj(tag, message, exception, category);
127
+ this.wj(tag, message, exception, category);
128
128
  tmp = Unit_instance;
129
129
  } else {
130
- tmp = $super.lj.call(this, tag, message, exception, category);
130
+ tmp = $super.wj.call(this, tag, message, exception, category);
131
131
  }
132
132
  return tmp;
133
133
  };
@@ -160,7 +160,7 @@
160
160
  }
161
161
  function PlatformLogger() {
162
162
  }
163
- protoOf(PlatformLogger).kj = function (tag, msg, exception) {
163
+ protoOf(PlatformLogger).vj = function (tag, msg, exception) {
164
164
  if (!(exception == null)) {
165
165
  console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString(exception));
166
166
  } else {