client_plugin_logic_deb 1.5.0 → 1.5.9
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/88b0986a7186d029-atomicfu-js-ir.js +28 -28
- package/Kodein-kodein-di.js +620 -620
- package/KosiTypeSystem-kaverit.js +81 -81
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +86 -86
- package/Logic_Debertz-client_plugin.d.ts +73 -12
- package/Logic_Debertz-client_plugin.js +4696 -4529
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2536 -1943
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14952 -13630
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +10799 -10231
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1612 -1042
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +1919 -1982
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1959 -1959
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1402 -1405
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +4855 -2982
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/uuid-js-ir.js +34 -34
|
@@ -22,41 +22,41 @@
|
|
|
22
22
|
var Clock = $module$_js_joda_core_gcv2k.Clock;
|
|
23
23
|
var OffsetDateTime = $module$_js_joda_core_gcv2k.OffsetDateTime;
|
|
24
24
|
var Duration = $module$_js_joda_core_gcv2k.Duration;
|
|
25
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
26
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
27
|
-
var VOID = kotlin_kotlin.$_$.
|
|
28
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
25
|
+
var protoOf = kotlin_kotlin.$_$.ka;
|
|
26
|
+
var objectMeta = kotlin_kotlin.$_$.ja;
|
|
27
|
+
var VOID = kotlin_kotlin.$_$.ge;
|
|
28
|
+
var setMetadataFor = kotlin_kotlin.$_$.la;
|
|
29
29
|
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.i1;
|
|
30
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
31
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
32
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
33
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
34
|
-
var Long = kotlin_kotlin.$_$.
|
|
30
|
+
var objectCreate = kotlin_kotlin.$_$.ia;
|
|
31
|
+
var captureStack = kotlin_kotlin.$_$.b9;
|
|
32
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.uc;
|
|
33
|
+
var classMeta = kotlin_kotlin.$_$.g9;
|
|
34
|
+
var Long = kotlin_kotlin.$_$.wc;
|
|
35
35
|
var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
36
36
|
var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
|
|
37
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
37
|
+
var THROW_CCE = kotlin_kotlin.$_$.cd;
|
|
38
38
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
|
|
39
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
39
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
40
40
|
var indexOf = kotlin_kotlin.$_$.lb;
|
|
41
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
42
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
43
|
-
var Char = kotlin_kotlin.$_$.
|
|
44
|
-
var equals = kotlin_kotlin.$_$.
|
|
45
|
-
var Unit_getInstance = kotlin_kotlin.$_$.
|
|
46
|
-
var toLong = kotlin_kotlin.$_$.
|
|
47
|
-
var ArithmeticException = kotlin_kotlin.$_$.
|
|
48
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
49
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
50
|
-
var _Duration___get_inWholeSeconds__impl__hpy7b3 = kotlin_kotlin.$_$.
|
|
51
|
-
var _Duration___get_nanosecondsComponent__impl__nh19kq = kotlin_kotlin.$_$.
|
|
52
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
53
|
-
var Companion_getInstance = kotlin_kotlin.$_$.
|
|
41
|
+
var charSequenceLength = kotlin_kotlin.$_$.e9;
|
|
42
|
+
var charSequenceGet = kotlin_kotlin.$_$.d9;
|
|
43
|
+
var Char = kotlin_kotlin.$_$.mc;
|
|
44
|
+
var equals = kotlin_kotlin.$_$.j9;
|
|
45
|
+
var Unit_getInstance = kotlin_kotlin.$_$.s4;
|
|
46
|
+
var toLong = kotlin_kotlin.$_$.na;
|
|
47
|
+
var ArithmeticException = kotlin_kotlin.$_$.lc;
|
|
48
|
+
var numberToLong = kotlin_kotlin.$_$.ha;
|
|
49
|
+
var numberToInt = kotlin_kotlin.$_$.ga;
|
|
50
|
+
var _Duration___get_inWholeSeconds__impl__hpy7b3 = kotlin_kotlin.$_$.b2;
|
|
51
|
+
var _Duration___get_nanosecondsComponent__impl__nh19kq = kotlin_kotlin.$_$.c2;
|
|
52
|
+
var numberToDouble = kotlin_kotlin.$_$.fa;
|
|
53
|
+
var Companion_getInstance = kotlin_kotlin.$_$.k4;
|
|
54
54
|
var DurationUnit_SECONDS_getInstance = kotlin_kotlin.$_$.h;
|
|
55
55
|
var toDuration = kotlin_kotlin.$_$.jc;
|
|
56
56
|
var DurationUnit_NANOSECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
57
|
-
var Duration__plus_impl_yu9v8f = kotlin_kotlin.$_$.
|
|
58
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
59
|
-
var toString = kotlin_kotlin.$_$.
|
|
57
|
+
var Duration__plus_impl_yu9v8f = kotlin_kotlin.$_$.d2;
|
|
58
|
+
var Comparable = kotlin_kotlin.$_$.nc;
|
|
59
|
+
var toString = kotlin_kotlin.$_$.pa;
|
|
60
60
|
var ArithmeticException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
61
61
|
//endregion
|
|
62
62
|
//region block: pre-declaration
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
function System() {
|
|
70
70
|
System_instance = this;
|
|
71
71
|
}
|
|
72
|
-
protoOf(System).
|
|
73
|
-
return Companion_getInstance_0().
|
|
72
|
+
protoOf(System).d2r = function () {
|
|
73
|
+
return Companion_getInstance_0().d2r();
|
|
74
74
|
};
|
|
75
75
|
var System_instance;
|
|
76
76
|
function System_getInstance() {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
}
|
|
101
101
|
var DISTANT_FUTURE_SECONDS;
|
|
102
102
|
function toInstant(_this__u8e3s4) {
|
|
103
|
-
return Companion_getInstance_0().
|
|
103
|
+
return Companion_getInstance_0().i2r(_this__u8e3s4);
|
|
104
104
|
}
|
|
105
105
|
function get_NANOS_PER_MILLI() {
|
|
106
106
|
return NANOS_PER_MILLI;
|
|
@@ -116,19 +116,19 @@
|
|
|
116
116
|
var NANOS_PER_ONE;
|
|
117
117
|
function InstantIso8601Serializer() {
|
|
118
118
|
InstantIso8601Serializer_instance = this;
|
|
119
|
-
this.
|
|
119
|
+
this.j2r_1 = PrimitiveSerialDescriptor('Instant', STRING_getInstance());
|
|
120
120
|
}
|
|
121
|
-
protoOf(InstantIso8601Serializer).
|
|
122
|
-
return this.
|
|
121
|
+
protoOf(InstantIso8601Serializer).y1o = function () {
|
|
122
|
+
return this.j2r_1;
|
|
123
123
|
};
|
|
124
|
-
protoOf(InstantIso8601Serializer).
|
|
125
|
-
return Companion_getInstance_0().
|
|
124
|
+
protoOf(InstantIso8601Serializer).a1p = function (decoder) {
|
|
125
|
+
return Companion_getInstance_0().i2r(decoder.a1s());
|
|
126
126
|
};
|
|
127
|
-
protoOf(InstantIso8601Serializer).
|
|
128
|
-
encoder.
|
|
127
|
+
protoOf(InstantIso8601Serializer).k2r = function (encoder, value) {
|
|
128
|
+
encoder.j1t(value.toString());
|
|
129
129
|
};
|
|
130
|
-
protoOf(InstantIso8601Serializer).
|
|
131
|
-
return this.
|
|
130
|
+
protoOf(InstantIso8601Serializer).z1o = function (encoder, value) {
|
|
131
|
+
return this.k2r(encoder, value instanceof Instant_0 ? value : THROW_CCE());
|
|
132
132
|
};
|
|
133
133
|
var InstantIso8601Serializer_instance;
|
|
134
134
|
function InstantIso8601Serializer_getInstance() {
|
|
@@ -168,39 +168,39 @@
|
|
|
168
168
|
}
|
|
169
169
|
function Companion() {
|
|
170
170
|
Companion_instance = this;
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
171
|
+
this.e2r_1 = new Instant_0(Instant.ofEpochSecond(get_DISTANT_PAST_SECONDS(), 999999999));
|
|
172
|
+
this.f2r_1 = new Instant_0(Instant.ofEpochSecond(get_DISTANT_FUTURE_SECONDS(), 0));
|
|
173
|
+
this.g2r_1 = new Instant_0(Instant.MIN);
|
|
174
|
+
this.h2r_1 = new Instant_0(Instant.MAX);
|
|
175
175
|
}
|
|
176
|
-
protoOf(Companion).
|
|
176
|
+
protoOf(Companion).d2r = function () {
|
|
177
177
|
return new Instant_0(Clock.systemUTC().instant());
|
|
178
178
|
};
|
|
179
|
-
protoOf(Companion).
|
|
179
|
+
protoOf(Companion).l2r = function (epochMilliseconds) {
|
|
180
180
|
var tmp;
|
|
181
181
|
try {
|
|
182
182
|
var tmp$ret$0;
|
|
183
183
|
// Inline function 'kotlin.Long.div' call
|
|
184
184
|
var tmp0_div = get_MILLIS_PER_ONE();
|
|
185
|
-
tmp$ret$0 = epochMilliseconds.
|
|
185
|
+
tmp$ret$0 = epochMilliseconds.n7(toLong(tmp0_div));
|
|
186
186
|
var tmp_0 = tmp$ret$0;
|
|
187
187
|
var tmp$ret$2;
|
|
188
188
|
// Inline function 'kotlin.Long.times' call
|
|
189
189
|
var tmp$ret$1;
|
|
190
190
|
// Inline function 'kotlin.Long.rem' call
|
|
191
191
|
var tmp1_rem = get_MILLIS_PER_ONE();
|
|
192
|
-
tmp$ret$1 = epochMilliseconds.
|
|
192
|
+
tmp$ret$1 = epochMilliseconds.a6(toLong(tmp1_rem));
|
|
193
193
|
var tmp2_times = tmp$ret$1;
|
|
194
194
|
var tmp3_times = get_NANOS_PER_MILLI();
|
|
195
|
-
tmp$ret$2 = tmp2_times.
|
|
196
|
-
tmp = this.
|
|
195
|
+
tmp$ret$2 = tmp2_times.o7(toLong(tmp3_times));
|
|
196
|
+
tmp = this.m2r(tmp_0, tmp$ret$2);
|
|
197
197
|
} catch ($p) {
|
|
198
198
|
var tmp_1;
|
|
199
199
|
if ($p instanceof Error) {
|
|
200
200
|
var e = $p;
|
|
201
201
|
if (!isJodaDateTimeException(e))
|
|
202
202
|
throw e;
|
|
203
|
-
tmp_1 = epochMilliseconds.v(new Long(0, 0)) > 0 ? this.
|
|
203
|
+
tmp_1 = epochMilliseconds.v(new Long(0, 0)) > 0 ? this.h2r_1 : this.g2r_1;
|
|
204
204
|
} else {
|
|
205
205
|
throw $p;
|
|
206
206
|
}
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
}
|
|
209
209
|
return tmp;
|
|
210
210
|
};
|
|
211
|
-
protoOf(Companion).
|
|
211
|
+
protoOf(Companion).i2r = function (isoString) {
|
|
212
212
|
var tmp;
|
|
213
213
|
try {
|
|
214
214
|
tmp = new Instant_0(OffsetDateTime.parse(fixOffsetRepresentation(this, isoString)).toInstant());
|
|
@@ -226,25 +226,25 @@
|
|
|
226
226
|
}
|
|
227
227
|
return tmp;
|
|
228
228
|
};
|
|
229
|
-
protoOf(Companion).
|
|
229
|
+
protoOf(Companion).m2r = function (epochSeconds, nanosecondAdjustment) {
|
|
230
230
|
var tmp;
|
|
231
231
|
try {
|
|
232
232
|
var tmp$ret$0;
|
|
233
233
|
// Inline function 'kotlin.floorDiv' call
|
|
234
234
|
var tmp0_floorDiv = toLong(get_NANOS_PER_ONE());
|
|
235
|
-
var q = nanosecondAdjustment.
|
|
236
|
-
if (nanosecondAdjustment.
|
|
235
|
+
var q = nanosecondAdjustment.n7(tmp0_floorDiv);
|
|
236
|
+
if (nanosecondAdjustment.f8(tmp0_floorDiv).v(new Long(0, 0)) < 0 ? !q.o7(tmp0_floorDiv).equals(nanosecondAdjustment) : false) {
|
|
237
237
|
var tmp0 = q;
|
|
238
|
-
q = tmp0.
|
|
238
|
+
q = tmp0.hh();
|
|
239
239
|
}
|
|
240
240
|
tmp$ret$0 = q;
|
|
241
241
|
var secs = safeAdd(epochSeconds, tmp$ret$0);
|
|
242
242
|
var tmp$ret$1;
|
|
243
243
|
// Inline function 'kotlin.mod' call
|
|
244
244
|
var tmp1_mod = toLong(get_NANOS_PER_ONE());
|
|
245
|
-
var r = nanosecondAdjustment.
|
|
246
|
-
tmp$ret$1 = r.
|
|
247
|
-
var nos = tmp$ret$1.
|
|
245
|
+
var r = nanosecondAdjustment.a6(tmp1_mod);
|
|
246
|
+
tmp$ret$1 = r.x5(tmp1_mod.c6(r.f8(tmp1_mod).c6(r.jh(r.d6())).a8(63)));
|
|
247
|
+
var nos = tmp$ret$1.b6();
|
|
248
248
|
tmp = new Instant_0(Instant.ofEpochSecond(secs, nos));
|
|
249
249
|
} catch ($p) {
|
|
250
250
|
var tmp_0;
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
}
|
|
259
259
|
if (tmp_1)
|
|
260
260
|
throw e;
|
|
261
|
-
tmp_0 = epochSeconds.v(new Long(0, 0)) > 0 ? this.
|
|
261
|
+
tmp_0 = epochSeconds.v(new Long(0, 0)) > 0 ? this.h2r_1 : this.g2r_1;
|
|
262
262
|
} else {
|
|
263
263
|
throw $p;
|
|
264
264
|
}
|
|
@@ -274,28 +274,28 @@
|
|
|
274
274
|
}
|
|
275
275
|
function Instant_0(value) {
|
|
276
276
|
Companion_getInstance_0();
|
|
277
|
-
this.
|
|
277
|
+
this.n2r_1 = value;
|
|
278
278
|
}
|
|
279
|
-
protoOf(Instant_0).
|
|
280
|
-
return numberToLong(this.
|
|
279
|
+
protoOf(Instant_0).o2r = function () {
|
|
280
|
+
return numberToLong(this.n2r_1.epochSecond());
|
|
281
281
|
};
|
|
282
|
-
protoOf(Instant_0).
|
|
283
|
-
return numberToInt(this.
|
|
282
|
+
protoOf(Instant_0).p2r = function () {
|
|
283
|
+
return numberToInt(this.n2r_1.nano());
|
|
284
284
|
};
|
|
285
|
-
protoOf(Instant_0).
|
|
285
|
+
protoOf(Instant_0).q2r = function () {
|
|
286
286
|
var tmp$ret$1;
|
|
287
287
|
// Inline function 'kotlin.Long.plus' call
|
|
288
288
|
var tmp$ret$0;
|
|
289
289
|
// Inline function 'kotlin.Long.times' call
|
|
290
|
-
var tmp0_times = this.
|
|
290
|
+
var tmp0_times = this.o2r();
|
|
291
291
|
var tmp1_times = get_MILLIS_PER_ONE();
|
|
292
|
-
tmp$ret$0 = tmp0_times.
|
|
292
|
+
tmp$ret$0 = tmp0_times.o7(toLong(tmp1_times));
|
|
293
293
|
var tmp2_plus = tmp$ret$0;
|
|
294
|
-
var tmp3_plus = this.
|
|
295
|
-
tmp$ret$1 = tmp2_plus.
|
|
294
|
+
var tmp3_plus = this.p2r() / get_NANOS_PER_MILLI() | 0;
|
|
295
|
+
tmp$ret$1 = tmp2_plus.x5(toLong(tmp3_plus));
|
|
296
296
|
return tmp$ret$1;
|
|
297
297
|
};
|
|
298
|
-
protoOf(Instant_0).
|
|
298
|
+
protoOf(Instant_0).r2r = function (duration) {
|
|
299
299
|
var tmp$ret$0;
|
|
300
300
|
// Inline function 'kotlin.time.Duration.toComponents' call
|
|
301
301
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -303,14 +303,14 @@
|
|
|
303
303
|
var tmp1__anonymous__uwfjfc = _Duration___get_nanosecondsComponent__impl__nh19kq(duration);
|
|
304
304
|
var tmp;
|
|
305
305
|
try {
|
|
306
|
-
tmp = new Instant_0(this.
|
|
306
|
+
tmp = new Instant_0(this.s2r(tmp0__anonymous__q1qw7t.ne(), tmp1__anonymous__uwfjfc));
|
|
307
307
|
} catch ($p) {
|
|
308
308
|
var tmp_0;
|
|
309
309
|
if ($p instanceof Error) {
|
|
310
310
|
var e = $p;
|
|
311
311
|
if (!isJodaDateTimeException(e))
|
|
312
312
|
throw e;
|
|
313
|
-
tmp_0 = tmp0__anonymous__q1qw7t.v(new Long(0, 0)) > 0 ? Companion_getInstance_0().
|
|
313
|
+
tmp_0 = tmp0__anonymous__q1qw7t.v(new Long(0, 0)) > 0 ? Companion_getInstance_0().h2r_1 : Companion_getInstance_0().g2r_1;
|
|
314
314
|
} else {
|
|
315
315
|
throw $p;
|
|
316
316
|
}
|
|
@@ -319,13 +319,13 @@
|
|
|
319
319
|
return tmp;
|
|
320
320
|
return tmp$ret$0;
|
|
321
321
|
};
|
|
322
|
-
protoOf(Instant_0).
|
|
323
|
-
var newSeconds = numberToDouble(this.
|
|
324
|
-
var newNanos = numberToDouble(this.
|
|
322
|
+
protoOf(Instant_0).s2r = function (seconds, nanos) {
|
|
323
|
+
var newSeconds = numberToDouble(this.n2r_1.epochSecond()) + seconds;
|
|
324
|
+
var newNanos = numberToDouble(this.n2r_1.nano()) + nanos;
|
|
325
325
|
return Instant.ofEpochSecond(newSeconds, newNanos);
|
|
326
326
|
};
|
|
327
|
-
protoOf(Instant_0).
|
|
328
|
-
var diff = Duration.between(other.
|
|
327
|
+
protoOf(Instant_0).t2r = function (other) {
|
|
328
|
+
var diff = Duration.between(other.n2r_1, this.n2r_1);
|
|
329
329
|
var tmp$ret$0;
|
|
330
330
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
331
331
|
var tmp0__get_seconds__yb22lo = Companion_getInstance();
|
|
@@ -339,11 +339,11 @@
|
|
|
339
339
|
tmp$ret$1 = toDuration(tmp3__get_nanoseconds__ba33fn, DurationUnit_NANOSECONDS_getInstance());
|
|
340
340
|
return Duration__plus_impl_yu9v8f(tmp, tmp$ret$1);
|
|
341
341
|
};
|
|
342
|
-
protoOf(Instant_0).
|
|
343
|
-
return numberToInt(this.
|
|
342
|
+
protoOf(Instant_0).u2r = function (other) {
|
|
343
|
+
return numberToInt(this.n2r_1.compareTo(other.n2r_1));
|
|
344
344
|
};
|
|
345
|
-
protoOf(Instant_0).
|
|
346
|
-
return this.
|
|
345
|
+
protoOf(Instant_0).m8 = function (other) {
|
|
346
|
+
return this.u2r(other instanceof Instant_0 ? other : THROW_CCE());
|
|
347
347
|
};
|
|
348
348
|
protoOf(Instant_0).equals = function (other) {
|
|
349
349
|
var tmp;
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
} else {
|
|
353
353
|
var tmp_0;
|
|
354
354
|
if (other instanceof Instant_0) {
|
|
355
|
-
tmp_0 = equals(this.
|
|
355
|
+
tmp_0 = equals(this.n2r_1, other.n2r_1);
|
|
356
356
|
} else {
|
|
357
357
|
tmp_0 = false;
|
|
358
358
|
}
|
|
@@ -361,10 +361,10 @@
|
|
|
361
361
|
return tmp;
|
|
362
362
|
};
|
|
363
363
|
protoOf(Instant_0).hashCode = function () {
|
|
364
|
-
return numberToInt(this.
|
|
364
|
+
return numberToInt(this.n2r_1.hashCode());
|
|
365
365
|
};
|
|
366
366
|
protoOf(Instant_0).toString = function () {
|
|
367
|
-
return this.
|
|
367
|
+
return this.n2r_1.toString();
|
|
368
368
|
};
|
|
369
369
|
function isJodaDateTimeException(_this__u8e3s4) {
|
|
370
370
|
var tmp$ret$0;
|
|
@@ -379,8 +379,8 @@
|
|
|
379
379
|
return tmp$ret$0.name == 'DateTimeParseException';
|
|
380
380
|
}
|
|
381
381
|
function safeAdd(a, b) {
|
|
382
|
-
var sum = a.
|
|
383
|
-
if (a.
|
|
382
|
+
var sum = a.x5(b);
|
|
383
|
+
if (a.f8(sum).v(new Long(0, 0)) < 0 ? a.f8(b).v(new Long(0, 0)) >= 0 : false) {
|
|
384
384
|
throw ArithmeticException_init_$Create$('Addition overflows a long: ' + toString(a) + ' + ' + toString(b));
|
|
385
385
|
}
|
|
386
386
|
return sum;
|
|
@@ -15,13 +15,14 @@ export declare namespace com.logic.data.models {
|
|
|
15
15
|
}
|
|
16
16
|
export declare namespace com.logic.data.models.player {
|
|
17
17
|
class GameUserInfo implements com.logic.data.models.player.PlayerIdContract {
|
|
18
|
-
constructor(playerId: string, name: string, avatarUrl?: Nullable<string>, isBot?: boolean, payload?: Nullable<any>);
|
|
18
|
+
constructor(playerId: string, name: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, payload?: Nullable<any>);
|
|
19
19
|
get playerId(): string;
|
|
20
20
|
get name(): string;
|
|
21
21
|
get avatarUrl(): Nullable<string>;
|
|
22
22
|
get isBot(): boolean;
|
|
23
|
+
get initialLuckyFactor(): Nullable<number>;
|
|
23
24
|
get payload(): Nullable<any>;
|
|
24
|
-
copy(playerId?: string, name?: string, avatarUrl?: Nullable<string>, isBot?: boolean, payload?: Nullable<any>): com.logic.data.models.player.GameUserInfo;
|
|
25
|
+
copy(playerId?: string, name?: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, payload?: Nullable<any>): com.logic.data.models.player.GameUserInfo;
|
|
25
26
|
toString(): string;
|
|
26
27
|
hashCode(): number;
|
|
27
28
|
equals(other: Nullable<any>): boolean;
|
|
@@ -82,6 +83,20 @@ export declare namespace com.logic.data.models.player {
|
|
|
82
83
|
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
83
84
|
}
|
|
84
85
|
}
|
|
86
|
+
export declare namespace com.logic.data.models.player {
|
|
87
|
+
class PlayerLuckyFactor implements com.logic.data.models.player.PlayerIdContract {
|
|
88
|
+
constructor(playerId: string, factor: number, wasLiveDuringGame: boolean, liveDurationPercentage: Nullable<number>);
|
|
89
|
+
get playerId(): string;
|
|
90
|
+
get factor(): number;
|
|
91
|
+
get wasLiveDuringGame(): boolean;
|
|
92
|
+
get liveDurationPercentage(): Nullable<number>;
|
|
93
|
+
copy(playerId?: string, factor?: number, wasLiveDuringGame?: boolean, liveDurationPercentage?: Nullable<number>): com.logic.data.models.player.PlayerLuckyFactor;
|
|
94
|
+
toString(): string;
|
|
95
|
+
hashCode(): number;
|
|
96
|
+
equals(other: Nullable<any>): boolean;
|
|
97
|
+
readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
85
100
|
export declare namespace com.logic.data.models.rules {
|
|
86
101
|
class Rules {
|
|
87
102
|
constructor(needToPutHigherTrump: boolean, distributePoints: boolean, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, enableFineIfNoBribes: boolean, fineIfNoBribes: number, enableFineAfterThirdByte: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, tenCardsInHand: boolean);
|
|
@@ -118,6 +133,7 @@ export declare namespace com.logic.data.models.rules {
|
|
|
118
133
|
export declare namespace com.logic.data.models.rules {
|
|
119
134
|
abstract class RulesSetType {
|
|
120
135
|
private constructor();
|
|
136
|
+
get value(): string;
|
|
121
137
|
static get belot(): com.logic.data.models.rules.RulesSetType & {
|
|
122
138
|
get name(): "belot";
|
|
123
139
|
get ordinal(): 0;
|
|
@@ -337,6 +353,29 @@ export declare namespace com.debertz.logic.data.models {
|
|
|
337
353
|
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
338
354
|
}
|
|
339
355
|
}
|
|
356
|
+
export declare namespace com.debertz.logic.data.models {
|
|
357
|
+
class LogicReduxConfig {
|
|
358
|
+
constructor(supportBackwardActions?: boolean, supportPlayerTurnActions?: boolean, validateTestMode?: boolean, cards?: Nullable<Array<number>>, dealer?: com.debertz.logic.data.models.DealerConfig);
|
|
359
|
+
get supportBackwardActions(): boolean;
|
|
360
|
+
get supportPlayerTurnActions(): boolean;
|
|
361
|
+
get validateTestMode(): boolean;
|
|
362
|
+
get cards(): Nullable<Array<number>>;
|
|
363
|
+
get dealer(): com.debertz.logic.data.models.DealerConfig;
|
|
364
|
+
equals(other: Nullable<any>): boolean;
|
|
365
|
+
hashCode(): number;
|
|
366
|
+
copy(supportBackwardActions?: boolean, supportPlayerTurnActions?: boolean, validateTestMode?: boolean, cards?: Nullable<Array<number>>, dealer?: com.debertz.logic.data.models.DealerConfig): com.debertz.logic.data.models.LogicReduxConfig;
|
|
367
|
+
toString(): string;
|
|
368
|
+
}
|
|
369
|
+
class DealerConfig {
|
|
370
|
+
constructor(dealerStrategy?: com.debertz.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean);
|
|
371
|
+
get dealerStrategy(): com.debertz.logic.domain.interactors.dealer.DealerStrategy;
|
|
372
|
+
get isBotsAreHappy(): boolean;
|
|
373
|
+
copy(dealerStrategy?: com.debertz.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean): com.debertz.logic.data.models.DealerConfig;
|
|
374
|
+
toString(): string;
|
|
375
|
+
hashCode(): number;
|
|
376
|
+
equals(other: Nullable<any>): boolean;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
340
379
|
export declare namespace com.debertz.logic.data.models.scenes {
|
|
341
380
|
interface ActData {
|
|
342
381
|
readonly actId: string;
|
|
@@ -366,6 +405,7 @@ export declare namespace com.debertz.logic.data.models.table {
|
|
|
366
405
|
get bribes(): any/* kotlin.collections.List<com.debertz.logic.data.models.table.cards.Bribe> */;
|
|
367
406
|
get cardDeck(): Nullable<any>/* Nullable<com.debertz.logic.data.models.table.cards.CardDeck> */;
|
|
368
407
|
get gameInfo(): any/* com.debertz.logic.data.models.table.GameInfo */;
|
|
408
|
+
get gameDuration(): any/* kotlin.time.Duration */;
|
|
369
409
|
get playersConnections(): any/* kotlin.collections.List<kotlin.Pair<string, com.logic.data.models.player.PlayerConnectionState>> */;
|
|
370
410
|
get users(): Array<com.logic.data.models.player.GameUserInfo>;
|
|
371
411
|
get isCardDeckExist(): boolean;
|
|
@@ -392,11 +432,11 @@ export declare namespace com.debertz.logic.data.models.table {
|
|
|
392
432
|
readonly __doNotUseOrImplementIt: com.logic.utils.logger.game.LoggerPayload["__doNotUseOrImplementIt"];
|
|
393
433
|
}
|
|
394
434
|
class PlayerLoggerPayload implements com.logic.utils.logger.game.LoggerPayload {
|
|
395
|
-
constructor(playerId: string, connectionState: com.logic.data.models.player.PlayerConnectionState);
|
|
435
|
+
constructor(playerId: string, connectionState: Nullable<com.logic.data.models.player.PlayerConnectionState>);
|
|
396
436
|
get playerId(): string;
|
|
397
|
-
get connectionState(): com.logic.data.models.player.PlayerConnectionState
|
|
437
|
+
get connectionState(): Nullable<com.logic.data.models.player.PlayerConnectionState>;
|
|
398
438
|
toString(): string;
|
|
399
|
-
copy(playerId?: string, connectionState?: com.logic.data.models.player.PlayerConnectionState): com.debertz.logic.data.models.table.PlayerLoggerPayload;
|
|
439
|
+
copy(playerId?: string, connectionState?: Nullable<com.logic.data.models.player.PlayerConnectionState>): com.debertz.logic.data.models.table.PlayerLoggerPayload;
|
|
400
440
|
hashCode(): number;
|
|
401
441
|
equals(other: Nullable<any>): boolean;
|
|
402
442
|
readonly __doNotUseOrImplementIt: com.logic.utils.logger.game.LoggerPayload["__doNotUseOrImplementIt"];
|
|
@@ -469,7 +509,7 @@ export declare namespace com.debertz.logic.data.models.table.config {
|
|
|
469
509
|
export declare namespace com.debertz.logic.data.models.table.config {
|
|
470
510
|
abstract class PlayersMode {
|
|
471
511
|
private constructor();
|
|
472
|
-
get
|
|
512
|
+
get value(): number;
|
|
473
513
|
static get TWO_PLAYERS(): com.debertz.logic.data.models.table.config.PlayersMode & {
|
|
474
514
|
get name(): "TWO_PLAYERS";
|
|
475
515
|
get ordinal(): 0;
|
|
@@ -501,7 +541,7 @@ export declare namespace com.debertz.logic.data.models.table.config {
|
|
|
501
541
|
export declare namespace com.debertz.logic.data.models.table.config {
|
|
502
542
|
abstract class PointsMode {
|
|
503
543
|
private constructor();
|
|
504
|
-
get
|
|
544
|
+
get value(): number;
|
|
505
545
|
static get SMALL(): com.debertz.logic.data.models.table.config.PointsMode & {
|
|
506
546
|
get name(): "SMALL";
|
|
507
547
|
get ordinal(): 0;
|
|
@@ -644,7 +684,7 @@ export declare namespace com.debertz.logic.redux.actions.game {
|
|
|
644
684
|
get actionTag(): string;
|
|
645
685
|
}
|
|
646
686
|
class PartyEndedAction extends com.debertz.logic.redux.actions.game.GameAction {
|
|
647
|
-
constructor(roomId: string, partyNumber: number, earnedBiggestPointPlayerId: string, partyLosers: Array<string>, partyWinners: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>);
|
|
687
|
+
constructor(roomId: string, partyNumber: number, earnedBiggestPointPlayerId: string, partyLosers: Array<string>, partyWinners: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, luckyFactors?: Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>);
|
|
648
688
|
get roomId(): string;
|
|
649
689
|
get partyNumber(): number;
|
|
650
690
|
get earnedBiggestPointPlayerId(): string;
|
|
@@ -652,10 +692,11 @@ export declare namespace com.debertz.logic.redux.actions.game {
|
|
|
652
692
|
get partyWinners(): Array<string>;
|
|
653
693
|
get gameLosers(): Nullable<Array<string>>;
|
|
654
694
|
get gameWinners(): Nullable<Array<string>>;
|
|
695
|
+
get luckyFactors(): Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>;
|
|
655
696
|
get isGameFinished(): boolean;
|
|
656
697
|
equals(other: Nullable<any>): boolean;
|
|
657
698
|
hashCode(): number;
|
|
658
|
-
copy(roomId?: string, partyNumber?: number, earnedBiggestPointPlayerId?: string, partyLosers?: Array<string>, partyWinners?: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>): com.debertz.logic.redux.actions.game.PartyEndedAction;
|
|
699
|
+
copy(roomId?: string, partyNumber?: number, earnedBiggestPointPlayerId?: string, partyLosers?: Array<string>, partyWinners?: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, luckyFactors?: Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>): com.debertz.logic.redux.actions.game.PartyEndedAction;
|
|
659
700
|
toString(): string;
|
|
660
701
|
get actionTag(): string;
|
|
661
702
|
}
|
|
@@ -758,7 +799,7 @@ export declare interface ParserHelper {
|
|
|
758
799
|
encodeFromClientEvent(action: com.debertz.logic.redux.actions.client.from.FromClientAction): string;
|
|
759
800
|
decodeFromClientEvent(fromPlayerId: string, json: string): com.debertz.logic.redux.actions.client.from.FromClientAction;
|
|
760
801
|
encodeToClientEvent(action: com.debertz.logic.redux.actions.client.to.ToClientAction): string;
|
|
761
|
-
decodeToClientEventToMechanicAction(playerId: string, engine: com.debertz.logic.GameStoreContract, json: string): com.debertz.logic.redux.actions.mechanic.MechanicAction
|
|
802
|
+
decodeToClientEventToMechanicAction(playerId: string, engine: com.debertz.logic.GameStoreContract, json: string): Array<com.debertz.logic.redux.actions.mechanic.MechanicAction>;
|
|
762
803
|
readonly __doNotUseOrImplementIt: {
|
|
763
804
|
readonly ParserHelper: unique symbol;
|
|
764
805
|
};
|
|
@@ -772,6 +813,7 @@ export declare namespace com.debertz.logic.client.domain.mechanic {
|
|
|
772
813
|
observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
|
|
773
814
|
observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
|
|
774
815
|
observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
|
|
816
|
+
observePlayersHandsMetadata(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.PlayersHandsMetadataViewModel> */;
|
|
775
817
|
observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
|
|
776
818
|
observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
|
|
777
819
|
observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;
|
|
@@ -806,7 +848,7 @@ export declare namespace com.debertz.logic.client.domain.mechanic.online {
|
|
|
806
848
|
interface OnlineGameMechanic extends com.debertz.logic.client.domain.mechanic.GameMechanic {
|
|
807
849
|
readonly currentPlayerId: string;
|
|
808
850
|
observeFromClientAction(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.redux.actions.client.from.FromClientAction> */;
|
|
809
|
-
mechanicAction(action: com.debertz.logic.redux.actions.mechanic.MechanicAction): void;
|
|
851
|
+
mechanicAction(action: Array<com.debertz.logic.redux.actions.mechanic.MechanicAction>): void;
|
|
810
852
|
onCreate(): void;
|
|
811
853
|
onDestroy(): void;
|
|
812
854
|
getConfig(): com.debertz.logic.data.models.table.config.Config;
|
|
@@ -814,6 +856,7 @@ export declare namespace com.debertz.logic.client.domain.mechanic.online {
|
|
|
814
856
|
observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
|
|
815
857
|
observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
|
|
816
858
|
observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
|
|
859
|
+
observePlayersHandsMetadata(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.PlayersHandsMetadataViewModel> */;
|
|
817
860
|
observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
|
|
818
861
|
observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
|
|
819
862
|
observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;
|
|
@@ -878,6 +921,22 @@ export declare interface GameClientEngineController {
|
|
|
878
921
|
};
|
|
879
922
|
}
|
|
880
923
|
export declare function createGameClientController(loggerCallback: (p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<any>) => void): GameClientEngineController;
|
|
924
|
+
export declare namespace com.debertz.logic.server.data.models {
|
|
925
|
+
class ServerReduxConfig {
|
|
926
|
+
constructor(finishGameIfAllBots?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number);
|
|
927
|
+
get finishGameIfAllBots(): boolean;
|
|
928
|
+
get waitForPlayerToReconnect(): boolean;
|
|
929
|
+
get waitForPlayerToReconnectTimeOutMillis(): number;
|
|
930
|
+
get closeIfBotsAtFinish(): boolean;
|
|
931
|
+
get botReplacesPlayerAfterTimeout(): boolean;
|
|
932
|
+
get enabledCombinedEvents(): boolean;
|
|
933
|
+
get delayToAskBotMillis(): number;
|
|
934
|
+
copy(finishGameIfAllBots?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number): com.debertz.logic.server.data.models.ServerReduxConfig;
|
|
935
|
+
toString(): string;
|
|
936
|
+
hashCode(): number;
|
|
937
|
+
equals(other: Nullable<any>): boolean;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
881
940
|
export declare namespace com.debertz.logic.server.domain {
|
|
882
941
|
interface ServerGameEngineContract extends com.debertz.logic.GameStoreContract {
|
|
883
942
|
roomOnCreate(roomId: string, gameCreatorId: string, config: com.debertz.logic.data.models.table.config.Config, users: Array<com.logic.data.models.player.GameUserInfo>): void;
|
|
@@ -886,6 +945,7 @@ export declare namespace com.debertz.logic.server.domain {
|
|
|
886
945
|
playerLive(playerId: string): void;
|
|
887
946
|
playerLeft(playerId: string): void;
|
|
888
947
|
fromClientEvent(action: com.debertz.logic.redux.actions.client.from.FromClientAction): void;
|
|
948
|
+
subscribeToClientAction(subscriber: (p0: com.debertz.logic.redux.actions.client.to.ToClientAction) => void): void;
|
|
889
949
|
subscribeWith(subscriber: (p0: any/* com.debertz.logic.redux.AppState */) => void): void;
|
|
890
950
|
clear(): void;
|
|
891
951
|
setCanStartNewGameEnabled(enabled: boolean): void;
|
|
@@ -901,6 +961,7 @@ export declare namespace com.debertz.logic.server.domain {
|
|
|
901
961
|
}
|
|
902
962
|
export declare interface GameHelper {
|
|
903
963
|
filterLivePlayers(store: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
964
|
+
filterLiveDuringGamePlayers(store: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
904
965
|
filterBotPlayers(store: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
905
966
|
filterRealPlayers(store: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, playerIds: Array<string>): Array<string>;
|
|
906
967
|
getUserSocketId(store: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, playerId: string): Nullable<string>;
|
|
@@ -934,7 +995,7 @@ export declare interface GameEngineController {
|
|
|
934
995
|
readonly resources: GameResources;
|
|
935
996
|
setEnableLogger(enabled: boolean): void;
|
|
936
997
|
createGameEngine(): com.debertz.logic.server.domain.ServerGameEngineContract;
|
|
937
|
-
createGameEngineWithLogic(reducers?: Array<(p0: any/* com.debertz.logic.redux.AppState */, p1: any) => any/* com.debertz.logic.redux.AppState */>, middlewares?: Array<(p0: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, p1: (p0: com.logic.domain.engine.definitions.Action) => void, p2: any) => void>,
|
|
998
|
+
createGameEngineWithLogic(reducers?: Array<(p0: any/* com.debertz.logic.redux.AppState */, p1: any) => any/* com.debertz.logic.redux.AppState */>, middlewares?: Array<(p0: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, p1: (p0: com.logic.domain.engine.definitions.Action) => void, p2: any) => void>, serverConfig?: com.debertz.logic.server.data.models.ServerReduxConfig, logicConfig?: com.debertz.logic.data.models.LogicReduxConfig): com.debertz.logic.server.domain.ServerGameEngineContract;
|
|
938
999
|
readonly __doNotUseOrImplementIt: {
|
|
939
1000
|
readonly GameEngineController: unique symbol;
|
|
940
1001
|
};
|