brick-engine-js 1.0.28 → 1.0.30
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/docs/GAME_DEVELOPER_GUIDE.html +662 -2271
- package/dist/docs/brick-engine-guide.html +609 -2238
- package/dist/docs/documentation_style_guide.html +973 -2698
- package/dist/docs/getting-started.html +574 -2192
- package/dist/docs/index.html +608 -2278
- package/dist/docs/jsdoc_standard.html +617 -2235
- package/dist/docs/publishing.html +572 -2196
- package/dist/docs/reference/bootstrap.html +555 -2172
- package/dist/docs/reference/context/RendererContext.html +582 -2220
- package/dist/docs/reference/enums/Color.html +538 -2152
- package/dist/docs/reference/enums/ControlEventType.html +506 -2108
- package/dist/docs/reference/enums/ControlKey.html +530 -2144
- package/dist/docs/reference/enums/EventSuffix.html +514 -2121
- package/dist/docs/reference/enums/FontAlignment.html +546 -2157
- package/dist/docs/reference/enums/FontSize.html +518 -2122
- package/dist/docs/reference/enums/Sound.html +559 -2210
- package/dist/docs/reference/enums/StateProperty.html +526 -2131
- package/dist/docs/reference/enums/TextTheme.html +511 -0
- package/dist/docs/reference/helpers/CellHelper.html +523 -2135
- package/dist/docs/reference/helpers/ControlInputHandlerHelper.html +572 -2204
- package/dist/docs/reference/helpers/CoordinateHelper.html +681 -2377
- package/dist/docs/reference/helpers/RelativeValuesHelper.html +553 -2165
- package/dist/docs/reference/interfaces/Debuggable.html +502 -2103
- package/dist/docs/reference/interfaces/GameModules.html +550 -2203
- package/dist/docs/reference/interfaces/Initializable.html +496 -2093
- package/dist/docs/reference/interfaces/RendererInitializable.html +518 -2125
- package/dist/docs/reference/interfaces/StateContext.html +518 -2133
- package/dist/docs/reference/interfaces/StateSyncable.html +543 -2154
- package/dist/docs/reference/interfaces/modules/Control.html +649 -2353
- package/dist/docs/reference/interfaces/modules/Grid.html +1277 -3202
- package/dist/docs/reference/interfaces/modules/Renderer.html +523 -2140
- package/dist/docs/reference/interfaces/modules/RendererComposite.html +578 -2209
- package/dist/docs/reference/interfaces/modules/Score.html +670 -2326
- package/dist/docs/reference/interfaces/modules/Session.html +660 -2333
- package/dist/docs/reference/interfaces/modules/State.html +898 -2651
- package/dist/docs/reference/interfaces/modules/Text.html +817 -2362
- package/dist/docs/reference/interfaces/modules/Time.html +739 -2418
- package/dist/docs/reference/modules/Debugger.html +578 -2206
- package/dist/docs/reference/modules/DisplayRenderer.html +558 -2186
- package/dist/docs/reference/modules/EventEmitter.html +631 -2321
- package/dist/docs/reference/modules/Game.html +808 -2544
- package/dist/docs/reference/modules/GameControl.html +879 -2745
- package/dist/docs/reference/modules/GameEventRegistry.html +587 -2226
- package/dist/docs/reference/modules/GameGrid.html +1967 -4236
- package/dist/docs/reference/modules/GameHudGrid.html +503 -2103
- package/dist/docs/reference/modules/GameRenderer.html +590 -2247
- package/dist/docs/reference/modules/GameScore.html +695 -2383
- package/dist/docs/reference/modules/GameSession.html +580 -2232
- package/dist/docs/reference/modules/GameSound.html +637 -2300
- package/dist/docs/reference/modules/GameState.html +1032 -2846
- package/dist/docs/reference/modules/GameText.html +858 -2427
- package/dist/docs/reference/modules/GameTime.html +763 -2460
- package/dist/docs/reference/modules/HudRenderer.html +569 -2205
- package/dist/docs/reference/modules/InitialStateSnapshot.html +561 -2185
- package/dist/docs/reference/modules/SessionModal.html +521 -2145
- package/dist/docs/reference/types/Axis.html +506 -2102
- package/dist/docs/reference/types/Cell.html +515 -2124
- package/dist/docs/reference/types/ControlCallback.html +489 -2084
- package/dist/docs/reference/types/Coordinate.html +511 -2110
- package/dist/docs/reference/types/GameEvent.html +515 -2123
- package/dist/docs/reference/types/RendererMetrics.html +515 -2133
- package/dist/docs/reference/types/Vector.html +510 -2111
- package/dist/docs/reference/view/GameView.html +613 -2282
- package/dist/docs/testing_best_practices.html +699 -2338
- package/dist/game.bundle.js +1 -1
- package/dist/types/core/module/text/GameText.d.ts +45 -4
- package/dist/types/core/types/enums.d.ts +8 -0
- package/dist/types/core/types/modules.d.ts +41 -3
- package/package.json +1 -1
|
@@ -1,2461 +1,764 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
#toctitle {
|
|
766
|
-
font-size: 1.375em;
|
|
767
|
-
}
|
|
768
|
-
body.toc2 {
|
|
769
|
-
padding-left: 15em;
|
|
770
|
-
padding-right: 0;
|
|
771
|
-
}
|
|
772
|
-
#toc.toc2 {
|
|
773
|
-
margin-top: 0 !important;
|
|
774
|
-
background: #f8f8f7;
|
|
775
|
-
position: fixed;
|
|
776
|
-
width: 15em;
|
|
777
|
-
left: 0;
|
|
778
|
-
top: 0;
|
|
779
|
-
border-right: 1px solid #e7e7e9;
|
|
780
|
-
border-top-width: 0 !important;
|
|
781
|
-
border-bottom-width: 0 !important;
|
|
782
|
-
z-index: 1000;
|
|
783
|
-
padding: 1.25em 1em;
|
|
784
|
-
height: 100%;
|
|
785
|
-
overflow: auto;
|
|
786
|
-
}
|
|
787
|
-
#toc.toc2 #toctitle {
|
|
788
|
-
margin-top: 0;
|
|
789
|
-
margin-bottom: 0.8rem;
|
|
790
|
-
font-size: 1.2em;
|
|
791
|
-
}
|
|
792
|
-
#toc.toc2 > ul {
|
|
793
|
-
font-size: 0.9em;
|
|
794
|
-
margin-bottom: 0;
|
|
795
|
-
}
|
|
796
|
-
#toc.toc2 ul ul {
|
|
797
|
-
margin-left: 0;
|
|
798
|
-
padding-left: 1em;
|
|
799
|
-
}
|
|
800
|
-
#toc.toc2 ul.sectlevel0 ul.sectlevel1 {
|
|
801
|
-
padding-left: 0;
|
|
802
|
-
margin-top: 0.5em;
|
|
803
|
-
margin-bottom: 0.5em;
|
|
804
|
-
}
|
|
805
|
-
body.toc2.toc-right {
|
|
806
|
-
padding-left: 0;
|
|
807
|
-
padding-right: 15em;
|
|
808
|
-
}
|
|
809
|
-
body.toc2.toc-right #toc.toc2 {
|
|
810
|
-
border-right-width: 0;
|
|
811
|
-
border-left: 1px solid #e7e7e9;
|
|
812
|
-
left: auto;
|
|
813
|
-
right: 0;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
@media screen and (min-width: 1280px) {
|
|
817
|
-
body.toc2 {
|
|
818
|
-
padding-left: 20em;
|
|
819
|
-
padding-right: 0;
|
|
820
|
-
}
|
|
821
|
-
#toc.toc2 {
|
|
822
|
-
width: 20em;
|
|
823
|
-
}
|
|
824
|
-
#toc.toc2 #toctitle {
|
|
825
|
-
font-size: 1.375em;
|
|
826
|
-
}
|
|
827
|
-
#toc.toc2 > ul {
|
|
828
|
-
font-size: 0.95em;
|
|
829
|
-
}
|
|
830
|
-
#toc.toc2 ul ul {
|
|
831
|
-
padding-left: 1.25em;
|
|
832
|
-
}
|
|
833
|
-
body.toc2.toc-right {
|
|
834
|
-
padding-left: 0;
|
|
835
|
-
padding-right: 20em;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
#content #toc {
|
|
839
|
-
border: 1px solid #e0e0dc;
|
|
840
|
-
margin-bottom: 1.25em;
|
|
841
|
-
padding: 1.25em;
|
|
842
|
-
background: #f8f8f7;
|
|
843
|
-
border-radius: 4px;
|
|
844
|
-
}
|
|
845
|
-
#content #toc > :first-child {
|
|
846
|
-
margin-top: 0;
|
|
847
|
-
}
|
|
848
|
-
#content #toc > :last-child {
|
|
849
|
-
margin-bottom: 0;
|
|
850
|
-
}
|
|
851
|
-
#footer {
|
|
852
|
-
max-width: none;
|
|
853
|
-
background: rgba(0, 0, 0, 0.8);
|
|
854
|
-
padding: 1.25em;
|
|
855
|
-
}
|
|
856
|
-
#footer-text {
|
|
857
|
-
color: hsla(0, 0%, 100%, 0.8);
|
|
858
|
-
line-height: 1.44;
|
|
859
|
-
}
|
|
860
|
-
#content {
|
|
861
|
-
margin-bottom: 0.625em;
|
|
862
|
-
}
|
|
863
|
-
.sect1 {
|
|
864
|
-
padding-bottom: 0.625em;
|
|
865
|
-
}
|
|
866
|
-
@media screen and (min-width: 768px) {
|
|
867
|
-
#content {
|
|
868
|
-
margin-bottom: 1.25em;
|
|
869
|
-
}
|
|
870
|
-
.sect1 {
|
|
871
|
-
padding-bottom: 1.25em;
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
.sect1:last-child {
|
|
875
|
-
padding-bottom: 0;
|
|
876
|
-
}
|
|
877
|
-
.sect1 + .sect1 {
|
|
878
|
-
border-top: 1px solid #e7e7e9;
|
|
879
|
-
}
|
|
880
|
-
#content h1 > a.anchor,
|
|
881
|
-
h2 > a.anchor,
|
|
882
|
-
h3 > a.anchor,
|
|
883
|
-
#toctitle > a.anchor,
|
|
884
|
-
.sidebarblock > .content > .title > a.anchor,
|
|
885
|
-
h4 > a.anchor,
|
|
886
|
-
h5 > a.anchor,
|
|
887
|
-
h6 > a.anchor {
|
|
888
|
-
position: absolute;
|
|
889
|
-
z-index: 1001;
|
|
890
|
-
width: 1.5ex;
|
|
891
|
-
margin-left: -1.5ex;
|
|
892
|
-
display: block;
|
|
893
|
-
text-decoration: none !important;
|
|
894
|
-
visibility: hidden;
|
|
895
|
-
text-align: center;
|
|
896
|
-
font-weight: 400;
|
|
897
|
-
}
|
|
898
|
-
#content h1 > a.anchor::before,
|
|
899
|
-
h2 > a.anchor::before,
|
|
900
|
-
h3 > a.anchor::before,
|
|
901
|
-
#toctitle > a.anchor::before,
|
|
902
|
-
.sidebarblock > .content > .title > a.anchor::before,
|
|
903
|
-
h4 > a.anchor::before,
|
|
904
|
-
h5 > a.anchor::before,
|
|
905
|
-
h6 > a.anchor::before {
|
|
906
|
-
content: '\00A7';
|
|
907
|
-
font-size: 0.85em;
|
|
908
|
-
display: block;
|
|
909
|
-
padding-top: 0.1em;
|
|
910
|
-
}
|
|
911
|
-
#content h1:hover > a.anchor,
|
|
912
|
-
#content h1 > a.anchor:hover,
|
|
913
|
-
h2:hover > a.anchor,
|
|
914
|
-
h2 > a.anchor:hover,
|
|
915
|
-
h3:hover > a.anchor,
|
|
916
|
-
#toctitle:hover > a.anchor,
|
|
917
|
-
.sidebarblock > .content > .title:hover > a.anchor,
|
|
918
|
-
h3 > a.anchor:hover,
|
|
919
|
-
#toctitle > a.anchor:hover,
|
|
920
|
-
.sidebarblock > .content > .title > a.anchor:hover,
|
|
921
|
-
h4:hover > a.anchor,
|
|
922
|
-
h4 > a.anchor:hover,
|
|
923
|
-
h5:hover > a.anchor,
|
|
924
|
-
h5 > a.anchor:hover,
|
|
925
|
-
h6:hover > a.anchor,
|
|
926
|
-
h6 > a.anchor:hover {
|
|
927
|
-
visibility: visible;
|
|
928
|
-
}
|
|
929
|
-
#content h1 > a.link,
|
|
930
|
-
h2 > a.link,
|
|
931
|
-
h3 > a.link,
|
|
932
|
-
#toctitle > a.link,
|
|
933
|
-
.sidebarblock > .content > .title > a.link,
|
|
934
|
-
h4 > a.link,
|
|
935
|
-
h5 > a.link,
|
|
936
|
-
h6 > a.link {
|
|
937
|
-
color: #ba3925;
|
|
938
|
-
text-decoration: none;
|
|
939
|
-
}
|
|
940
|
-
#content h1 > a.link:hover,
|
|
941
|
-
h2 > a.link:hover,
|
|
942
|
-
h3 > a.link:hover,
|
|
943
|
-
#toctitle > a.link:hover,
|
|
944
|
-
.sidebarblock > .content > .title > a.link:hover,
|
|
945
|
-
h4 > a.link:hover,
|
|
946
|
-
h5 > a.link:hover,
|
|
947
|
-
h6 > a.link:hover {
|
|
948
|
-
color: #a53221;
|
|
949
|
-
}
|
|
950
|
-
details,
|
|
951
|
-
.audioblock,
|
|
952
|
-
.imageblock,
|
|
953
|
-
.literalblock,
|
|
954
|
-
.listingblock,
|
|
955
|
-
.stemblock,
|
|
956
|
-
.videoblock {
|
|
957
|
-
margin-bottom: 1.25em;
|
|
958
|
-
}
|
|
959
|
-
details {
|
|
960
|
-
margin-left: 1.25rem;
|
|
961
|
-
}
|
|
962
|
-
details > summary {
|
|
963
|
-
cursor: pointer;
|
|
964
|
-
display: block;
|
|
965
|
-
position: relative;
|
|
966
|
-
line-height: 1.6;
|
|
967
|
-
margin-bottom: 0.625rem;
|
|
968
|
-
outline: none;
|
|
969
|
-
-webkit-tap-highlight-color: transparent;
|
|
970
|
-
}
|
|
971
|
-
details > summary::-webkit-details-marker {
|
|
972
|
-
display: none;
|
|
973
|
-
}
|
|
974
|
-
details > summary::before {
|
|
975
|
-
content: '';
|
|
976
|
-
border: solid transparent;
|
|
977
|
-
border-left: solid;
|
|
978
|
-
border-width: 0.3em 0 0.3em 0.5em;
|
|
979
|
-
position: absolute;
|
|
980
|
-
top: 0.5em;
|
|
981
|
-
left: -1.25rem;
|
|
982
|
-
transform: translateX(15%);
|
|
983
|
-
}
|
|
984
|
-
details[open] > summary::before {
|
|
985
|
-
border: solid transparent;
|
|
986
|
-
border-top: solid;
|
|
987
|
-
border-width: 0.5em 0.3em 0;
|
|
988
|
-
transform: translateY(15%);
|
|
989
|
-
}
|
|
990
|
-
details > summary::after {
|
|
991
|
-
content: '';
|
|
992
|
-
width: 1.25rem;
|
|
993
|
-
height: 1em;
|
|
994
|
-
position: absolute;
|
|
995
|
-
top: 0.3em;
|
|
996
|
-
left: -1.25rem;
|
|
997
|
-
}
|
|
998
|
-
.admonitionblock td.content > .title,
|
|
999
|
-
.audioblock > .title,
|
|
1000
|
-
.exampleblock > .title,
|
|
1001
|
-
.imageblock > .title,
|
|
1002
|
-
.listingblock > .title,
|
|
1003
|
-
.literalblock > .title,
|
|
1004
|
-
.stemblock > .title,
|
|
1005
|
-
.openblock > .title,
|
|
1006
|
-
.paragraph > .title,
|
|
1007
|
-
.quoteblock > .title,
|
|
1008
|
-
table.tableblock > .title,
|
|
1009
|
-
.verseblock > .title,
|
|
1010
|
-
.videoblock > .title,
|
|
1011
|
-
.dlist > .title,
|
|
1012
|
-
.olist > .title,
|
|
1013
|
-
.ulist > .title,
|
|
1014
|
-
.qlist > .title,
|
|
1015
|
-
.hdlist > .title {
|
|
1016
|
-
text-rendering: optimizeLegibility;
|
|
1017
|
-
text-align: left;
|
|
1018
|
-
font-family: 'Noto Serif', 'DejaVu Serif', serif;
|
|
1019
|
-
font-size: 1rem;
|
|
1020
|
-
font-style: italic;
|
|
1021
|
-
}
|
|
1022
|
-
table.tableblock.fit-content > caption.title {
|
|
1023
|
-
white-space: nowrap;
|
|
1024
|
-
width: 0;
|
|
1025
|
-
}
|
|
1026
|
-
.paragraph.lead > p,
|
|
1027
|
-
#preamble > .sectionbody > [class='paragraph']:first-of-type p {
|
|
1028
|
-
font-size: 1.21875em;
|
|
1029
|
-
line-height: 1.6;
|
|
1030
|
-
color: rgba(0, 0, 0, 0.85);
|
|
1031
|
-
}
|
|
1032
|
-
.admonitionblock > table {
|
|
1033
|
-
border-collapse: separate;
|
|
1034
|
-
border: 0;
|
|
1035
|
-
background: none;
|
|
1036
|
-
width: 100%;
|
|
1037
|
-
}
|
|
1038
|
-
.admonitionblock > table td.icon {
|
|
1039
|
-
text-align: center;
|
|
1040
|
-
width: 80px;
|
|
1041
|
-
}
|
|
1042
|
-
.admonitionblock > table td.icon img {
|
|
1043
|
-
max-width: none;
|
|
1044
|
-
}
|
|
1045
|
-
.admonitionblock > table td.icon .title {
|
|
1046
|
-
font-weight: bold;
|
|
1047
|
-
font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
|
|
1048
|
-
text-transform: uppercase;
|
|
1049
|
-
}
|
|
1050
|
-
.admonitionblock > table td.content {
|
|
1051
|
-
padding-left: 1.125em;
|
|
1052
|
-
padding-right: 1.25em;
|
|
1053
|
-
border-left: 1px solid #dddddf;
|
|
1054
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1055
|
-
word-wrap: anywhere;
|
|
1056
|
-
}
|
|
1057
|
-
.admonitionblock > table td.content > :last-child > :last-child {
|
|
1058
|
-
margin-bottom: 0;
|
|
1059
|
-
}
|
|
1060
|
-
.exampleblock > .content {
|
|
1061
|
-
border: 1px solid #e6e6e6;
|
|
1062
|
-
margin-bottom: 1.25em;
|
|
1063
|
-
padding: 1.25em;
|
|
1064
|
-
background: #fff;
|
|
1065
|
-
border-radius: 4px;
|
|
1066
|
-
}
|
|
1067
|
-
.sidebarblock {
|
|
1068
|
-
border: 1px solid #dbdbd6;
|
|
1069
|
-
margin-bottom: 1.25em;
|
|
1070
|
-
padding: 1.25em;
|
|
1071
|
-
background: #f3f3f2;
|
|
1072
|
-
border-radius: 4px;
|
|
1073
|
-
}
|
|
1074
|
-
.sidebarblock > .content > .title {
|
|
1075
|
-
color: #7a2518;
|
|
1076
|
-
margin-top: 0;
|
|
1077
|
-
text-align: center;
|
|
1078
|
-
}
|
|
1079
|
-
.exampleblock > .content > :first-child,
|
|
1080
|
-
.sidebarblock > .content > :first-child {
|
|
1081
|
-
margin-top: 0;
|
|
1082
|
-
}
|
|
1083
|
-
.exampleblock > .content > :last-child,
|
|
1084
|
-
.exampleblock > .content > :last-child > :last-child,
|
|
1085
|
-
.exampleblock > .content .olist > ol > li:last-child > :last-child,
|
|
1086
|
-
.exampleblock > .content .ulist > ul > li:last-child > :last-child,
|
|
1087
|
-
.exampleblock > .content .qlist > ol > li:last-child > :last-child,
|
|
1088
|
-
.sidebarblock > .content > :last-child,
|
|
1089
|
-
.sidebarblock > .content > :last-child > :last-child,
|
|
1090
|
-
.sidebarblock > .content .olist > ol > li:last-child > :last-child,
|
|
1091
|
-
.sidebarblock > .content .ulist > ul > li:last-child > :last-child,
|
|
1092
|
-
.sidebarblock > .content .qlist > ol > li:last-child > :last-child {
|
|
1093
|
-
margin-bottom: 0;
|
|
1094
|
-
}
|
|
1095
|
-
.literalblock pre,
|
|
1096
|
-
.listingblock > .content > pre {
|
|
1097
|
-
border-radius: 4px;
|
|
1098
|
-
overflow-x: auto;
|
|
1099
|
-
padding: 1em;
|
|
1100
|
-
font-size: 0.8125em;
|
|
1101
|
-
}
|
|
1102
|
-
@media screen and (min-width: 768px) {
|
|
1103
|
-
.literalblock pre,
|
|
1104
|
-
.listingblock > .content > pre {
|
|
1105
|
-
font-size: 0.90625em;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
@media screen and (min-width: 1280px) {
|
|
1109
|
-
.literalblock pre,
|
|
1110
|
-
.listingblock > .content > pre {
|
|
1111
|
-
font-size: 1em;
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
.literalblock pre,
|
|
1115
|
-
.listingblock > .content > pre:not(.highlight),
|
|
1116
|
-
.listingblock > .content > pre[class='highlight'],
|
|
1117
|
-
.listingblock > .content > pre[class^='highlight '] {
|
|
1118
|
-
background: #f7f7f8;
|
|
1119
|
-
}
|
|
1120
|
-
.literalblock.output pre {
|
|
1121
|
-
color: #f7f7f8;
|
|
1122
|
-
background: rgba(0, 0, 0, 0.9);
|
|
1123
|
-
}
|
|
1124
|
-
.listingblock > .content {
|
|
1125
|
-
position: relative;
|
|
1126
|
-
}
|
|
1127
|
-
.listingblock code[data-lang]::before {
|
|
1128
|
-
display: none;
|
|
1129
|
-
content: attr(data-lang);
|
|
1130
|
-
position: absolute;
|
|
1131
|
-
font-size: 0.75em;
|
|
1132
|
-
top: 0.425rem;
|
|
1133
|
-
right: 0.5rem;
|
|
1134
|
-
line-height: 1;
|
|
1135
|
-
text-transform: uppercase;
|
|
1136
|
-
color: inherit;
|
|
1137
|
-
opacity: 0.5;
|
|
1138
|
-
}
|
|
1139
|
-
.listingblock:hover code[data-lang]::before {
|
|
1140
|
-
display: block;
|
|
1141
|
-
}
|
|
1142
|
-
.listingblock.terminal pre .command::before {
|
|
1143
|
-
content: attr(data-prompt);
|
|
1144
|
-
padding-right: 0.5em;
|
|
1145
|
-
color: inherit;
|
|
1146
|
-
opacity: 0.5;
|
|
1147
|
-
}
|
|
1148
|
-
.listingblock.terminal pre .command:not([data-prompt])::before {
|
|
1149
|
-
content: '$';
|
|
1150
|
-
}
|
|
1151
|
-
.listingblock pre.highlightjs {
|
|
1152
|
-
padding: 0;
|
|
1153
|
-
}
|
|
1154
|
-
.listingblock pre.highlightjs > code {
|
|
1155
|
-
padding: 1em;
|
|
1156
|
-
border-radius: 4px;
|
|
1157
|
-
}
|
|
1158
|
-
.listingblock pre.prettyprint {
|
|
1159
|
-
border-width: 0;
|
|
1160
|
-
}
|
|
1161
|
-
.prettyprint {
|
|
1162
|
-
background: #f7f7f8;
|
|
1163
|
-
}
|
|
1164
|
-
pre.prettyprint .linenums {
|
|
1165
|
-
line-height: 1.45;
|
|
1166
|
-
margin-left: 2em;
|
|
1167
|
-
}
|
|
1168
|
-
pre.prettyprint li {
|
|
1169
|
-
background: none;
|
|
1170
|
-
list-style-type: inherit;
|
|
1171
|
-
padding-left: 0;
|
|
1172
|
-
}
|
|
1173
|
-
pre.prettyprint li code[data-lang]::before {
|
|
1174
|
-
opacity: 1;
|
|
1175
|
-
}
|
|
1176
|
-
pre.prettyprint li:not(:first-child) code[data-lang]::before {
|
|
1177
|
-
display: none;
|
|
1178
|
-
}
|
|
1179
|
-
table.linenotable {
|
|
1180
|
-
border-collapse: separate;
|
|
1181
|
-
border: 0;
|
|
1182
|
-
margin-bottom: 0;
|
|
1183
|
-
background: none;
|
|
1184
|
-
}
|
|
1185
|
-
table.linenotable td[class] {
|
|
1186
|
-
color: inherit;
|
|
1187
|
-
vertical-align: top;
|
|
1188
|
-
padding: 0;
|
|
1189
|
-
line-height: inherit;
|
|
1190
|
-
white-space: normal;
|
|
1191
|
-
}
|
|
1192
|
-
table.linenotable td.code {
|
|
1193
|
-
padding-left: 0.75em;
|
|
1194
|
-
}
|
|
1195
|
-
table.linenotable td.linenos,
|
|
1196
|
-
pre.pygments .linenos {
|
|
1197
|
-
border-right: 1px solid;
|
|
1198
|
-
opacity: 0.35;
|
|
1199
|
-
padding-right: 0.5em;
|
|
1200
|
-
-webkit-user-select: none;
|
|
1201
|
-
-moz-user-select: none;
|
|
1202
|
-
-ms-user-select: none;
|
|
1203
|
-
user-select: none;
|
|
1204
|
-
}
|
|
1205
|
-
pre.pygments span.linenos {
|
|
1206
|
-
display: inline-block;
|
|
1207
|
-
margin-right: 0.75em;
|
|
1208
|
-
}
|
|
1209
|
-
.quoteblock {
|
|
1210
|
-
margin: 0 1em 1.25em 1.5em;
|
|
1211
|
-
display: table;
|
|
1212
|
-
}
|
|
1213
|
-
.quoteblock:not(.excerpt) > .title {
|
|
1214
|
-
margin-left: -1.5em;
|
|
1215
|
-
margin-bottom: 0.75em;
|
|
1216
|
-
}
|
|
1217
|
-
.quoteblock blockquote,
|
|
1218
|
-
.quoteblock p {
|
|
1219
|
-
color: rgba(0, 0, 0, 0.85);
|
|
1220
|
-
font-size: 1.15rem;
|
|
1221
|
-
line-height: 1.75;
|
|
1222
|
-
word-spacing: 0.1em;
|
|
1223
|
-
letter-spacing: 0;
|
|
1224
|
-
font-style: italic;
|
|
1225
|
-
text-align: justify;
|
|
1226
|
-
}
|
|
1227
|
-
.quoteblock blockquote {
|
|
1228
|
-
margin: 0;
|
|
1229
|
-
padding: 0;
|
|
1230
|
-
border: 0;
|
|
1231
|
-
}
|
|
1232
|
-
.quoteblock blockquote::before {
|
|
1233
|
-
content: '\201c';
|
|
1234
|
-
float: left;
|
|
1235
|
-
font-size: 2.75em;
|
|
1236
|
-
font-weight: bold;
|
|
1237
|
-
line-height: 0.6em;
|
|
1238
|
-
margin-left: -0.6em;
|
|
1239
|
-
color: #7a2518;
|
|
1240
|
-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
1241
|
-
}
|
|
1242
|
-
.quoteblock blockquote > .paragraph:last-child p {
|
|
1243
|
-
margin-bottom: 0;
|
|
1244
|
-
}
|
|
1245
|
-
.quoteblock .attribution {
|
|
1246
|
-
margin-top: 0.75em;
|
|
1247
|
-
margin-right: 0.5ex;
|
|
1248
|
-
text-align: right;
|
|
1249
|
-
}
|
|
1250
|
-
.verseblock {
|
|
1251
|
-
margin: 0 1em 1.25em;
|
|
1252
|
-
}
|
|
1253
|
-
.verseblock pre {
|
|
1254
|
-
font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
|
|
1255
|
-
font-size: 1.15rem;
|
|
1256
|
-
color: rgba(0, 0, 0, 0.85);
|
|
1257
|
-
font-weight: 300;
|
|
1258
|
-
text-rendering: optimizeLegibility;
|
|
1259
|
-
}
|
|
1260
|
-
.verseblock pre strong {
|
|
1261
|
-
font-weight: 400;
|
|
1262
|
-
}
|
|
1263
|
-
.verseblock .attribution {
|
|
1264
|
-
margin-top: 1.25rem;
|
|
1265
|
-
margin-left: 0.5ex;
|
|
1266
|
-
}
|
|
1267
|
-
.quoteblock .attribution,
|
|
1268
|
-
.verseblock .attribution {
|
|
1269
|
-
font-size: 0.9375em;
|
|
1270
|
-
line-height: 1.45;
|
|
1271
|
-
font-style: italic;
|
|
1272
|
-
}
|
|
1273
|
-
.quoteblock .attribution br,
|
|
1274
|
-
.verseblock .attribution br {
|
|
1275
|
-
display: none;
|
|
1276
|
-
}
|
|
1277
|
-
.quoteblock .attribution cite,
|
|
1278
|
-
.verseblock .attribution cite {
|
|
1279
|
-
display: block;
|
|
1280
|
-
letter-spacing: -0.025em;
|
|
1281
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1282
|
-
}
|
|
1283
|
-
.quoteblock.abstract blockquote::before,
|
|
1284
|
-
.quoteblock.excerpt blockquote::before,
|
|
1285
|
-
.quoteblock .quoteblock blockquote::before {
|
|
1286
|
-
display: none;
|
|
1287
|
-
}
|
|
1288
|
-
.quoteblock.abstract blockquote,
|
|
1289
|
-
.quoteblock.abstract p,
|
|
1290
|
-
.quoteblock.excerpt blockquote,
|
|
1291
|
-
.quoteblock.excerpt p,
|
|
1292
|
-
.quoteblock .quoteblock blockquote,
|
|
1293
|
-
.quoteblock .quoteblock p {
|
|
1294
|
-
line-height: 1.6;
|
|
1295
|
-
word-spacing: 0;
|
|
1296
|
-
}
|
|
1297
|
-
.quoteblock.abstract {
|
|
1298
|
-
margin: 0 1em 1.25em;
|
|
1299
|
-
display: block;
|
|
1300
|
-
}
|
|
1301
|
-
.quoteblock.abstract > .title {
|
|
1302
|
-
margin: 0 0 0.375em;
|
|
1303
|
-
font-size: 1.15em;
|
|
1304
|
-
text-align: center;
|
|
1305
|
-
}
|
|
1306
|
-
.quoteblock.excerpt > blockquote,
|
|
1307
|
-
.quoteblock .quoteblock {
|
|
1308
|
-
padding: 0 0 0.25em 1em;
|
|
1309
|
-
border-left: 0.25em solid #dddddf;
|
|
1310
|
-
}
|
|
1311
|
-
.quoteblock.excerpt,
|
|
1312
|
-
.quoteblock .quoteblock {
|
|
1313
|
-
margin-left: 0;
|
|
1314
|
-
}
|
|
1315
|
-
.quoteblock.excerpt blockquote,
|
|
1316
|
-
.quoteblock.excerpt p,
|
|
1317
|
-
.quoteblock .quoteblock blockquote,
|
|
1318
|
-
.quoteblock .quoteblock p {
|
|
1319
|
-
color: inherit;
|
|
1320
|
-
font-size: 1.0625rem;
|
|
1321
|
-
}
|
|
1322
|
-
.quoteblock.excerpt .attribution,
|
|
1323
|
-
.quoteblock .quoteblock .attribution {
|
|
1324
|
-
color: inherit;
|
|
1325
|
-
font-size: 0.85rem;
|
|
1326
|
-
text-align: left;
|
|
1327
|
-
margin-right: 0;
|
|
1328
|
-
}
|
|
1329
|
-
p.tableblock:last-child {
|
|
1330
|
-
margin-bottom: 0;
|
|
1331
|
-
}
|
|
1332
|
-
td.tableblock > .content {
|
|
1333
|
-
margin-bottom: 1.25em;
|
|
1334
|
-
word-wrap: anywhere;
|
|
1335
|
-
}
|
|
1336
|
-
td.tableblock > .content > :last-child {
|
|
1337
|
-
margin-bottom: -1.25em;
|
|
1338
|
-
}
|
|
1339
|
-
table.tableblock,
|
|
1340
|
-
th.tableblock,
|
|
1341
|
-
td.tableblock {
|
|
1342
|
-
border: 0 solid #dedede;
|
|
1343
|
-
}
|
|
1344
|
-
table.grid-all > * > tr > * {
|
|
1345
|
-
border-width: 1px;
|
|
1346
|
-
}
|
|
1347
|
-
table.grid-cols > * > tr > * {
|
|
1348
|
-
border-width: 0 1px;
|
|
1349
|
-
}
|
|
1350
|
-
table.grid-rows > * > tr > * {
|
|
1351
|
-
border-width: 1px 0;
|
|
1352
|
-
}
|
|
1353
|
-
table.frame-all {
|
|
1354
|
-
border-width: 1px;
|
|
1355
|
-
}
|
|
1356
|
-
table.frame-ends {
|
|
1357
|
-
border-width: 1px 0;
|
|
1358
|
-
}
|
|
1359
|
-
table.frame-sides {
|
|
1360
|
-
border-width: 0 1px;
|
|
1361
|
-
}
|
|
1362
|
-
table.frame-none > colgroup + * > :first-child > *,
|
|
1363
|
-
table.frame-sides > colgroup + * > :first-child > * {
|
|
1364
|
-
border-top-width: 0;
|
|
1365
|
-
}
|
|
1366
|
-
table.frame-none > :last-child > :last-child > *,
|
|
1367
|
-
table.frame-sides > :last-child > :last-child > * {
|
|
1368
|
-
border-bottom-width: 0;
|
|
1369
|
-
}
|
|
1370
|
-
table.frame-none > * > tr > :first-child,
|
|
1371
|
-
table.frame-ends > * > tr > :first-child {
|
|
1372
|
-
border-left-width: 0;
|
|
1373
|
-
}
|
|
1374
|
-
table.frame-none > * > tr > :last-child,
|
|
1375
|
-
table.frame-ends > * > tr > :last-child {
|
|
1376
|
-
border-right-width: 0;
|
|
1377
|
-
}
|
|
1378
|
-
table.stripes-all > * > tr,
|
|
1379
|
-
table.stripes-odd > * > tr:nth-of-type(odd),
|
|
1380
|
-
table.stripes-even > * > tr:nth-of-type(even),
|
|
1381
|
-
table.stripes-hover > * > tr:hover {
|
|
1382
|
-
background: #f8f8f7;
|
|
1383
|
-
}
|
|
1384
|
-
th.halign-left,
|
|
1385
|
-
td.halign-left {
|
|
1386
|
-
text-align: left;
|
|
1387
|
-
}
|
|
1388
|
-
th.halign-right,
|
|
1389
|
-
td.halign-right {
|
|
1390
|
-
text-align: right;
|
|
1391
|
-
}
|
|
1392
|
-
th.halign-center,
|
|
1393
|
-
td.halign-center {
|
|
1394
|
-
text-align: center;
|
|
1395
|
-
}
|
|
1396
|
-
th.valign-top,
|
|
1397
|
-
td.valign-top {
|
|
1398
|
-
vertical-align: top;
|
|
1399
|
-
}
|
|
1400
|
-
th.valign-bottom,
|
|
1401
|
-
td.valign-bottom {
|
|
1402
|
-
vertical-align: bottom;
|
|
1403
|
-
}
|
|
1404
|
-
th.valign-middle,
|
|
1405
|
-
td.valign-middle {
|
|
1406
|
-
vertical-align: middle;
|
|
1407
|
-
}
|
|
1408
|
-
table thead th,
|
|
1409
|
-
table tfoot th {
|
|
1410
|
-
font-weight: bold;
|
|
1411
|
-
}
|
|
1412
|
-
tbody tr th {
|
|
1413
|
-
background: #f7f8f7;
|
|
1414
|
-
}
|
|
1415
|
-
tbody tr th,
|
|
1416
|
-
tbody tr th p,
|
|
1417
|
-
tfoot tr th,
|
|
1418
|
-
tfoot tr th p {
|
|
1419
|
-
color: rgba(0, 0, 0, 0.8);
|
|
1420
|
-
font-weight: bold;
|
|
1421
|
-
}
|
|
1422
|
-
p.tableblock > code:only-child {
|
|
1423
|
-
background: none;
|
|
1424
|
-
padding: 0;
|
|
1425
|
-
}
|
|
1426
|
-
p.tableblock {
|
|
1427
|
-
font-size: 1em;
|
|
1428
|
-
}
|
|
1429
|
-
ol {
|
|
1430
|
-
margin-left: 1.75em;
|
|
1431
|
-
}
|
|
1432
|
-
ul li ol {
|
|
1433
|
-
margin-left: 1.5em;
|
|
1434
|
-
}
|
|
1435
|
-
dl dd {
|
|
1436
|
-
margin-left: 1.125em;
|
|
1437
|
-
}
|
|
1438
|
-
dl dd:last-child,
|
|
1439
|
-
dl dd:last-child > :last-child {
|
|
1440
|
-
margin-bottom: 0;
|
|
1441
|
-
}
|
|
1442
|
-
li p,
|
|
1443
|
-
ul dd,
|
|
1444
|
-
ol dd,
|
|
1445
|
-
.olist .olist,
|
|
1446
|
-
.ulist .ulist,
|
|
1447
|
-
.ulist .olist,
|
|
1448
|
-
.olist .ulist {
|
|
1449
|
-
margin-bottom: 0.625em;
|
|
1450
|
-
}
|
|
1451
|
-
ul.checklist,
|
|
1452
|
-
ul.none,
|
|
1453
|
-
ol.none,
|
|
1454
|
-
ul.no-bullet,
|
|
1455
|
-
ol.no-bullet,
|
|
1456
|
-
ol.unnumbered,
|
|
1457
|
-
ul.unstyled,
|
|
1458
|
-
ol.unstyled {
|
|
1459
|
-
list-style-type: none;
|
|
1460
|
-
}
|
|
1461
|
-
ul.no-bullet,
|
|
1462
|
-
ol.no-bullet,
|
|
1463
|
-
ol.unnumbered {
|
|
1464
|
-
margin-left: 0.625em;
|
|
1465
|
-
}
|
|
1466
|
-
ul.unstyled,
|
|
1467
|
-
ol.unstyled {
|
|
1468
|
-
margin-left: 0;
|
|
1469
|
-
}
|
|
1470
|
-
li > p:empty:only-child::before {
|
|
1471
|
-
content: '';
|
|
1472
|
-
display: inline-block;
|
|
1473
|
-
}
|
|
1474
|
-
ul.checklist > li > p:first-child {
|
|
1475
|
-
margin-left: -1em;
|
|
1476
|
-
}
|
|
1477
|
-
ul.checklist > li > p:first-child > .fa-square-o:first-child,
|
|
1478
|
-
ul.checklist > li > p:first-child > .fa-check-square-o:first-child {
|
|
1479
|
-
width: 1.25em;
|
|
1480
|
-
font-size: 0.8em;
|
|
1481
|
-
position: relative;
|
|
1482
|
-
bottom: 0.125em;
|
|
1483
|
-
}
|
|
1484
|
-
ul.checklist > li > p:first-child > input[type='checkbox']:first-child {
|
|
1485
|
-
margin-right: 0.25em;
|
|
1486
|
-
}
|
|
1487
|
-
ul.inline {
|
|
1488
|
-
display: flex;
|
|
1489
|
-
flex-flow: row wrap;
|
|
1490
|
-
list-style: none;
|
|
1491
|
-
margin: 0 0 0.625em -1.25em;
|
|
1492
|
-
}
|
|
1493
|
-
ul.inline > li {
|
|
1494
|
-
margin-left: 1.25em;
|
|
1495
|
-
}
|
|
1496
|
-
.unstyled dl dt {
|
|
1497
|
-
font-weight: 400;
|
|
1498
|
-
font-style: normal;
|
|
1499
|
-
}
|
|
1500
|
-
ol.arabic {
|
|
1501
|
-
list-style-type: decimal;
|
|
1502
|
-
}
|
|
1503
|
-
ol.decimal {
|
|
1504
|
-
list-style-type: decimal-leading-zero;
|
|
1505
|
-
}
|
|
1506
|
-
ol.loweralpha {
|
|
1507
|
-
list-style-type: lower-alpha;
|
|
1508
|
-
}
|
|
1509
|
-
ol.upperalpha {
|
|
1510
|
-
list-style-type: upper-alpha;
|
|
1511
|
-
}
|
|
1512
|
-
ol.lowerroman {
|
|
1513
|
-
list-style-type: lower-roman;
|
|
1514
|
-
}
|
|
1515
|
-
ol.upperroman {
|
|
1516
|
-
list-style-type: upper-roman;
|
|
1517
|
-
}
|
|
1518
|
-
ol.lowergreek {
|
|
1519
|
-
list-style-type: lower-greek;
|
|
1520
|
-
}
|
|
1521
|
-
.hdlist > table,
|
|
1522
|
-
.colist > table {
|
|
1523
|
-
border: 0;
|
|
1524
|
-
background: none;
|
|
1525
|
-
}
|
|
1526
|
-
.hdlist > table > tbody > tr,
|
|
1527
|
-
.colist > table > tbody > tr {
|
|
1528
|
-
background: none;
|
|
1529
|
-
}
|
|
1530
|
-
td.hdlist1,
|
|
1531
|
-
td.hdlist2 {
|
|
1532
|
-
vertical-align: top;
|
|
1533
|
-
padding: 0 0.625em;
|
|
1534
|
-
}
|
|
1535
|
-
td.hdlist1 {
|
|
1536
|
-
font-weight: bold;
|
|
1537
|
-
padding-bottom: 1.25em;
|
|
1538
|
-
}
|
|
1539
|
-
td.hdlist2 {
|
|
1540
|
-
word-wrap: anywhere;
|
|
1541
|
-
}
|
|
1542
|
-
.literalblock + .colist,
|
|
1543
|
-
.listingblock + .colist {
|
|
1544
|
-
margin-top: -0.5em;
|
|
1545
|
-
}
|
|
1546
|
-
.colist td:not([class]):first-child {
|
|
1547
|
-
padding: 0.4em 0.75em 0;
|
|
1548
|
-
line-height: 1;
|
|
1549
|
-
vertical-align: top;
|
|
1550
|
-
}
|
|
1551
|
-
.colist td:not([class]):first-child img {
|
|
1552
|
-
max-width: none;
|
|
1553
|
-
}
|
|
1554
|
-
.colist td:not([class]):last-child {
|
|
1555
|
-
padding: 0.25em 0;
|
|
1556
|
-
}
|
|
1557
|
-
.thumb,
|
|
1558
|
-
.th {
|
|
1559
|
-
line-height: 0;
|
|
1560
|
-
display: inline-block;
|
|
1561
|
-
border: 4px solid #fff;
|
|
1562
|
-
box-shadow: 0 0 0 1px #ddd;
|
|
1563
|
-
}
|
|
1564
|
-
.imageblock.left {
|
|
1565
|
-
margin: 0.25em 0.625em 1.25em 0;
|
|
1566
|
-
}
|
|
1567
|
-
.imageblock.right {
|
|
1568
|
-
margin: 0.25em 0 1.25em 0.625em;
|
|
1569
|
-
}
|
|
1570
|
-
.imageblock > .title {
|
|
1571
|
-
margin-bottom: 0;
|
|
1572
|
-
}
|
|
1573
|
-
.imageblock.thumb,
|
|
1574
|
-
.imageblock.th {
|
|
1575
|
-
border-width: 6px;
|
|
1576
|
-
}
|
|
1577
|
-
.imageblock.thumb > .title,
|
|
1578
|
-
.imageblock.th > .title {
|
|
1579
|
-
padding: 0 0.125em;
|
|
1580
|
-
}
|
|
1581
|
-
.image.left,
|
|
1582
|
-
.image.right {
|
|
1583
|
-
margin-top: 0.25em;
|
|
1584
|
-
margin-bottom: 0.25em;
|
|
1585
|
-
display: inline-block;
|
|
1586
|
-
line-height: 0;
|
|
1587
|
-
}
|
|
1588
|
-
.image.left {
|
|
1589
|
-
margin-right: 0.625em;
|
|
1590
|
-
}
|
|
1591
|
-
.image.right {
|
|
1592
|
-
margin-left: 0.625em;
|
|
1593
|
-
}
|
|
1594
|
-
a.image {
|
|
1595
|
-
text-decoration: none;
|
|
1596
|
-
display: inline-block;
|
|
1597
|
-
}
|
|
1598
|
-
a.image object {
|
|
1599
|
-
pointer-events: none;
|
|
1600
|
-
}
|
|
1601
|
-
sup.footnote,
|
|
1602
|
-
sup.footnoteref {
|
|
1603
|
-
font-size: 0.875em;
|
|
1604
|
-
position: static;
|
|
1605
|
-
vertical-align: super;
|
|
1606
|
-
}
|
|
1607
|
-
sup.footnote a,
|
|
1608
|
-
sup.footnoteref a {
|
|
1609
|
-
text-decoration: none;
|
|
1610
|
-
}
|
|
1611
|
-
sup.footnote a:active,
|
|
1612
|
-
sup.footnoteref a:active {
|
|
1613
|
-
text-decoration: underline;
|
|
1614
|
-
}
|
|
1615
|
-
#footnotes {
|
|
1616
|
-
padding-top: 0.75em;
|
|
1617
|
-
padding-bottom: 0.75em;
|
|
1618
|
-
margin-bottom: 0.625em;
|
|
1619
|
-
}
|
|
1620
|
-
#footnotes hr {
|
|
1621
|
-
width: 20%;
|
|
1622
|
-
min-width: 6.25em;
|
|
1623
|
-
margin: -0.25em 0 0.75em;
|
|
1624
|
-
border-width: 1px 0 0;
|
|
1625
|
-
}
|
|
1626
|
-
#footnotes .footnote {
|
|
1627
|
-
padding: 0 0.375em 0 0.225em;
|
|
1628
|
-
line-height: 1.3334;
|
|
1629
|
-
font-size: 0.875em;
|
|
1630
|
-
margin-left: 1.2em;
|
|
1631
|
-
margin-bottom: 0.2em;
|
|
1632
|
-
}
|
|
1633
|
-
#footnotes .footnote a:first-of-type {
|
|
1634
|
-
font-weight: bold;
|
|
1635
|
-
text-decoration: none;
|
|
1636
|
-
margin-left: -1.05em;
|
|
1637
|
-
}
|
|
1638
|
-
#footnotes .footnote:last-of-type {
|
|
1639
|
-
margin-bottom: 0;
|
|
1640
|
-
}
|
|
1641
|
-
#content #footnotes {
|
|
1642
|
-
margin-top: -0.625em;
|
|
1643
|
-
margin-bottom: 0;
|
|
1644
|
-
padding: 0.75em 0;
|
|
1645
|
-
}
|
|
1646
|
-
div.unbreakable {
|
|
1647
|
-
page-break-inside: avoid;
|
|
1648
|
-
}
|
|
1649
|
-
.big {
|
|
1650
|
-
font-size: larger;
|
|
1651
|
-
}
|
|
1652
|
-
.small {
|
|
1653
|
-
font-size: smaller;
|
|
1654
|
-
}
|
|
1655
|
-
.underline {
|
|
1656
|
-
text-decoration: underline;
|
|
1657
|
-
}
|
|
1658
|
-
.overline {
|
|
1659
|
-
text-decoration: overline;
|
|
1660
|
-
}
|
|
1661
|
-
.line-through {
|
|
1662
|
-
text-decoration: line-through;
|
|
1663
|
-
}
|
|
1664
|
-
.aqua {
|
|
1665
|
-
color: #00bfbf;
|
|
1666
|
-
}
|
|
1667
|
-
.aqua-background {
|
|
1668
|
-
background: #00fafa;
|
|
1669
|
-
}
|
|
1670
|
-
.black {
|
|
1671
|
-
color: #000;
|
|
1672
|
-
}
|
|
1673
|
-
.black-background {
|
|
1674
|
-
background: #000;
|
|
1675
|
-
}
|
|
1676
|
-
.blue {
|
|
1677
|
-
color: #0000bf;
|
|
1678
|
-
}
|
|
1679
|
-
.blue-background {
|
|
1680
|
-
background: #0000fa;
|
|
1681
|
-
}
|
|
1682
|
-
.fuchsia {
|
|
1683
|
-
color: #bf00bf;
|
|
1684
|
-
}
|
|
1685
|
-
.fuchsia-background {
|
|
1686
|
-
background: #fa00fa;
|
|
1687
|
-
}
|
|
1688
|
-
.gray {
|
|
1689
|
-
color: #606060;
|
|
1690
|
-
}
|
|
1691
|
-
.gray-background {
|
|
1692
|
-
background: #7d7d7d;
|
|
1693
|
-
}
|
|
1694
|
-
.green {
|
|
1695
|
-
color: #006000;
|
|
1696
|
-
}
|
|
1697
|
-
.green-background {
|
|
1698
|
-
background: #007d00;
|
|
1699
|
-
}
|
|
1700
|
-
.lime {
|
|
1701
|
-
color: #00bf00;
|
|
1702
|
-
}
|
|
1703
|
-
.lime-background {
|
|
1704
|
-
background: #00fa00;
|
|
1705
|
-
}
|
|
1706
|
-
.maroon {
|
|
1707
|
-
color: #600000;
|
|
1708
|
-
}
|
|
1709
|
-
.maroon-background {
|
|
1710
|
-
background: #7d0000;
|
|
1711
|
-
}
|
|
1712
|
-
.navy {
|
|
1713
|
-
color: #000060;
|
|
1714
|
-
}
|
|
1715
|
-
.navy-background {
|
|
1716
|
-
background: #00007d;
|
|
1717
|
-
}
|
|
1718
|
-
.olive {
|
|
1719
|
-
color: #606000;
|
|
1720
|
-
}
|
|
1721
|
-
.olive-background {
|
|
1722
|
-
background: #7d7d00;
|
|
1723
|
-
}
|
|
1724
|
-
.purple {
|
|
1725
|
-
color: #600060;
|
|
1726
|
-
}
|
|
1727
|
-
.purple-background {
|
|
1728
|
-
background: #7d007d;
|
|
1729
|
-
}
|
|
1730
|
-
.red {
|
|
1731
|
-
color: #bf0000;
|
|
1732
|
-
}
|
|
1733
|
-
.red-background {
|
|
1734
|
-
background: #fa0000;
|
|
1735
|
-
}
|
|
1736
|
-
.silver {
|
|
1737
|
-
color: #909090;
|
|
1738
|
-
}
|
|
1739
|
-
.silver-background {
|
|
1740
|
-
background: #bcbcbc;
|
|
1741
|
-
}
|
|
1742
|
-
.teal {
|
|
1743
|
-
color: #006060;
|
|
1744
|
-
}
|
|
1745
|
-
.teal-background {
|
|
1746
|
-
background: #007d7d;
|
|
1747
|
-
}
|
|
1748
|
-
.white {
|
|
1749
|
-
color: #bfbfbf;
|
|
1750
|
-
}
|
|
1751
|
-
.white-background {
|
|
1752
|
-
background: #fafafa;
|
|
1753
|
-
}
|
|
1754
|
-
.yellow {
|
|
1755
|
-
color: #bfbf00;
|
|
1756
|
-
}
|
|
1757
|
-
.yellow-background {
|
|
1758
|
-
background: #fafa00;
|
|
1759
|
-
}
|
|
1760
|
-
span.icon > .fa {
|
|
1761
|
-
cursor: default;
|
|
1762
|
-
}
|
|
1763
|
-
a span.icon > .fa {
|
|
1764
|
-
cursor: inherit;
|
|
1765
|
-
}
|
|
1766
|
-
.admonitionblock td.icon [class^='fa icon-'] {
|
|
1767
|
-
font-size: 2.5em;
|
|
1768
|
-
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
|
|
1769
|
-
cursor: default;
|
|
1770
|
-
}
|
|
1771
|
-
.admonitionblock td.icon .icon-note::before {
|
|
1772
|
-
content: '\f05a';
|
|
1773
|
-
color: #19407c;
|
|
1774
|
-
}
|
|
1775
|
-
.admonitionblock td.icon .icon-tip::before {
|
|
1776
|
-
content: '\f0eb';
|
|
1777
|
-
text-shadow: 1px 1px 2px rgba(155, 155, 0, 0.8);
|
|
1778
|
-
color: #111;
|
|
1779
|
-
}
|
|
1780
|
-
.admonitionblock td.icon .icon-warning::before {
|
|
1781
|
-
content: '\f071';
|
|
1782
|
-
color: #bf6900;
|
|
1783
|
-
}
|
|
1784
|
-
.admonitionblock td.icon .icon-caution::before {
|
|
1785
|
-
content: '\f06d';
|
|
1786
|
-
color: #bf3400;
|
|
1787
|
-
}
|
|
1788
|
-
.admonitionblock td.icon .icon-important::before {
|
|
1789
|
-
content: '\f06a';
|
|
1790
|
-
color: #bf0000;
|
|
1791
|
-
}
|
|
1792
|
-
.conum[data-value] {
|
|
1793
|
-
display: inline-block;
|
|
1794
|
-
color: #fff !important;
|
|
1795
|
-
background: rgba(0, 0, 0, 0.8);
|
|
1796
|
-
border-radius: 50%;
|
|
1797
|
-
text-align: center;
|
|
1798
|
-
font-size: 0.75em;
|
|
1799
|
-
width: 1.67em;
|
|
1800
|
-
height: 1.67em;
|
|
1801
|
-
line-height: 1.67em;
|
|
1802
|
-
font-family: 'Open Sans', 'DejaVu Sans', sans-serif;
|
|
1803
|
-
font-style: normal;
|
|
1804
|
-
font-weight: bold;
|
|
1805
|
-
}
|
|
1806
|
-
.conum[data-value] * {
|
|
1807
|
-
color: #fff !important;
|
|
1808
|
-
}
|
|
1809
|
-
.conum[data-value] + b {
|
|
1810
|
-
display: none;
|
|
1811
|
-
}
|
|
1812
|
-
.conum[data-value]::after {
|
|
1813
|
-
content: attr(data-value);
|
|
1814
|
-
}
|
|
1815
|
-
pre .conum[data-value] {
|
|
1816
|
-
position: relative;
|
|
1817
|
-
top: -0.125em;
|
|
1818
|
-
}
|
|
1819
|
-
b.conum * {
|
|
1820
|
-
color: inherit !important;
|
|
1821
|
-
}
|
|
1822
|
-
.conum:not([data-value]):empty {
|
|
1823
|
-
display: none;
|
|
1824
|
-
}
|
|
1825
|
-
dt,
|
|
1826
|
-
th.tableblock,
|
|
1827
|
-
td.content,
|
|
1828
|
-
div.footnote {
|
|
1829
|
-
text-rendering: optimizeLegibility;
|
|
1830
|
-
}
|
|
1831
|
-
h1,
|
|
1832
|
-
h2,
|
|
1833
|
-
p,
|
|
1834
|
-
td.content,
|
|
1835
|
-
span.alt,
|
|
1836
|
-
summary {
|
|
1837
|
-
letter-spacing: -0.01em;
|
|
1838
|
-
}
|
|
1839
|
-
p strong,
|
|
1840
|
-
td.content strong,
|
|
1841
|
-
div.footnote strong {
|
|
1842
|
-
letter-spacing: -0.005em;
|
|
1843
|
-
}
|
|
1844
|
-
p,
|
|
1845
|
-
blockquote,
|
|
1846
|
-
dt,
|
|
1847
|
-
td.content,
|
|
1848
|
-
td.hdlist1,
|
|
1849
|
-
span.alt,
|
|
1850
|
-
summary {
|
|
1851
|
-
font-size: 1.0625rem;
|
|
1852
|
-
}
|
|
1853
|
-
p {
|
|
1854
|
-
margin-bottom: 1.25rem;
|
|
1855
|
-
}
|
|
1856
|
-
.sidebarblock p,
|
|
1857
|
-
.sidebarblock dt,
|
|
1858
|
-
.sidebarblock td.content,
|
|
1859
|
-
p.tableblock {
|
|
1860
|
-
font-size: 1em;
|
|
1861
|
-
}
|
|
1862
|
-
.exampleblock > .content {
|
|
1863
|
-
background: #fffef7;
|
|
1864
|
-
border-color: #e0e0dc;
|
|
1865
|
-
box-shadow: 0 1px 4px #e0e0dc;
|
|
1866
|
-
}
|
|
1867
|
-
.print-only {
|
|
1868
|
-
display: none !important;
|
|
1869
|
-
}
|
|
1870
|
-
@page {
|
|
1871
|
-
margin: 1.25cm 0.75cm;
|
|
1872
|
-
}
|
|
1873
|
-
@media print {
|
|
1874
|
-
* {
|
|
1875
|
-
box-shadow: none !important;
|
|
1876
|
-
text-shadow: none !important;
|
|
1877
|
-
}
|
|
1878
|
-
html {
|
|
1879
|
-
font-size: 80%;
|
|
1880
|
-
}
|
|
1881
|
-
a {
|
|
1882
|
-
color: inherit !important;
|
|
1883
|
-
text-decoration: underline !important;
|
|
1884
|
-
}
|
|
1885
|
-
a.bare,
|
|
1886
|
-
a[href^='#'],
|
|
1887
|
-
a[href^='mailto:'] {
|
|
1888
|
-
text-decoration: none !important;
|
|
1889
|
-
}
|
|
1890
|
-
a[href^='http:']:not(.bare)::after,
|
|
1891
|
-
a[href^='https:']:not(.bare)::after {
|
|
1892
|
-
content: '(' attr(href) ')';
|
|
1893
|
-
display: inline-block;
|
|
1894
|
-
font-size: 0.875em;
|
|
1895
|
-
padding-left: 0.25em;
|
|
1896
|
-
}
|
|
1897
|
-
abbr[title] {
|
|
1898
|
-
border-bottom: 1px dotted;
|
|
1899
|
-
}
|
|
1900
|
-
abbr[title]::after {
|
|
1901
|
-
content: ' (' attr(title) ')';
|
|
1902
|
-
}
|
|
1903
|
-
pre,
|
|
1904
|
-
blockquote,
|
|
1905
|
-
tr,
|
|
1906
|
-
img,
|
|
1907
|
-
object,
|
|
1908
|
-
svg {
|
|
1909
|
-
page-break-inside: avoid;
|
|
1910
|
-
}
|
|
1911
|
-
thead {
|
|
1912
|
-
display: table-header-group;
|
|
1913
|
-
}
|
|
1914
|
-
svg {
|
|
1915
|
-
max-width: 100%;
|
|
1916
|
-
}
|
|
1917
|
-
p,
|
|
1918
|
-
blockquote,
|
|
1919
|
-
dt,
|
|
1920
|
-
td.content {
|
|
1921
|
-
font-size: 1em;
|
|
1922
|
-
orphans: 3;
|
|
1923
|
-
widows: 3;
|
|
1924
|
-
}
|
|
1925
|
-
h2,
|
|
1926
|
-
h3,
|
|
1927
|
-
#toctitle,
|
|
1928
|
-
.sidebarblock > .content > .title {
|
|
1929
|
-
page-break-after: avoid;
|
|
1930
|
-
}
|
|
1931
|
-
#header,
|
|
1932
|
-
#content,
|
|
1933
|
-
#footnotes,
|
|
1934
|
-
#footer {
|
|
1935
|
-
max-width: none;
|
|
1936
|
-
}
|
|
1937
|
-
#toc,
|
|
1938
|
-
.sidebarblock,
|
|
1939
|
-
.exampleblock > .content {
|
|
1940
|
-
background: none !important;
|
|
1941
|
-
}
|
|
1942
|
-
#toc {
|
|
1943
|
-
border-bottom: 1px solid #dddddf !important;
|
|
1944
|
-
padding-bottom: 0 !important;
|
|
1945
|
-
}
|
|
1946
|
-
body.book #header {
|
|
1947
|
-
text-align: center;
|
|
1948
|
-
}
|
|
1949
|
-
body.book #header > h1:first-child {
|
|
1950
|
-
border: 0 !important;
|
|
1951
|
-
margin: 2.5em 0 1em;
|
|
1952
|
-
}
|
|
1953
|
-
body.book #header .details {
|
|
1954
|
-
border: 0 !important;
|
|
1955
|
-
display: block;
|
|
1956
|
-
padding: 0 !important;
|
|
1957
|
-
}
|
|
1958
|
-
body.book #header .details span:first-child {
|
|
1959
|
-
margin-left: 0 !important;
|
|
1960
|
-
}
|
|
1961
|
-
body.book #header .details br {
|
|
1962
|
-
display: block;
|
|
1963
|
-
}
|
|
1964
|
-
body.book #header .details br + span::before {
|
|
1965
|
-
content: none !important;
|
|
1966
|
-
}
|
|
1967
|
-
body.book #toc {
|
|
1968
|
-
border: 0 !important;
|
|
1969
|
-
text-align: left !important;
|
|
1970
|
-
padding: 0 !important;
|
|
1971
|
-
margin: 0 !important;
|
|
1972
|
-
}
|
|
1973
|
-
body.book #toc,
|
|
1974
|
-
body.book #preamble,
|
|
1975
|
-
body.book h1.sect0,
|
|
1976
|
-
body.book .sect1 > h2 {
|
|
1977
|
-
page-break-before: always;
|
|
1978
|
-
}
|
|
1979
|
-
.listingblock code[data-lang]::before {
|
|
1980
|
-
display: block;
|
|
1981
|
-
}
|
|
1982
|
-
#footer {
|
|
1983
|
-
padding: 0 0.9375em;
|
|
1984
|
-
}
|
|
1985
|
-
.hide-on-print {
|
|
1986
|
-
display: none !important;
|
|
1987
|
-
}
|
|
1988
|
-
.print-only {
|
|
1989
|
-
display: block !important;
|
|
1990
|
-
}
|
|
1991
|
-
.hide-for-print {
|
|
1992
|
-
display: none !important;
|
|
1993
|
-
}
|
|
1994
|
-
.show-for-print {
|
|
1995
|
-
display: inherit !important;
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
@media amzn-kf8, print {
|
|
1999
|
-
#header > h1:first-child {
|
|
2000
|
-
margin-top: 1.25rem;
|
|
2001
|
-
}
|
|
2002
|
-
.sect1 {
|
|
2003
|
-
padding: 0 !important;
|
|
2004
|
-
}
|
|
2005
|
-
.sect1 + .sect1 {
|
|
2006
|
-
border: 0;
|
|
2007
|
-
}
|
|
2008
|
-
#footer {
|
|
2009
|
-
background: none;
|
|
2010
|
-
}
|
|
2011
|
-
#footer-text {
|
|
2012
|
-
color: rgba(0, 0, 0, 0.6);
|
|
2013
|
-
font-size: 0.9em;
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
@media amzn-kf8 {
|
|
2017
|
-
#header,
|
|
2018
|
-
#content,
|
|
2019
|
-
#footnotes,
|
|
2020
|
-
#footer {
|
|
2021
|
-
padding: 0;
|
|
2022
|
-
}
|
|
2023
|
-
}
|
|
2024
|
-
</style>
|
|
2025
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
|
|
2026
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/styles/github.min.css" />
|
|
2027
|
-
</head>
|
|
2028
|
-
<body class="article toc2 toc-left">
|
|
2029
|
-
<div id="header">
|
|
2030
|
-
<h1>GameTime Module Reference</h1>
|
|
2031
|
-
<div id="toc" class="toc2">
|
|
2032
|
-
<div id="toctitle">Table of Contents</div>
|
|
2033
|
-
<ul class="sectlevel1">
|
|
2034
|
-
<li><a href="#architectural-purpose">1. Architectural Purpose</a></li>
|
|
2035
|
-
<li>
|
|
2036
|
-
<a href="#api-reference">2. API Reference</a>
|
|
2037
|
-
<ul class="sectlevel2">
|
|
2038
|
-
<li>
|
|
2039
|
-
<a href="#tickinterval-number">2.1. <code>tickInterval: number</code></a>
|
|
2040
|
-
</li>
|
|
2041
|
-
<li>
|
|
2042
|
-
<a href="#totalticks-number">2.2. <code>totalTicks: number</code></a>
|
|
2043
|
-
</li>
|
|
2044
|
-
<li>
|
|
2045
|
-
<a href="#elapsedtime-number">2.3. <code>elapsedTime: number</code></a>
|
|
2046
|
-
</li>
|
|
2047
|
-
<li>
|
|
2048
|
-
<a href="#shouldtick-boolean">2.4. <code>shouldTick(): boolean</code></a>
|
|
2049
|
-
</li>
|
|
2050
|
-
<li>
|
|
2051
|
-
<a href="#updatedeltatime-number-void">2.5. <code>update(deltaTime: number): void</code></a>
|
|
2052
|
-
</li>
|
|
2053
|
-
<li>
|
|
2054
|
-
<a href="#reset-void">2.6. <code>reset(): void</code></a>
|
|
2055
|
-
</li>
|
|
2056
|
-
<li>
|
|
2057
|
-
<a href="#istickeveryinterval-number-boolean">2.7. <code>isTickEvery(interval: number): boolean</code></a>
|
|
2058
|
-
</li>
|
|
2059
|
-
<li>
|
|
2060
|
-
<a href="#incrementtickintervalamount-number-void">2.8. <code>incrementTickInterval(amount: number): void</code></a>
|
|
2061
|
-
</li>
|
|
2062
|
-
<li>
|
|
2063
|
-
<a href="#decrementtickintervalamount-number-void">2.9. <code>decrementTickInterval(amount: number): void</code></a>
|
|
2064
|
-
</li>
|
|
2065
|
-
<li>
|
|
2066
|
-
<a href="#settickintervalinterval-number-void">2.10. <code>setTickInterval(interval: number): void</code></a>
|
|
2067
|
-
</li>
|
|
2068
|
-
<li>
|
|
2069
|
-
<a href="#setmintickintervalinterval-number-void">2.11. <code>setMinTickInterval(interval: number): void</code></a>
|
|
2070
|
-
</li>
|
|
2071
|
-
<li>
|
|
2072
|
-
<a href="#getdebugdata-recordstring-string-number-boolean"
|
|
2073
|
-
>2.12. <code>getDebugData(): Record<string, string | number | boolean></code></a
|
|
2074
|
-
>
|
|
2075
|
-
</li>
|
|
2076
|
-
<li>
|
|
2077
|
-
<a href="#captureinitialstate-void">2.13. <code>captureInitialState(): void</code></a>
|
|
2078
|
-
</li>
|
|
2079
|
-
</ul>
|
|
2080
|
-
</li>
|
|
2081
|
-
</ul>
|
|
2082
|
-
</div>
|
|
2083
|
-
</div>
|
|
2084
|
-
<div id="content">
|
|
2085
|
-
<div class="sect1">
|
|
2086
|
-
<h2 id="architectural-purpose"><a class="link" href="#architectural-purpose">1. Architectural Purpose</a></h2>
|
|
2087
|
-
<div class="sectionbody">
|
|
2088
|
-
<div class="paragraph">
|
|
2089
|
-
<p>
|
|
2090
|
-
The <code>GameTime</code> module manages the engine’s logical clock independent of the visual context. By decoupling the
|
|
2091
|
-
deterministic game logic "ticks" from the unpredictable visual frame rate of the browser, it ensures consistent gameplay speed and
|
|
2092
|
-
difficulty-progression physics regardless of the device’s hardware performance capabilities.
|
|
2093
|
-
</p>
|
|
2094
|
-
</div>
|
|
2095
|
-
</div>
|
|
2096
|
-
</div>
|
|
2097
|
-
<div class="sect1">
|
|
2098
|
-
<h2 id="api-reference"><a class="link" href="#api-reference">2. API Reference</a></h2>
|
|
2099
|
-
<div class="sectionbody">
|
|
2100
|
-
<div class="sect2">
|
|
2101
|
-
<h3 id="tickinterval-number">
|
|
2102
|
-
<a class="link" href="#tickinterval-number">2.1. <code>tickInterval: number</code></a>
|
|
2103
|
-
</h3>
|
|
2104
|
-
<div class="paragraph">
|
|
2105
|
-
<p>Getter/Setter for the game logic speed in milliseconds.</p>
|
|
2106
|
-
</div>
|
|
2107
|
-
<div class="paragraph">
|
|
2108
|
-
<p><strong>Returns</strong></p>
|
|
2109
|
-
</div>
|
|
2110
|
-
<div class="paragraph">
|
|
2111
|
-
<p><code>number</code> - The current time between logic ticks.</p>
|
|
2112
|
-
</div>
|
|
2113
|
-
<div class="paragraph">
|
|
2114
|
-
<p><strong>Behavior</strong></p>
|
|
2115
|
-
</div>
|
|
2116
|
-
<div class="paragraph">
|
|
2117
|
-
<p>Lowering this value makes the game run faster (e.g., used for difficulty progression).</p>
|
|
2118
|
-
</div>
|
|
2119
|
-
<hr />
|
|
2120
|
-
</div>
|
|
2121
|
-
<div class="sect2">
|
|
2122
|
-
<h3 id="totalticks-number">
|
|
2123
|
-
<a class="link" href="#totalticks-number">2.2. <code>totalTicks: number</code></a>
|
|
2124
|
-
</h3>
|
|
2125
|
-
<div class="paragraph">
|
|
2126
|
-
<p>Read-only property returning the total number of logic ticks that have occurred since the game started.</p>
|
|
2127
|
-
</div>
|
|
2128
|
-
<hr />
|
|
2129
|
-
</div>
|
|
2130
|
-
<div class="sect2">
|
|
2131
|
-
<h3 id="elapsedtime-number">
|
|
2132
|
-
<a class="link" href="#elapsedtime-number">2.3. <code>elapsedTime: number</code></a>
|
|
2133
|
-
</h3>
|
|
2134
|
-
<div class="paragraph">
|
|
2135
|
-
<p>Read-only property returning the total time in milliseconds elapsed since the game started.</p>
|
|
2136
|
-
</div>
|
|
2137
|
-
<hr />
|
|
2138
|
-
</div>
|
|
2139
|
-
<div class="sect2">
|
|
2140
|
-
<h3 id="shouldtick-boolean">
|
|
2141
|
-
<a class="link" href="#shouldtick-boolean">2.4. <code>shouldTick(): boolean</code></a>
|
|
2142
|
-
</h3>
|
|
2143
|
-
<div class="paragraph">
|
|
2144
|
-
<p>Determines if a logic update should be executed.</p>
|
|
2145
|
-
</div>
|
|
2146
|
-
<div class="paragraph">
|
|
2147
|
-
<p><strong>Returns</strong></p>
|
|
2148
|
-
</div>
|
|
2149
|
-
<div class="paragraph">
|
|
2150
|
-
<p>
|
|
2151
|
-
<code>boolean</code> - <code>true</code> if the internal ticker buffer (accumulator) has exceeded the <code>tickInterval</code>.
|
|
2152
|
-
</p>
|
|
2153
|
-
</div>
|
|
2154
|
-
<div class="paragraph">
|
|
2155
|
-
<p><strong>Behavior</strong></p>
|
|
2156
|
-
</div>
|
|
2157
|
-
<div class="paragraph">
|
|
2158
|
-
<p>
|
|
2159
|
-
Called by the main loop. If it returns true, it automatically subtracts the <code>tickInterval</code> from the
|
|
2160
|
-
<code>tickAccumulator</code> to maintain a stable clock.
|
|
2161
|
-
</p>
|
|
2162
|
-
</div>
|
|
2163
|
-
<hr />
|
|
2164
|
-
</div>
|
|
2165
|
-
<div class="sect2">
|
|
2166
|
-
<h3 id="updatedeltatime-number-void">
|
|
2167
|
-
<a class="link" href="#updatedeltatime-number-void">2.5. <code>update(deltaTime: number): void</code></a>
|
|
2168
|
-
</h3>
|
|
2169
|
-
<div class="paragraph">
|
|
2170
|
-
<p>Advances the internal time buffer (tick accumulator).</p>
|
|
2171
|
-
</div>
|
|
2172
|
-
<div class="paragraph">
|
|
2173
|
-
<p><strong>Parameters</strong></p>
|
|
2174
|
-
</div>
|
|
2175
|
-
<table class="tableblock frame-all grid-all stretch">
|
|
2176
|
-
<colgroup>
|
|
2177
|
-
<col style="width: 20%" />
|
|
2178
|
-
<col style="width: 20%" />
|
|
2179
|
-
<col style="width: 60%" />
|
|
2180
|
-
</colgroup>
|
|
2181
|
-
<tbody>
|
|
2182
|
-
<tr>
|
|
2183
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
2184
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
2185
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
2186
|
-
</tr>
|
|
2187
|
-
<tr>
|
|
2188
|
-
<td class="tableblock halign-left valign-top">
|
|
2189
|
-
<p class="tableblock"><code>deltaTime</code></p>
|
|
2190
|
-
</td>
|
|
2191
|
-
<td class="tableblock halign-left valign-top">
|
|
2192
|
-
<p class="tableblock"><code>number</code></p>
|
|
2193
|
-
</td>
|
|
2194
|
-
<td class="tableblock halign-left valign-top">
|
|
2195
|
-
<p class="tableblock">Time physically elapsed since the last rendering frame (in milliseconds).</p>
|
|
2196
|
-
</td>
|
|
2197
|
-
</tr>
|
|
2198
|
-
</tbody>
|
|
2199
|
-
</table>
|
|
2200
|
-
<hr />
|
|
2201
|
-
</div>
|
|
2202
|
-
<div class="sect2">
|
|
2203
|
-
<h3 id="reset-void">
|
|
2204
|
-
<a class="link" href="#reset-void">2.6. <code>reset(): void</code></a>
|
|
2205
|
-
</h3>
|
|
2206
|
-
<div class="paragraph">
|
|
2207
|
-
<p>Clears the tick accumulator.</p>
|
|
2208
|
-
</div>
|
|
2209
|
-
<div class="paragraph">
|
|
2210
|
-
<p><strong>Behavior</strong></p>
|
|
2211
|
-
</div>
|
|
2212
|
-
<div class="paragraph">
|
|
2213
|
-
<p>Prevents a "burst" of logic updates after resuming from a long pause or game restart.</p>
|
|
2214
|
-
</div>
|
|
2215
|
-
<hr />
|
|
2216
|
-
</div>
|
|
2217
|
-
<div class="sect2">
|
|
2218
|
-
<h3 id="istickeveryinterval-number-boolean">
|
|
2219
|
-
<a class="link" href="#istickeveryinterval-number-boolean">2.7. <code>isTickEvery(interval: number): boolean</code></a>
|
|
2220
|
-
</h3>
|
|
2221
|
-
<div class="paragraph">
|
|
2222
|
-
<p>
|
|
2223
|
-
Returns <code>true</code> if the <code>totalTicks</code> is a multiple of the specified <code>interval</code>. Useful for
|
|
2224
|
-
scheduling recurring game events (e.g., spawning an item every 20 ticks).
|
|
2225
|
-
</p>
|
|
2226
|
-
</div>
|
|
2227
|
-
<div class="paragraph">
|
|
2228
|
-
<p><strong>Parameters</strong></p>
|
|
2229
|
-
</div>
|
|
2230
|
-
<table class="tableblock frame-all grid-all stretch">
|
|
2231
|
-
<colgroup>
|
|
2232
|
-
<col style="width: 20%" />
|
|
2233
|
-
<col style="width: 20%" />
|
|
2234
|
-
<col style="width: 60%" />
|
|
2235
|
-
</colgroup>
|
|
2236
|
-
<tbody>
|
|
2237
|
-
<tr>
|
|
2238
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
2239
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
2240
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
2241
|
-
</tr>
|
|
2242
|
-
<tr>
|
|
2243
|
-
<td class="tableblock halign-left valign-top">
|
|
2244
|
-
<p class="tableblock"><code>interval</code></p>
|
|
2245
|
-
</td>
|
|
2246
|
-
<td class="tableblock halign-left valign-top">
|
|
2247
|
-
<p class="tableblock"><code>number</code></p>
|
|
2248
|
-
</td>
|
|
2249
|
-
<td class="tableblock halign-left valign-top">
|
|
2250
|
-
<p class="tableblock">The tick frequency interval constraint to check against.</p>
|
|
2251
|
-
</td>
|
|
2252
|
-
</tr>
|
|
2253
|
-
</tbody>
|
|
2254
|
-
</table>
|
|
2255
|
-
<div class="paragraph">
|
|
2256
|
-
<p><strong>Returns</strong></p>
|
|
2257
|
-
</div>
|
|
2258
|
-
<div class="paragraph">
|
|
2259
|
-
<p><code>boolean</code> - <code>true</code> if the current tick is a multiple of the interval (and greater than 0).</p>
|
|
2260
|
-
</div>
|
|
2261
|
-
<hr />
|
|
2262
|
-
</div>
|
|
2263
|
-
<div class="sect2">
|
|
2264
|
-
<h3 id="incrementtickintervalamount-number-void">
|
|
2265
|
-
<a class="link" href="#incrementtickintervalamount-number-void">2.8. <code>incrementTickInterval(amount: number): void</code></a>
|
|
2266
|
-
</h3>
|
|
2267
|
-
<div class="paragraph">
|
|
2268
|
-
<p>Slows down the game by increasing the time between ticks.</p>
|
|
2269
|
-
</div>
|
|
2270
|
-
<div class="paragraph">
|
|
2271
|
-
<p><strong>Parameters</strong></p>
|
|
2272
|
-
</div>
|
|
2273
|
-
<table class="tableblock frame-all grid-all stretch">
|
|
2274
|
-
<colgroup>
|
|
2275
|
-
<col style="width: 20%" />
|
|
2276
|
-
<col style="width: 20%" />
|
|
2277
|
-
<col style="width: 60%" />
|
|
2278
|
-
</colgroup>
|
|
2279
|
-
<tbody>
|
|
2280
|
-
<tr>
|
|
2281
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
2282
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
2283
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
2284
|
-
</tr>
|
|
2285
|
-
<tr>
|
|
2286
|
-
<td class="tableblock halign-left valign-top">
|
|
2287
|
-
<p class="tableblock"><code>amount</code></p>
|
|
2288
|
-
</td>
|
|
2289
|
-
<td class="tableblock halign-left valign-top">
|
|
2290
|
-
<p class="tableblock"><code>number</code></p>
|
|
2291
|
-
</td>
|
|
2292
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Milliseconds to add to the interval.</p></td>
|
|
2293
|
-
</tr>
|
|
2294
|
-
</tbody>
|
|
2295
|
-
</table>
|
|
2296
|
-
<hr />
|
|
2297
|
-
</div>
|
|
2298
|
-
<div class="sect2">
|
|
2299
|
-
<h3 id="decrementtickintervalamount-number-void">
|
|
2300
|
-
<a class="link" href="#decrementtickintervalamount-number-void">2.9. <code>decrementTickInterval(amount: number): void</code></a>
|
|
2301
|
-
</h3>
|
|
2302
|
-
<div class="paragraph">
|
|
2303
|
-
<p>Speeds up the game by decreasing the time between ticks.</p>
|
|
2304
|
-
</div>
|
|
2305
|
-
<div class="paragraph">
|
|
2306
|
-
<p><strong>Parameters</strong></p>
|
|
2307
|
-
</div>
|
|
2308
|
-
<table class="tableblock frame-all grid-all stretch">
|
|
2309
|
-
<colgroup>
|
|
2310
|
-
<col style="width: 20%" />
|
|
2311
|
-
<col style="width: 20%" />
|
|
2312
|
-
<col style="width: 60%" />
|
|
2313
|
-
</colgroup>
|
|
2314
|
-
<tbody>
|
|
2315
|
-
<tr>
|
|
2316
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
2317
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
2318
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
2319
|
-
</tr>
|
|
2320
|
-
<tr>
|
|
2321
|
-
<td class="tableblock halign-left valign-top">
|
|
2322
|
-
<p class="tableblock"><code>amount</code></p>
|
|
2323
|
-
</td>
|
|
2324
|
-
<td class="tableblock halign-left valign-top">
|
|
2325
|
-
<p class="tableblock"><code>number</code></p>
|
|
2326
|
-
</td>
|
|
2327
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Milliseconds to subtract from the interval.</p></td>
|
|
2328
|
-
</tr>
|
|
2329
|
-
</tbody>
|
|
2330
|
-
</table>
|
|
2331
|
-
<hr />
|
|
2332
|
-
</div>
|
|
2333
|
-
<div class="sect2">
|
|
2334
|
-
<h3 id="settickintervalinterval-number-void">
|
|
2335
|
-
<a class="link" href="#settickintervalinterval-number-void">2.10. <code>setTickInterval(interval: number): void</code></a>
|
|
2336
|
-
</h3>
|
|
2337
|
-
<div class="paragraph">
|
|
2338
|
-
<p>Sets the tick interval exactly to the specified value.</p>
|
|
2339
|
-
</div>
|
|
2340
|
-
<div class="paragraph">
|
|
2341
|
-
<p><strong>Parameters</strong></p>
|
|
2342
|
-
</div>
|
|
2343
|
-
<table class="tableblock frame-all grid-all stretch">
|
|
2344
|
-
<colgroup>
|
|
2345
|
-
<col style="width: 20%" />
|
|
2346
|
-
<col style="width: 20%" />
|
|
2347
|
-
<col style="width: 60%" />
|
|
2348
|
-
</colgroup>
|
|
2349
|
-
<tbody>
|
|
2350
|
-
<tr>
|
|
2351
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
2352
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
2353
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
2354
|
-
</tr>
|
|
2355
|
-
<tr>
|
|
2356
|
-
<td class="tableblock halign-left valign-top">
|
|
2357
|
-
<p class="tableblock"><code>interval</code></p>
|
|
2358
|
-
</td>
|
|
2359
|
-
<td class="tableblock halign-left valign-top">
|
|
2360
|
-
<p class="tableblock"><code>number</code></p>
|
|
2361
|
-
</td>
|
|
2362
|
-
<td class="tableblock halign-left valign-top">
|
|
2363
|
-
<p class="tableblock">The precise new integer interval interval between logic updates (in milliseconds).</p>
|
|
2364
|
-
</td>
|
|
2365
|
-
</tr>
|
|
2366
|
-
</tbody>
|
|
2367
|
-
</table>
|
|
2368
|
-
<hr />
|
|
2369
|
-
</div>
|
|
2370
|
-
<div class="sect2">
|
|
2371
|
-
<h3 id="setmintickintervalinterval-number-void">
|
|
2372
|
-
<a class="link" href="#setmintickintervalinterval-number-void">2.11. <code>setMinTickInterval(interval: number): void</code></a>
|
|
2373
|
-
</h3>
|
|
2374
|
-
<div class="paragraph">
|
|
2375
|
-
<p>Sets the minimum limit for the tick interval, preventing the game from speeding up beyond this point.</p>
|
|
2376
|
-
</div>
|
|
2377
|
-
<div class="paragraph">
|
|
2378
|
-
<p><strong>Parameters</strong></p>
|
|
2379
|
-
</div>
|
|
2380
|
-
<table class="tableblock frame-all grid-all stretch">
|
|
2381
|
-
<colgroup>
|
|
2382
|
-
<col style="width: 20%" />
|
|
2383
|
-
<col style="width: 20%" />
|
|
2384
|
-
<col style="width: 60%" />
|
|
2385
|
-
</colgroup>
|
|
2386
|
-
<tbody>
|
|
2387
|
-
<tr>
|
|
2388
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
2389
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
2390
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
2391
|
-
</tr>
|
|
2392
|
-
<tr>
|
|
2393
|
-
<td class="tableblock halign-left valign-top">
|
|
2394
|
-
<p class="tableblock"><code>interval</code></p>
|
|
2395
|
-
</td>
|
|
2396
|
-
<td class="tableblock halign-left valign-top">
|
|
2397
|
-
<p class="tableblock"><code>number</code></p>
|
|
2398
|
-
</td>
|
|
2399
|
-
<td class="tableblock halign-left valign-top">
|
|
2400
|
-
<p class="tableblock">The strict minimum boundary interval allowed (in milliseconds).</p>
|
|
2401
|
-
</td>
|
|
2402
|
-
</tr>
|
|
2403
|
-
</tbody>
|
|
2404
|
-
</table>
|
|
2405
|
-
<hr />
|
|
2406
|
-
</div>
|
|
2407
|
-
<div class="sect2">
|
|
2408
|
-
<h3 id="getdebugdata-recordstring-string-number-boolean">
|
|
2409
|
-
<a class="link" href="#getdebugdata-recordstring-string-number-boolean"
|
|
2410
|
-
>2.12. <code>getDebugData(): Record<string, string | number | boolean></code></a
|
|
2411
|
-
>
|
|
2412
|
-
</h3>
|
|
2413
|
-
<div class="paragraph">
|
|
2414
|
-
<p>Returns metadata for the real-time debugger.</p>
|
|
2415
|
-
</div>
|
|
2416
|
-
<div class="paragraph">
|
|
2417
|
-
<p><strong>Returns</strong></p>
|
|
2418
|
-
</div>
|
|
2419
|
-
<div class="paragraph">
|
|
2420
|
-
<p>
|
|
2421
|
-
<code>Record<string, string | number | boolean></code> - Object containing <code>fps</code> (Frames Per Second),
|
|
2422
|
-
<code>tps</code> (Ticks Per Second), <code>tick_interval</code>, and <code>tick_accumulator</code>.
|
|
2423
|
-
</p>
|
|
2424
|
-
</div>
|
|
2425
|
-
<hr />
|
|
2426
|
-
</div>
|
|
2427
|
-
<div class="sect2">
|
|
2428
|
-
<h3 id="captureinitialstate-void">
|
|
2429
|
-
<a class="link" href="#captureinitialstate-void">2.13. <code>captureInitialState(): void</code></a>
|
|
2430
|
-
</h3>
|
|
2431
|
-
<div class="paragraph">
|
|
2432
|
-
<p>Captures the current <code>tickInterval</code> as the starting speed for the game session.</p>
|
|
2433
|
-
</div>
|
|
2434
|
-
<div class="paragraph">
|
|
2435
|
-
<p><strong>Behavior</strong></p>
|
|
2436
|
-
</div>
|
|
2437
|
-
<div class="paragraph">
|
|
2438
|
-
<p>
|
|
2439
|
-
This method is called by the <code>Game</code> engine after the game-specific <code>setupGame()</code> has executed. It ensures
|
|
2440
|
-
that when <code>reset()</code> is called, the game returns to its intended initial speed rather than the engine’s global
|
|
2441
|
-
default.
|
|
2442
|
-
</p>
|
|
2443
|
-
</div>
|
|
2444
|
-
</div>
|
|
2445
|
-
</div>
|
|
2446
|
-
</div>
|
|
2447
|
-
</div>
|
|
2448
|
-
<div id="footer">
|
|
2449
|
-
<div id="footer-text"></div>
|
|
2450
|
-
</div>
|
|
2451
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"></script>
|
|
2452
|
-
<script>
|
|
2453
|
-
if (!hljs.initHighlighting.called) {
|
|
2454
|
-
hljs.initHighlighting.called = true;
|
|
2455
|
-
[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) {
|
|
2456
|
-
hljs.highlightBlock(el);
|
|
2457
|
-
});
|
|
2458
|
-
}
|
|
2459
|
-
</script>
|
|
2460
|
-
</body>
|
|
2461
|
-
</html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<meta name="generator" content="Asciidoctor 2.0.20">
|
|
8
|
+
<meta name="description" content="Manages the engine's logical clock, decoupling game logic ticks from the visual frame rate.">
|
|
9
|
+
<meta name="keywords" content="time, clock, tick, interval, game-loop">
|
|
10
|
+
<title>GameTime Module Reference</title>
|
|
11
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
|
|
12
|
+
<style>
|
|
13
|
+
/*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
|
|
14
|
+
/* Uncomment the following line when using as a custom stylesheet */
|
|
15
|
+
/* @import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"; */
|
|
16
|
+
html{font-family:sans-serif;-webkit-text-size-adjust:100%}
|
|
17
|
+
a{background:none}
|
|
18
|
+
a:focus{outline:thin dotted}
|
|
19
|
+
a:active,a:hover{outline:0}
|
|
20
|
+
h1{font-size:2em;margin:.67em 0}
|
|
21
|
+
b,strong{font-weight:bold}
|
|
22
|
+
abbr{font-size:.9em}
|
|
23
|
+
abbr[title]{cursor:help;border-bottom:1px dotted #dddddf;text-decoration:none}
|
|
24
|
+
dfn{font-style:italic}
|
|
25
|
+
hr{height:0}
|
|
26
|
+
mark{background:#ff0;color:#000}
|
|
27
|
+
code,kbd,pre,samp{font-family:monospace;font-size:1em}
|
|
28
|
+
pre{white-space:pre-wrap}
|
|
29
|
+
q{quotes:"\201C" "\201D" "\2018" "\2019"}
|
|
30
|
+
small{font-size:80%}
|
|
31
|
+
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
|
32
|
+
sup{top:-.5em}
|
|
33
|
+
sub{bottom:-.25em}
|
|
34
|
+
img{border:0}
|
|
35
|
+
svg:not(:root){overflow:hidden}
|
|
36
|
+
figure{margin:0}
|
|
37
|
+
audio,video{display:inline-block}
|
|
38
|
+
audio:not([controls]){display:none;height:0}
|
|
39
|
+
fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}
|
|
40
|
+
legend{border:0;padding:0}
|
|
41
|
+
button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
|
|
42
|
+
button,input{line-height:normal}
|
|
43
|
+
button,select{text-transform:none}
|
|
44
|
+
button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}
|
|
45
|
+
button[disabled],html input[disabled]{cursor:default}
|
|
46
|
+
input[type=checkbox],input[type=radio]{padding:0}
|
|
47
|
+
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
|
|
48
|
+
textarea{overflow:auto;vertical-align:top}
|
|
49
|
+
table{border-collapse:collapse;border-spacing:0}
|
|
50
|
+
*,::before,::after{box-sizing:border-box}
|
|
51
|
+
html,body{font-size:100%}
|
|
52
|
+
body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;line-height:1;position:relative;cursor:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
|
|
53
|
+
a:hover{cursor:pointer}
|
|
54
|
+
img,object,embed{max-width:100%;height:auto}
|
|
55
|
+
object,embed{height:100%}
|
|
56
|
+
img{-ms-interpolation-mode:bicubic}
|
|
57
|
+
.left{float:left!important}
|
|
58
|
+
.right{float:right!important}
|
|
59
|
+
.text-left{text-align:left!important}
|
|
60
|
+
.text-right{text-align:right!important}
|
|
61
|
+
.text-center{text-align:center!important}
|
|
62
|
+
.text-justify{text-align:justify!important}
|
|
63
|
+
.hide{display:none}
|
|
64
|
+
img,object,svg{display:inline-block;vertical-align:middle}
|
|
65
|
+
textarea{height:auto;min-height:50px}
|
|
66
|
+
select{width:100%}
|
|
67
|
+
.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em}
|
|
68
|
+
div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0}
|
|
69
|
+
a{color:#2156a5;text-decoration:underline;line-height:inherit}
|
|
70
|
+
a:hover,a:focus{color:#1d4b8f}
|
|
71
|
+
a img{border:0}
|
|
72
|
+
p{line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility}
|
|
73
|
+
p aside{font-size:.875em;line-height:1.35;font-style:italic}
|
|
74
|
+
h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em}
|
|
75
|
+
h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0}
|
|
76
|
+
h1{font-size:2.125em}
|
|
77
|
+
h2{font-size:1.6875em}
|
|
78
|
+
h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}
|
|
79
|
+
h4,h5{font-size:1.125em}
|
|
80
|
+
h6{font-size:1em}
|
|
81
|
+
hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em}
|
|
82
|
+
em,i{font-style:italic;line-height:inherit}
|
|
83
|
+
strong,b{font-weight:bold;line-height:inherit}
|
|
84
|
+
small{font-size:60%;line-height:inherit}
|
|
85
|
+
code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)}
|
|
86
|
+
ul,ol,dl{line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}
|
|
87
|
+
ul,ol{margin-left:1.5em}
|
|
88
|
+
ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0}
|
|
89
|
+
ul.circle{list-style-type:circle}
|
|
90
|
+
ul.disc{list-style-type:disc}
|
|
91
|
+
ul.square{list-style-type:square}
|
|
92
|
+
ul.circle ul:not([class]),ul.disc ul:not([class]),ul.square ul:not([class]){list-style:inherit}
|
|
93
|
+
ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0}
|
|
94
|
+
dl dt{margin-bottom:.3125em;font-weight:bold}
|
|
95
|
+
dl dd{margin-bottom:1.25em}
|
|
96
|
+
blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd}
|
|
97
|
+
blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}
|
|
98
|
+
@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2}
|
|
99
|
+
h1{font-size:2.75em}
|
|
100
|
+
h2{font-size:2.3125em}
|
|
101
|
+
h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}
|
|
102
|
+
h4{font-size:1.4375em}}
|
|
103
|
+
table{background:#fff;margin-bottom:1.25em;border:1px solid #dedede;word-wrap:normal}
|
|
104
|
+
table thead,table tfoot{background:#f7f8f7}
|
|
105
|
+
table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}
|
|
106
|
+
table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
|
|
107
|
+
table tr.even,table tr.alt{background:#f8f8f7}
|
|
108
|
+
table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:1.6}
|
|
109
|
+
h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em}
|
|
110
|
+
h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
|
|
111
|
+
.center{margin-left:auto;margin-right:auto}
|
|
112
|
+
.stretch{width:100%}
|
|
113
|
+
.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table}
|
|
114
|
+
.clearfix::after,.float-group::after{clear:both}
|
|
115
|
+
:not(pre).nobreak{word-wrap:normal}
|
|
116
|
+
:not(pre).nowrap{white-space:nowrap}
|
|
117
|
+
:not(pre).pre-wrap{white-space:pre-wrap}
|
|
118
|
+
:not(pre):not([class^=L])>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background:#f7f7f8;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed}
|
|
119
|
+
pre{color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;line-height:1.45;text-rendering:optimizeSpeed}
|
|
120
|
+
pre code,pre pre{color:inherit;font-size:inherit;line-height:inherit}
|
|
121
|
+
pre>code{display:block}
|
|
122
|
+
pre.nowrap,pre.nowrap pre{white-space:pre;word-wrap:normal}
|
|
123
|
+
em em{font-style:normal}
|
|
124
|
+
strong strong{font-weight:400}
|
|
125
|
+
.keyseq{color:rgba(51,51,51,.8)}
|
|
126
|
+
kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 0 0 .1em #fff;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap}
|
|
127
|
+
.keyseq kbd:first-child{margin-left:0}
|
|
128
|
+
.keyseq kbd:last-child{margin-right:0}
|
|
129
|
+
.menuseq,.menuref{color:#000}
|
|
130
|
+
.menuseq b:not(.caret),.menuref{font-weight:inherit}
|
|
131
|
+
.menuseq{word-spacing:-.02em}
|
|
132
|
+
.menuseq b.caret{font-size:1.25em;line-height:.8}
|
|
133
|
+
.menuseq i.caret{font-weight:bold;text-align:center;width:.45em}
|
|
134
|
+
b.button::before,b.button::after{position:relative;top:-1px;font-weight:400}
|
|
135
|
+
b.button::before{content:"[";padding:0 3px 0 2px}
|
|
136
|
+
b.button::after{content:"]";padding:0 2px 0 3px}
|
|
137
|
+
p a>code:hover{color:rgba(0,0,0,.9)}
|
|
138
|
+
#header,#content,#footnotes,#footer{width:100%;margin:0 auto;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em}
|
|
139
|
+
#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table}
|
|
140
|
+
#header::after,#content::after,#footnotes::after,#footer::after{clear:both}
|
|
141
|
+
#content{margin-top:1.25em}
|
|
142
|
+
#content::before{content:none}
|
|
143
|
+
#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
|
|
144
|
+
#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}
|
|
145
|
+
#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}
|
|
146
|
+
#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap}
|
|
147
|
+
#header .details span:first-child{margin-left:-.125em}
|
|
148
|
+
#header .details span.email a{color:rgba(0,0,0,.85)}
|
|
149
|
+
#header .details br{display:none}
|
|
150
|
+
#header .details br+span::before{content:"\00a0\2013\00a0"}
|
|
151
|
+
#header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)}
|
|
152
|
+
#header .details br+span#revremark::before{content:"\00a0|\00a0"}
|
|
153
|
+
#header #revnumber{text-transform:capitalize}
|
|
154
|
+
#header #revnumber::after{content:"\00a0"}
|
|
155
|
+
#content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem}
|
|
156
|
+
#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em}
|
|
157
|
+
#toc>ul{margin-left:.125em}
|
|
158
|
+
#toc ul.sectlevel0>li>a{font-style:italic}
|
|
159
|
+
#toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0}
|
|
160
|
+
#toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none}
|
|
161
|
+
#toc li{line-height:1.3334;margin-top:.3334em}
|
|
162
|
+
#toc a{text-decoration:none}
|
|
163
|
+
#toc a:active{text-decoration:underline}
|
|
164
|
+
#toctitle{color:#7a2518;font-size:1.2em}
|
|
165
|
+
@media screen and (min-width:768px){#toctitle{font-size:1.375em}
|
|
166
|
+
body.toc2{padding-left:15em;padding-right:0}
|
|
167
|
+
#toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
|
|
168
|
+
#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
|
|
169
|
+
#toc.toc2>ul{font-size:.9em;margin-bottom:0}
|
|
170
|
+
#toc.toc2 ul ul{margin-left:0;padding-left:1em}
|
|
171
|
+
#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
|
|
172
|
+
body.toc2.toc-right{padding-left:0;padding-right:15em}
|
|
173
|
+
body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}}
|
|
174
|
+
@media screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}
|
|
175
|
+
#toc.toc2{width:20em}
|
|
176
|
+
#toc.toc2 #toctitle{font-size:1.375em}
|
|
177
|
+
#toc.toc2>ul{font-size:.95em}
|
|
178
|
+
#toc.toc2 ul ul{padding-left:1.25em}
|
|
179
|
+
body.toc2.toc-right{padding-left:0;padding-right:20em}}
|
|
180
|
+
#content #toc{border:1px solid #e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;border-radius:4px}
|
|
181
|
+
#content #toc>:first-child{margin-top:0}
|
|
182
|
+
#content #toc>:last-child{margin-bottom:0}
|
|
183
|
+
#footer{max-width:none;background:rgba(0,0,0,.8);padding:1.25em}
|
|
184
|
+
#footer-text{color:hsla(0,0%,100%,.8);line-height:1.44}
|
|
185
|
+
#content{margin-bottom:.625em}
|
|
186
|
+
.sect1{padding-bottom:.625em}
|
|
187
|
+
@media screen and (min-width:768px){#content{margin-bottom:1.25em}
|
|
188
|
+
.sect1{padding-bottom:1.25em}}
|
|
189
|
+
.sect1:last-child{padding-bottom:0}
|
|
190
|
+
.sect1+.sect1{border-top:1px solid #e7e7e9}
|
|
191
|
+
#content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400}
|
|
192
|
+
#content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em}
|
|
193
|
+
#content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}
|
|
194
|
+
#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none}
|
|
195
|
+
#content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221}
|
|
196
|
+
details,.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}
|
|
197
|
+
details{margin-left:1.25rem}
|
|
198
|
+
details>summary{cursor:pointer;display:block;position:relative;line-height:1.6;margin-bottom:.625rem;outline:none;-webkit-tap-highlight-color:transparent}
|
|
199
|
+
details>summary::-webkit-details-marker{display:none}
|
|
200
|
+
details>summary::before{content:"";border:solid transparent;border-left:solid;border-width:.3em 0 .3em .5em;position:absolute;top:.5em;left:-1.25rem;transform:translateX(15%)}
|
|
201
|
+
details[open]>summary::before{border:solid transparent;border-top:solid;border-width:.5em .3em 0;transform:translateY(15%)}
|
|
202
|
+
details>summary::after{content:"";width:1.25rem;height:1em;position:absolute;top:.3em;left:-1.25rem}
|
|
203
|
+
.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic}
|
|
204
|
+
table.tableblock.fit-content>caption.title{white-space:nowrap;width:0}
|
|
205
|
+
.paragraph.lead>p,#preamble>.sectionbody>[class=paragraph]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)}
|
|
206
|
+
.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}
|
|
207
|
+
.admonitionblock>table td.icon{text-align:center;width:80px}
|
|
208
|
+
.admonitionblock>table td.icon img{max-width:none}
|
|
209
|
+
.admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
|
|
210
|
+
.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6);word-wrap:anywhere}
|
|
211
|
+
.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
|
|
212
|
+
.exampleblock>.content{border:1px solid #e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;border-radius:4px}
|
|
213
|
+
.sidebarblock{border:1px solid #dbdbd6;margin-bottom:1.25em;padding:1.25em;background:#f3f3f2;border-radius:4px}
|
|
214
|
+
.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}
|
|
215
|
+
.exampleblock>.content>:first-child,.sidebarblock>.content>:first-child{margin-top:0}
|
|
216
|
+
.exampleblock>.content>:last-child,.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
|
|
217
|
+
.literalblock pre,.listingblock>.content>pre{border-radius:4px;overflow-x:auto;padding:1em;font-size:.8125em}
|
|
218
|
+
@media screen and (min-width:768px){.literalblock pre,.listingblock>.content>pre{font-size:.90625em}}
|
|
219
|
+
@media screen and (min-width:1280px){.literalblock pre,.listingblock>.content>pre{font-size:1em}}
|
|
220
|
+
.literalblock pre,.listingblock>.content>pre:not(.highlight),.listingblock>.content>pre[class=highlight],.listingblock>.content>pre[class^="highlight "]{background:#f7f7f8}
|
|
221
|
+
.literalblock.output pre{color:#f7f7f8;background:rgba(0,0,0,.9)}
|
|
222
|
+
.listingblock>.content{position:relative}
|
|
223
|
+
.listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:inherit;opacity:.5}
|
|
224
|
+
.listingblock:hover code[data-lang]::before{display:block}
|
|
225
|
+
.listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:inherit;opacity:.5}
|
|
226
|
+
.listingblock.terminal pre .command:not([data-prompt])::before{content:"$"}
|
|
227
|
+
.listingblock pre.highlightjs{padding:0}
|
|
228
|
+
.listingblock pre.highlightjs>code{padding:1em;border-radius:4px}
|
|
229
|
+
.listingblock pre.prettyprint{border-width:0}
|
|
230
|
+
.prettyprint{background:#f7f7f8}
|
|
231
|
+
pre.prettyprint .linenums{line-height:1.45;margin-left:2em}
|
|
232
|
+
pre.prettyprint li{background:none;list-style-type:inherit;padding-left:0}
|
|
233
|
+
pre.prettyprint li code[data-lang]::before{opacity:1}
|
|
234
|
+
pre.prettyprint li:not(:first-child) code[data-lang]::before{display:none}
|
|
235
|
+
table.linenotable{border-collapse:separate;border:0;margin-bottom:0;background:none}
|
|
236
|
+
table.linenotable td[class]{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal}
|
|
237
|
+
table.linenotable td.code{padding-left:.75em}
|
|
238
|
+
table.linenotable td.linenos,pre.pygments .linenos{border-right:1px solid;opacity:.35;padding-right:.5em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
|
|
239
|
+
pre.pygments span.linenos{display:inline-block;margin-right:.75em}
|
|
240
|
+
.quoteblock{margin:0 1em 1.25em 1.5em;display:table}
|
|
241
|
+
.quoteblock:not(.excerpt)>.title{margin-left:-1.5em;margin-bottom:.75em}
|
|
242
|
+
.quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}
|
|
243
|
+
.quoteblock blockquote{margin:0;padding:0;border:0}
|
|
244
|
+
.quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}
|
|
245
|
+
.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}
|
|
246
|
+
.quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right}
|
|
247
|
+
.verseblock{margin:0 1em 1.25em}
|
|
248
|
+
.verseblock pre{font-family:"Open Sans","DejaVu Sans",sans-serif;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}
|
|
249
|
+
.verseblock pre strong{font-weight:400}
|
|
250
|
+
.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}
|
|
251
|
+
.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}
|
|
252
|
+
.quoteblock .attribution br,.verseblock .attribution br{display:none}
|
|
253
|
+
.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)}
|
|
254
|
+
.quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none}
|
|
255
|
+
.quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0}
|
|
256
|
+
.quoteblock.abstract{margin:0 1em 1.25em;display:block}
|
|
257
|
+
.quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center}
|
|
258
|
+
.quoteblock.excerpt>blockquote,.quoteblock .quoteblock{padding:0 0 .25em 1em;border-left:.25em solid #dddddf}
|
|
259
|
+
.quoteblock.excerpt,.quoteblock .quoteblock{margin-left:0}
|
|
260
|
+
.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem}
|
|
261
|
+
.quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;font-size:.85rem;text-align:left;margin-right:0}
|
|
262
|
+
p.tableblock:last-child{margin-bottom:0}
|
|
263
|
+
td.tableblock>.content{margin-bottom:1.25em;word-wrap:anywhere}
|
|
264
|
+
td.tableblock>.content>:last-child{margin-bottom:-1.25em}
|
|
265
|
+
table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}
|
|
266
|
+
table.grid-all>*>tr>*{border-width:1px}
|
|
267
|
+
table.grid-cols>*>tr>*{border-width:0 1px}
|
|
268
|
+
table.grid-rows>*>tr>*{border-width:1px 0}
|
|
269
|
+
table.frame-all{border-width:1px}
|
|
270
|
+
table.frame-ends{border-width:1px 0}
|
|
271
|
+
table.frame-sides{border-width:0 1px}
|
|
272
|
+
table.frame-none>colgroup+*>:first-child>*,table.frame-sides>colgroup+*>:first-child>*{border-top-width:0}
|
|
273
|
+
table.frame-none>:last-child>:last-child>*,table.frame-sides>:last-child>:last-child>*{border-bottom-width:0}
|
|
274
|
+
table.frame-none>*>tr>:first-child,table.frame-ends>*>tr>:first-child{border-left-width:0}
|
|
275
|
+
table.frame-none>*>tr>:last-child,table.frame-ends>*>tr>:last-child{border-right-width:0}
|
|
276
|
+
table.stripes-all>*>tr,table.stripes-odd>*>tr:nth-of-type(odd),table.stripes-even>*>tr:nth-of-type(even),table.stripes-hover>*>tr:hover{background:#f8f8f7}
|
|
277
|
+
th.halign-left,td.halign-left{text-align:left}
|
|
278
|
+
th.halign-right,td.halign-right{text-align:right}
|
|
279
|
+
th.halign-center,td.halign-center{text-align:center}
|
|
280
|
+
th.valign-top,td.valign-top{vertical-align:top}
|
|
281
|
+
th.valign-bottom,td.valign-bottom{vertical-align:bottom}
|
|
282
|
+
th.valign-middle,td.valign-middle{vertical-align:middle}
|
|
283
|
+
table thead th,table tfoot th{font-weight:bold}
|
|
284
|
+
tbody tr th{background:#f7f8f7}
|
|
285
|
+
tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold}
|
|
286
|
+
p.tableblock>code:only-child{background:none;padding:0}
|
|
287
|
+
p.tableblock{font-size:1em}
|
|
288
|
+
ol{margin-left:1.75em}
|
|
289
|
+
ul li ol{margin-left:1.5em}
|
|
290
|
+
dl dd{margin-left:1.125em}
|
|
291
|
+
dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0}
|
|
292
|
+
li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em}
|
|
293
|
+
ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none}
|
|
294
|
+
ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em}
|
|
295
|
+
ul.unstyled,ol.unstyled{margin-left:0}
|
|
296
|
+
li>p:empty:only-child::before{content:"";display:inline-block}
|
|
297
|
+
ul.checklist>li>p:first-child{margin-left:-1em}
|
|
298
|
+
ul.checklist>li>p:first-child>.fa-square-o:first-child,ul.checklist>li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em}
|
|
299
|
+
ul.checklist>li>p:first-child>input[type=checkbox]:first-child{margin-right:.25em}
|
|
300
|
+
ul.inline{display:flex;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em}
|
|
301
|
+
ul.inline>li{margin-left:1.25em}
|
|
302
|
+
.unstyled dl dt{font-weight:400;font-style:normal}
|
|
303
|
+
ol.arabic{list-style-type:decimal}
|
|
304
|
+
ol.decimal{list-style-type:decimal-leading-zero}
|
|
305
|
+
ol.loweralpha{list-style-type:lower-alpha}
|
|
306
|
+
ol.upperalpha{list-style-type:upper-alpha}
|
|
307
|
+
ol.lowerroman{list-style-type:lower-roman}
|
|
308
|
+
ol.upperroman{list-style-type:upper-roman}
|
|
309
|
+
ol.lowergreek{list-style-type:lower-greek}
|
|
310
|
+
.hdlist>table,.colist>table{border:0;background:none}
|
|
311
|
+
.hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}
|
|
312
|
+
td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}
|
|
313
|
+
td.hdlist1{font-weight:bold;padding-bottom:1.25em}
|
|
314
|
+
td.hdlist2{word-wrap:anywhere}
|
|
315
|
+
.literalblock+.colist,.listingblock+.colist{margin-top:-.5em}
|
|
316
|
+
.colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top}
|
|
317
|
+
.colist td:not([class]):first-child img{max-width:none}
|
|
318
|
+
.colist td:not([class]):last-child{padding:.25em 0}
|
|
319
|
+
.thumb,.th{line-height:0;display:inline-block;border:4px solid #fff;box-shadow:0 0 0 1px #ddd}
|
|
320
|
+
.imageblock.left{margin:.25em .625em 1.25em 0}
|
|
321
|
+
.imageblock.right{margin:.25em 0 1.25em .625em}
|
|
322
|
+
.imageblock>.title{margin-bottom:0}
|
|
323
|
+
.imageblock.thumb,.imageblock.th{border-width:6px}
|
|
324
|
+
.imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em}
|
|
325
|
+
.image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0}
|
|
326
|
+
.image.left{margin-right:.625em}
|
|
327
|
+
.image.right{margin-left:.625em}
|
|
328
|
+
a.image{text-decoration:none;display:inline-block}
|
|
329
|
+
a.image object{pointer-events:none}
|
|
330
|
+
sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
|
|
331
|
+
sup.footnote a,sup.footnoteref a{text-decoration:none}
|
|
332
|
+
sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}
|
|
333
|
+
#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
|
|
334
|
+
#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}
|
|
335
|
+
#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}
|
|
336
|
+
#footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em}
|
|
337
|
+
#footnotes .footnote:last-of-type{margin-bottom:0}
|
|
338
|
+
#content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0}
|
|
339
|
+
div.unbreakable{page-break-inside:avoid}
|
|
340
|
+
.big{font-size:larger}
|
|
341
|
+
.small{font-size:smaller}
|
|
342
|
+
.underline{text-decoration:underline}
|
|
343
|
+
.overline{text-decoration:overline}
|
|
344
|
+
.line-through{text-decoration:line-through}
|
|
345
|
+
.aqua{color:#00bfbf}
|
|
346
|
+
.aqua-background{background:#00fafa}
|
|
347
|
+
.black{color:#000}
|
|
348
|
+
.black-background{background:#000}
|
|
349
|
+
.blue{color:#0000bf}
|
|
350
|
+
.blue-background{background:#0000fa}
|
|
351
|
+
.fuchsia{color:#bf00bf}
|
|
352
|
+
.fuchsia-background{background:#fa00fa}
|
|
353
|
+
.gray{color:#606060}
|
|
354
|
+
.gray-background{background:#7d7d7d}
|
|
355
|
+
.green{color:#006000}
|
|
356
|
+
.green-background{background:#007d00}
|
|
357
|
+
.lime{color:#00bf00}
|
|
358
|
+
.lime-background{background:#00fa00}
|
|
359
|
+
.maroon{color:#600000}
|
|
360
|
+
.maroon-background{background:#7d0000}
|
|
361
|
+
.navy{color:#000060}
|
|
362
|
+
.navy-background{background:#00007d}
|
|
363
|
+
.olive{color:#606000}
|
|
364
|
+
.olive-background{background:#7d7d00}
|
|
365
|
+
.purple{color:#600060}
|
|
366
|
+
.purple-background{background:#7d007d}
|
|
367
|
+
.red{color:#bf0000}
|
|
368
|
+
.red-background{background:#fa0000}
|
|
369
|
+
.silver{color:#909090}
|
|
370
|
+
.silver-background{background:#bcbcbc}
|
|
371
|
+
.teal{color:#006060}
|
|
372
|
+
.teal-background{background:#007d7d}
|
|
373
|
+
.white{color:#bfbfbf}
|
|
374
|
+
.white-background{background:#fafafa}
|
|
375
|
+
.yellow{color:#bfbf00}
|
|
376
|
+
.yellow-background{background:#fafa00}
|
|
377
|
+
span.icon>.fa{cursor:default}
|
|
378
|
+
a span.icon>.fa{cursor:inherit}
|
|
379
|
+
.admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}
|
|
380
|
+
.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c}
|
|
381
|
+
.admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}
|
|
382
|
+
.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900}
|
|
383
|
+
.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400}
|
|
384
|
+
.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000}
|
|
385
|
+
.conum[data-value]{display:inline-block;color:#fff!important;background:rgba(0,0,0,.8);border-radius:50%;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold}
|
|
386
|
+
.conum[data-value] *{color:#fff!important}
|
|
387
|
+
.conum[data-value]+b{display:none}
|
|
388
|
+
.conum[data-value]::after{content:attr(data-value)}
|
|
389
|
+
pre .conum[data-value]{position:relative;top:-.125em}
|
|
390
|
+
b.conum *{color:inherit!important}
|
|
391
|
+
.conum:not([data-value]):empty{display:none}
|
|
392
|
+
dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}
|
|
393
|
+
h1,h2,p,td.content,span.alt,summary{letter-spacing:-.01em}
|
|
394
|
+
p strong,td.content strong,div.footnote strong{letter-spacing:-.005em}
|
|
395
|
+
p,blockquote,dt,td.content,td.hdlist1,span.alt,summary{font-size:1.0625rem}
|
|
396
|
+
p{margin-bottom:1.25rem}
|
|
397
|
+
.sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em}
|
|
398
|
+
.exampleblock>.content{background:#fffef7;border-color:#e0e0dc;box-shadow:0 1px 4px #e0e0dc}
|
|
399
|
+
.print-only{display:none!important}
|
|
400
|
+
@page{margin:1.25cm .75cm}
|
|
401
|
+
@media print{*{box-shadow:none!important;text-shadow:none!important}
|
|
402
|
+
html{font-size:80%}
|
|
403
|
+
a{color:inherit!important;text-decoration:underline!important}
|
|
404
|
+
a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important}
|
|
405
|
+
a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em}
|
|
406
|
+
abbr[title]{border-bottom:1px dotted}
|
|
407
|
+
abbr[title]::after{content:" (" attr(title) ")"}
|
|
408
|
+
pre,blockquote,tr,img,object,svg{page-break-inside:avoid}
|
|
409
|
+
thead{display:table-header-group}
|
|
410
|
+
svg{max-width:100%}
|
|
411
|
+
p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3}
|
|
412
|
+
h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid}
|
|
413
|
+
#header,#content,#footnotes,#footer{max-width:none}
|
|
414
|
+
#toc,.sidebarblock,.exampleblock>.content{background:none!important}
|
|
415
|
+
#toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important}
|
|
416
|
+
body.book #header{text-align:center}
|
|
417
|
+
body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em}
|
|
418
|
+
body.book #header .details{border:0!important;display:block;padding:0!important}
|
|
419
|
+
body.book #header .details span:first-child{margin-left:0!important}
|
|
420
|
+
body.book #header .details br{display:block}
|
|
421
|
+
body.book #header .details br+span::before{content:none!important}
|
|
422
|
+
body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important}
|
|
423
|
+
body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always}
|
|
424
|
+
.listingblock code[data-lang]::before{display:block}
|
|
425
|
+
#footer{padding:0 .9375em}
|
|
426
|
+
.hide-on-print{display:none!important}
|
|
427
|
+
.print-only{display:block!important}
|
|
428
|
+
.hide-for-print{display:none!important}
|
|
429
|
+
.show-for-print{display:inherit!important}}
|
|
430
|
+
@media amzn-kf8,print{#header>h1:first-child{margin-top:1.25rem}
|
|
431
|
+
.sect1{padding:0!important}
|
|
432
|
+
.sect1+.sect1{border:0}
|
|
433
|
+
#footer{background:none}
|
|
434
|
+
#footer-text{color:rgba(0,0,0,.6);font-size:.9em}}
|
|
435
|
+
@media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}}
|
|
436
|
+
</style>
|
|
437
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
438
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/styles/github.min.css">
|
|
439
|
+
</head>
|
|
440
|
+
<body class="article toc2 toc-left">
|
|
441
|
+
<div id="header">
|
|
442
|
+
<h1>GameTime Module Reference</h1>
|
|
443
|
+
<div id="toc" class="toc2">
|
|
444
|
+
<div id="toctitle">Table of Contents</div>
|
|
445
|
+
<ul class="sectlevel1">
|
|
446
|
+
<li><a href="#architectural-purpose">1. Architectural Purpose</a></li>
|
|
447
|
+
<li><a href="#api-reference">2. API Reference</a>
|
|
448
|
+
<ul class="sectlevel2">
|
|
449
|
+
<li><a href="#tickinterval-number">2.1. <code>tickInterval: number</code></a></li>
|
|
450
|
+
<li><a href="#totalticks-number">2.2. <code>totalTicks: number</code></a></li>
|
|
451
|
+
<li><a href="#elapsedtime-number">2.3. <code>elapsedTime: number</code></a></li>
|
|
452
|
+
<li><a href="#shouldtick-boolean">2.4. <code>shouldTick(): boolean</code></a></li>
|
|
453
|
+
<li><a href="#updatedeltatime-number-void">2.5. <code>update(deltaTime: number): void</code></a></li>
|
|
454
|
+
<li><a href="#reset-void">2.6. <code>reset(): void</code></a></li>
|
|
455
|
+
<li><a href="#istickeveryinterval-number-boolean">2.7. <code>isTickEvery(interval: number): boolean</code></a></li>
|
|
456
|
+
<li><a href="#incrementtickintervalamount-number-void">2.8. <code>incrementTickInterval(amount: number): void</code></a></li>
|
|
457
|
+
<li><a href="#decrementtickintervalamount-number-void">2.9. <code>decrementTickInterval(amount: number): void</code></a></li>
|
|
458
|
+
<li><a href="#settickintervalinterval-number-void">2.10. <code>setTickInterval(interval: number): void</code></a></li>
|
|
459
|
+
<li><a href="#setmintickintervalinterval-number-void">2.11. <code>setMinTickInterval(interval: number): void</code></a></li>
|
|
460
|
+
<li><a href="#getdebugdata-recordstring-string-number-boolean">2.12. <code>getDebugData(): Record<string, string | number | boolean></code></a></li>
|
|
461
|
+
<li><a href="#captureinitialstate-void">2.13. <code>captureInitialState(): void</code></a></li>
|
|
462
|
+
</ul>
|
|
463
|
+
</li>
|
|
464
|
+
</ul>
|
|
465
|
+
</div>
|
|
466
|
+
</div>
|
|
467
|
+
<div id="content">
|
|
468
|
+
<div class="sect1">
|
|
469
|
+
<h2 id="architectural-purpose"><a class="link" href="#architectural-purpose">1. Architectural Purpose</a></h2>
|
|
470
|
+
<div class="sectionbody">
|
|
471
|
+
<div class="paragraph">
|
|
472
|
+
<p>The <code>GameTime</code> module manages the engine’s logical clock independent of the visual context. By decoupling the deterministic game logic "ticks" from the unpredictable visual frame rate of the browser, it ensures consistent gameplay speed and difficulty-progression physics regardless of the device’s hardware performance capabilities.</p>
|
|
473
|
+
</div>
|
|
474
|
+
</div>
|
|
475
|
+
</div>
|
|
476
|
+
<div class="sect1">
|
|
477
|
+
<h2 id="api-reference"><a class="link" href="#api-reference">2. API Reference</a></h2>
|
|
478
|
+
<div class="sectionbody">
|
|
479
|
+
<div class="sect2">
|
|
480
|
+
<h3 id="tickinterval-number"><a class="link" href="#tickinterval-number">2.1. <code>tickInterval: number</code></a></h3>
|
|
481
|
+
<div class="paragraph">
|
|
482
|
+
<p>Getter/Setter for the game logic speed in milliseconds.</p>
|
|
483
|
+
</div>
|
|
484
|
+
<div class="paragraph">
|
|
485
|
+
<p><strong>Returns</strong></p>
|
|
486
|
+
</div>
|
|
487
|
+
<div class="paragraph">
|
|
488
|
+
<p><code>number</code> - The current time between logic ticks.</p>
|
|
489
|
+
</div>
|
|
490
|
+
<div class="paragraph">
|
|
491
|
+
<p><strong>Behavior</strong></p>
|
|
492
|
+
</div>
|
|
493
|
+
<div class="paragraph">
|
|
494
|
+
<p>Lowering this value makes the game run faster (e.g., used for difficulty progression).</p>
|
|
495
|
+
</div>
|
|
496
|
+
<hr>
|
|
497
|
+
</div>
|
|
498
|
+
<div class="sect2">
|
|
499
|
+
<h3 id="totalticks-number"><a class="link" href="#totalticks-number">2.2. <code>totalTicks: number</code></a></h3>
|
|
500
|
+
<div class="paragraph">
|
|
501
|
+
<p>Read-only property returning the total number of logic ticks that have occurred since the game started.</p>
|
|
502
|
+
</div>
|
|
503
|
+
<hr>
|
|
504
|
+
</div>
|
|
505
|
+
<div class="sect2">
|
|
506
|
+
<h3 id="elapsedtime-number"><a class="link" href="#elapsedtime-number">2.3. <code>elapsedTime: number</code></a></h3>
|
|
507
|
+
<div class="paragraph">
|
|
508
|
+
<p>Read-only property returning the total time in milliseconds elapsed since the game started.</p>
|
|
509
|
+
</div>
|
|
510
|
+
<hr>
|
|
511
|
+
</div>
|
|
512
|
+
<div class="sect2">
|
|
513
|
+
<h3 id="shouldtick-boolean"><a class="link" href="#shouldtick-boolean">2.4. <code>shouldTick(): boolean</code></a></h3>
|
|
514
|
+
<div class="paragraph">
|
|
515
|
+
<p>Determines if a logic update should be executed.</p>
|
|
516
|
+
</div>
|
|
517
|
+
<div class="paragraph">
|
|
518
|
+
<p><strong>Returns</strong></p>
|
|
519
|
+
</div>
|
|
520
|
+
<div class="paragraph">
|
|
521
|
+
<p><code>boolean</code> - <code>true</code> if the internal ticker buffer (accumulator) has exceeded the <code>tickInterval</code>.</p>
|
|
522
|
+
</div>
|
|
523
|
+
<div class="paragraph">
|
|
524
|
+
<p><strong>Behavior</strong></p>
|
|
525
|
+
</div>
|
|
526
|
+
<div class="paragraph">
|
|
527
|
+
<p>Called by the main loop. If it returns true, it automatically subtracts the <code>tickInterval</code> from the <code>tickAccumulator</code> to maintain a stable clock.</p>
|
|
528
|
+
</div>
|
|
529
|
+
<hr>
|
|
530
|
+
</div>
|
|
531
|
+
<div class="sect2">
|
|
532
|
+
<h3 id="updatedeltatime-number-void"><a class="link" href="#updatedeltatime-number-void">2.5. <code>update(deltaTime: number): void</code></a></h3>
|
|
533
|
+
<div class="paragraph">
|
|
534
|
+
<p>Advances the internal time buffer (tick accumulator).</p>
|
|
535
|
+
</div>
|
|
536
|
+
<div class="paragraph">
|
|
537
|
+
<p><strong>Parameters</strong></p>
|
|
538
|
+
</div>
|
|
539
|
+
<table class="tableblock frame-all grid-all stretch">
|
|
540
|
+
<colgroup>
|
|
541
|
+
<col style="width: 20%;">
|
|
542
|
+
<col style="width: 20%;">
|
|
543
|
+
<col style="width: 60%;">
|
|
544
|
+
</colgroup>
|
|
545
|
+
<tbody>
|
|
546
|
+
<tr>
|
|
547
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
548
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
549
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
550
|
+
</tr>
|
|
551
|
+
<tr>
|
|
552
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>deltaTime</code></p></td>
|
|
553
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>number</code></p></td>
|
|
554
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Time physically elapsed since the last rendering frame (in milliseconds).</p></td>
|
|
555
|
+
</tr>
|
|
556
|
+
</tbody>
|
|
557
|
+
</table>
|
|
558
|
+
<hr>
|
|
559
|
+
</div>
|
|
560
|
+
<div class="sect2">
|
|
561
|
+
<h3 id="reset-void"><a class="link" href="#reset-void">2.6. <code>reset(): void</code></a></h3>
|
|
562
|
+
<div class="paragraph">
|
|
563
|
+
<p>Clears the tick accumulator.</p>
|
|
564
|
+
</div>
|
|
565
|
+
<div class="paragraph">
|
|
566
|
+
<p><strong>Behavior</strong></p>
|
|
567
|
+
</div>
|
|
568
|
+
<div class="paragraph">
|
|
569
|
+
<p>Prevents a "burst" of logic updates after resuming from a long pause or game restart.</p>
|
|
570
|
+
</div>
|
|
571
|
+
<hr>
|
|
572
|
+
</div>
|
|
573
|
+
<div class="sect2">
|
|
574
|
+
<h3 id="istickeveryinterval-number-boolean"><a class="link" href="#istickeveryinterval-number-boolean">2.7. <code>isTickEvery(interval: number): boolean</code></a></h3>
|
|
575
|
+
<div class="paragraph">
|
|
576
|
+
<p>Returns <code>true</code> if the <code>totalTicks</code> is a multiple of the specified <code>interval</code>. Useful for scheduling recurring game events (e.g., spawning an item every 20 ticks).</p>
|
|
577
|
+
</div>
|
|
578
|
+
<div class="paragraph">
|
|
579
|
+
<p><strong>Parameters</strong></p>
|
|
580
|
+
</div>
|
|
581
|
+
<table class="tableblock frame-all grid-all stretch">
|
|
582
|
+
<colgroup>
|
|
583
|
+
<col style="width: 20%;">
|
|
584
|
+
<col style="width: 20%;">
|
|
585
|
+
<col style="width: 60%;">
|
|
586
|
+
</colgroup>
|
|
587
|
+
<tbody>
|
|
588
|
+
<tr>
|
|
589
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
590
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
591
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
592
|
+
</tr>
|
|
593
|
+
<tr>
|
|
594
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>interval</code></p></td>
|
|
595
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>number</code></p></td>
|
|
596
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">The tick frequency interval constraint to check against.</p></td>
|
|
597
|
+
</tr>
|
|
598
|
+
</tbody>
|
|
599
|
+
</table>
|
|
600
|
+
<div class="paragraph">
|
|
601
|
+
<p><strong>Returns</strong></p>
|
|
602
|
+
</div>
|
|
603
|
+
<div class="paragraph">
|
|
604
|
+
<p><code>boolean</code> - <code>true</code> if the current tick is a multiple of the interval (and greater than 0).</p>
|
|
605
|
+
</div>
|
|
606
|
+
<hr>
|
|
607
|
+
</div>
|
|
608
|
+
<div class="sect2">
|
|
609
|
+
<h3 id="incrementtickintervalamount-number-void"><a class="link" href="#incrementtickintervalamount-number-void">2.8. <code>incrementTickInterval(amount: number): void</code></a></h3>
|
|
610
|
+
<div class="paragraph">
|
|
611
|
+
<p>Slows down the game by increasing the time between ticks.</p>
|
|
612
|
+
</div>
|
|
613
|
+
<div class="paragraph">
|
|
614
|
+
<p><strong>Parameters</strong></p>
|
|
615
|
+
</div>
|
|
616
|
+
<table class="tableblock frame-all grid-all stretch">
|
|
617
|
+
<colgroup>
|
|
618
|
+
<col style="width: 20%;">
|
|
619
|
+
<col style="width: 20%;">
|
|
620
|
+
<col style="width: 60%;">
|
|
621
|
+
</colgroup>
|
|
622
|
+
<tbody>
|
|
623
|
+
<tr>
|
|
624
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
625
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
626
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
627
|
+
</tr>
|
|
628
|
+
<tr>
|
|
629
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>amount</code></p></td>
|
|
630
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>number</code></p></td>
|
|
631
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Milliseconds to add to the interval.</p></td>
|
|
632
|
+
</tr>
|
|
633
|
+
</tbody>
|
|
634
|
+
</table>
|
|
635
|
+
<hr>
|
|
636
|
+
</div>
|
|
637
|
+
<div class="sect2">
|
|
638
|
+
<h3 id="decrementtickintervalamount-number-void"><a class="link" href="#decrementtickintervalamount-number-void">2.9. <code>decrementTickInterval(amount: number): void</code></a></h3>
|
|
639
|
+
<div class="paragraph">
|
|
640
|
+
<p>Speeds up the game by decreasing the time between ticks.</p>
|
|
641
|
+
</div>
|
|
642
|
+
<div class="paragraph">
|
|
643
|
+
<p><strong>Parameters</strong></p>
|
|
644
|
+
</div>
|
|
645
|
+
<table class="tableblock frame-all grid-all stretch">
|
|
646
|
+
<colgroup>
|
|
647
|
+
<col style="width: 20%;">
|
|
648
|
+
<col style="width: 20%;">
|
|
649
|
+
<col style="width: 60%;">
|
|
650
|
+
</colgroup>
|
|
651
|
+
<tbody>
|
|
652
|
+
<tr>
|
|
653
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
654
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
655
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
656
|
+
</tr>
|
|
657
|
+
<tr>
|
|
658
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>amount</code></p></td>
|
|
659
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>number</code></p></td>
|
|
660
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Milliseconds to subtract from the interval.</p></td>
|
|
661
|
+
</tr>
|
|
662
|
+
</tbody>
|
|
663
|
+
</table>
|
|
664
|
+
<hr>
|
|
665
|
+
</div>
|
|
666
|
+
<div class="sect2">
|
|
667
|
+
<h3 id="settickintervalinterval-number-void"><a class="link" href="#settickintervalinterval-number-void">2.10. <code>setTickInterval(interval: number): void</code></a></h3>
|
|
668
|
+
<div class="paragraph">
|
|
669
|
+
<p>Sets the tick interval exactly to the specified value.</p>
|
|
670
|
+
</div>
|
|
671
|
+
<div class="paragraph">
|
|
672
|
+
<p><strong>Parameters</strong></p>
|
|
673
|
+
</div>
|
|
674
|
+
<table class="tableblock frame-all grid-all stretch">
|
|
675
|
+
<colgroup>
|
|
676
|
+
<col style="width: 20%;">
|
|
677
|
+
<col style="width: 20%;">
|
|
678
|
+
<col style="width: 60%;">
|
|
679
|
+
</colgroup>
|
|
680
|
+
<tbody>
|
|
681
|
+
<tr>
|
|
682
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
683
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
684
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
685
|
+
</tr>
|
|
686
|
+
<tr>
|
|
687
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>interval</code></p></td>
|
|
688
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>number</code></p></td>
|
|
689
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">The precise new integer interval interval between logic updates (in milliseconds).</p></td>
|
|
690
|
+
</tr>
|
|
691
|
+
</tbody>
|
|
692
|
+
</table>
|
|
693
|
+
<hr>
|
|
694
|
+
</div>
|
|
695
|
+
<div class="sect2">
|
|
696
|
+
<h3 id="setmintickintervalinterval-number-void"><a class="link" href="#setmintickintervalinterval-number-void">2.11. <code>setMinTickInterval(interval: number): void</code></a></h3>
|
|
697
|
+
<div class="paragraph">
|
|
698
|
+
<p>Sets the minimum limit for the tick interval, preventing the game from speeding up beyond this point.</p>
|
|
699
|
+
</div>
|
|
700
|
+
<div class="paragraph">
|
|
701
|
+
<p><strong>Parameters</strong></p>
|
|
702
|
+
</div>
|
|
703
|
+
<table class="tableblock frame-all grid-all stretch">
|
|
704
|
+
<colgroup>
|
|
705
|
+
<col style="width: 20%;">
|
|
706
|
+
<col style="width: 20%;">
|
|
707
|
+
<col style="width: 60%;">
|
|
708
|
+
</colgroup>
|
|
709
|
+
<tbody>
|
|
710
|
+
<tr>
|
|
711
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Name</p></td>
|
|
712
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Type</p></td>
|
|
713
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Description</p></td>
|
|
714
|
+
</tr>
|
|
715
|
+
<tr>
|
|
716
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>interval</code></p></td>
|
|
717
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>number</code></p></td>
|
|
718
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">The strict minimum boundary interval allowed (in milliseconds).</p></td>
|
|
719
|
+
</tr>
|
|
720
|
+
</tbody>
|
|
721
|
+
</table>
|
|
722
|
+
<hr>
|
|
723
|
+
</div>
|
|
724
|
+
<div class="sect2">
|
|
725
|
+
<h3 id="getdebugdata-recordstring-string-number-boolean"><a class="link" href="#getdebugdata-recordstring-string-number-boolean">2.12. <code>getDebugData(): Record<string, string | number | boolean></code></a></h3>
|
|
726
|
+
<div class="paragraph">
|
|
727
|
+
<p>Returns metadata for the real-time debugger.</p>
|
|
728
|
+
</div>
|
|
729
|
+
<div class="paragraph">
|
|
730
|
+
<p><strong>Returns</strong></p>
|
|
731
|
+
</div>
|
|
732
|
+
<div class="paragraph">
|
|
733
|
+
<p><code>Record<string, string | number | boolean></code> - Object containing <code>fps</code> (Frames Per Second), <code>tps</code> (Ticks Per Second), <code>tick_interval</code>, and <code>tick_accumulator</code>.</p>
|
|
734
|
+
</div>
|
|
735
|
+
<hr>
|
|
736
|
+
</div>
|
|
737
|
+
<div class="sect2">
|
|
738
|
+
<h3 id="captureinitialstate-void"><a class="link" href="#captureinitialstate-void">2.13. <code>captureInitialState(): void</code></a></h3>
|
|
739
|
+
<div class="paragraph">
|
|
740
|
+
<p>Captures the current <code>tickInterval</code> as the starting speed for the game session.</p>
|
|
741
|
+
</div>
|
|
742
|
+
<div class="paragraph">
|
|
743
|
+
<p><strong>Behavior</strong></p>
|
|
744
|
+
</div>
|
|
745
|
+
<div class="paragraph">
|
|
746
|
+
<p>This method is called by the <code>Game</code> engine after the game-specific <code>setupGame()</code> has executed. It ensures that when <code>reset()</code> is called, the game returns to its intended initial speed rather than the engine’s global default.</p>
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
</div>
|
|
750
|
+
</div>
|
|
751
|
+
</div>
|
|
752
|
+
<div id="footer">
|
|
753
|
+
<div id="footer-text">
|
|
754
|
+
</div>
|
|
755
|
+
</div>
|
|
756
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"></script>
|
|
757
|
+
<script>
|
|
758
|
+
if (!hljs.initHighlighting.called) {
|
|
759
|
+
hljs.initHighlighting.called = true
|
|
760
|
+
;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
|
|
761
|
+
}
|
|
762
|
+
</script>
|
|
763
|
+
</body>
|
|
764
|
+
</html>
|