brick-engine-js 1.0.22 → 1.0.23
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/README.adoc +2 -2
- package/dist/docs/index.html +3 -3
- package/dist/docs/jsdoc_standard.html +30 -13
- package/dist/docs/reference/bootstrap.html +556 -0
- package/dist/docs/reference/context/RendererContext.html +19 -9
- package/dist/docs/reference/enums/Color.html +11 -5
- package/dist/docs/reference/enums/ControlEventType.html +7 -5
- package/dist/docs/reference/enums/ControlKey.html +7 -5
- package/dist/docs/reference/enums/EventSuffix.html +7 -5
- package/dist/docs/reference/enums/FontAlignment.html +9 -7
- package/dist/docs/reference/enums/FontSize.html +7 -5
- package/dist/docs/reference/enums/Sound.html +7 -5
- package/dist/docs/reference/enums/StateProperty.html +7 -5
- package/dist/docs/reference/helpers/CellHelper.html +6 -2
- package/dist/docs/reference/helpers/ControlInputHandlerHelper.html +9 -5
- package/dist/docs/reference/helpers/CoordinateHelper.html +14 -10
- package/dist/docs/reference/helpers/RelativeValuesHelper.html +7 -3
- package/dist/docs/reference/interfaces/Debuggable.html +9 -7
- package/dist/docs/reference/interfaces/GameModules.html +7 -5
- package/dist/docs/reference/interfaces/Initializable.html +9 -7
- package/dist/docs/reference/interfaces/RendererInitializable.html +9 -7
- package/dist/docs/reference/interfaces/StateContext.html +7 -5
- package/dist/docs/reference/interfaces/StateSyncable.html +11 -9
- package/dist/docs/reference/interfaces/modules/Control.html +19 -17
- package/dist/docs/reference/interfaces/modules/Grid.html +77 -55
- package/dist/docs/reference/interfaces/modules/Renderer.html +9 -7
- package/dist/docs/reference/interfaces/modules/RendererComposite.html +13 -11
- package/dist/docs/reference/interfaces/modules/Score.html +21 -19
- package/dist/docs/reference/interfaces/modules/Session.html +64 -18
- package/dist/docs/reference/interfaces/modules/State.html +59 -57
- package/dist/docs/reference/interfaces/modules/Text.html +21 -19
- package/dist/docs/reference/interfaces/modules/Time.html +80 -24
- package/dist/docs/reference/modules/Debugger.html +16 -14
- package/dist/docs/reference/modules/DisplayRenderer.html +10 -8
- package/dist/docs/reference/modules/EventEmitter.html +34 -26
- package/dist/docs/reference/modules/Game.html +55 -30
- package/dist/docs/reference/modules/GameControl.html +49 -44
- package/dist/docs/reference/modules/GameEventRegistry.html +17 -34
- package/dist/docs/reference/modules/GameGrid.html +174 -116
- package/dist/docs/reference/modules/GameHudGrid.html +10 -8
- package/dist/docs/reference/modules/GameRenderer.html +14 -12
- package/dist/docs/reference/modules/GameScore.html +36 -34
- package/dist/docs/reference/modules/GameSession.html +37 -19
- package/dist/docs/reference/modules/GameSound.html +20 -18
- package/dist/docs/reference/modules/GameState.html +70 -68
- package/dist/docs/reference/modules/GameText.html +29 -27
- package/dist/docs/reference/modules/GameTime.html +98 -30
- package/dist/docs/reference/modules/HudRenderer.html +10 -8
- package/dist/docs/reference/modules/InitialStateSnapshot.html +13 -11
- package/dist/docs/reference/modules/SessionModal.html +11 -9
- package/dist/docs/reference/types/Axis.html +7 -5
- package/dist/docs/reference/types/Cell.html +7 -5
- package/dist/docs/reference/types/ControlCallback.html +7 -5
- package/dist/docs/reference/types/Coordinate.html +7 -5
- package/dist/docs/reference/types/GameEvent.html +7 -5
- package/dist/docs/reference/types/Piece.html +7 -5
- package/dist/docs/reference/types/RendererMetrics.html +7 -5
- package/dist/docs/reference/types/Vector.html +7 -5
- package/dist/docs/reference/view/GameView.html +29 -21
- package/dist/docs/testing_best_practices.html +2 -2
- package/dist/game.bundle.js +1 -1
- package/dist/types/bootstrap.d.ts +12 -11
- package/dist/types/core/Game.d.ts +46 -39
- package/dist/types/core/InitialStateSnapshot.d.ts +18 -6
- package/dist/types/core/context/RendererContext.d.ts +32 -10
- package/dist/types/core/event/EventEmitter.d.ts +64 -21
- package/dist/types/core/event/GameEventRegistry.d.ts +17 -3
- package/dist/types/core/helpers/CellHelper.d.ts +11 -4
- package/dist/types/core/helpers/ControlInputHandlerHelper.d.ts +20 -11
- package/dist/types/core/helpers/CoordinateHelper.d.ts +28 -23
- package/dist/types/core/helpers/InterfaceIdentifierHelper.d.ts +34 -0
- package/dist/types/core/helpers/RelativeValuesHelper.d.ts +10 -8
- package/dist/types/core/module/control/GameControl.d.ts +26 -14
- package/dist/types/core/module/grid/GameGrid.d.ts +68 -53
- package/dist/types/core/module/grid/GameHudGrid.d.ts +9 -7
- package/dist/types/core/module/grid/engines/GridAnalysisEngine.d.ts +25 -6
- package/dist/types/core/module/grid/engines/GridLineEngine.d.ts +51 -13
- package/dist/types/core/module/grid/engines/GridMovementEngine.d.ts +97 -13
- package/dist/types/core/module/grid/engines/GridRegionEngine.d.ts +24 -5
- package/dist/types/core/module/grid/engines/GridTransformEngine.d.ts +21 -5
- package/dist/types/core/module/renderer/DisplayRenderer.d.ts +27 -15
- package/dist/types/core/module/renderer/GameRenderer.d.ts +20 -13
- package/dist/types/core/module/renderer/HudRenderer.d.ts +27 -19
- package/dist/types/core/module/score/GameScore.d.ts +29 -18
- package/dist/types/core/module/session/GameSession.d.ts +56 -0
- package/dist/types/core/module/sound/GameSound.d.ts +39 -23
- package/dist/types/core/module/state/GameState.d.ts +38 -14
- package/dist/types/core/module/text/GameText.d.ts +40 -25
- package/dist/types/core/module/time/GameTime.d.ts +23 -10
- package/dist/types/core/types/Interfaces.d.ts +15 -0
- package/dist/types/core/types/Types.d.ts +1 -0
- package/dist/types/core/types/enums.d.ts +2 -1
- package/dist/types/core/types/modules.d.ts +193 -43
- package/dist/types/view/Debugger.d.ts +23 -0
- package/dist/types/view/GameView.d.ts +44 -27
- package/dist/types/view/SessionModal.d.ts +24 -0
- package/package.json +1 -1
- package/dist/CNAME +0 -1
|
@@ -443,55 +443,57 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
443
443
|
<div id="toc" class="toc2">
|
|
444
444
|
<div id="toctitle">Table of Contents</div>
|
|
445
445
|
<ul class="sectlevel1">
|
|
446
|
-
<li><a href="#
|
|
447
|
-
<li><a href="#persistence
|
|
448
|
-
<li><a href="#
|
|
446
|
+
<li><a href="#architectural-purpose">1. Architectural Purpose</a></li>
|
|
447
|
+
<li><a href="#centralized-persistence">2. Centralized Persistence</a></li>
|
|
448
|
+
<li><a href="#persistence-vs-session">3. Persistence vs. Session</a></li>
|
|
449
|
+
<li><a href="#api-reference">4. API Reference</a>
|
|
449
450
|
<ul class="sectlevel2">
|
|
450
|
-
<li><a href="#ison-boolean">
|
|
451
|
-
<li><a href="#isoff-boolean">
|
|
452
|
-
<li><a href="#isstarted-boolean">
|
|
453
|
-
<li><a href="#isplaying-boolean">
|
|
454
|
-
<li><a href="#ispaused-boolean">
|
|
455
|
-
<li><a href="#isgameover-boolean">
|
|
456
|
-
<li><a href="#turnon-void">
|
|
457
|
-
<li><a href="#turnoff-void">
|
|
458
|
-
<li><a href="#startgame-void">
|
|
459
|
-
<li><a href="#exitgame-void">
|
|
460
|
-
<li><a href="#pause-void">
|
|
461
|
-
<li><a href="#resume-void">
|
|
462
|
-
<li><a href="#triggergameover-void">
|
|
463
|
-
<li><a href="#resetgame-void">
|
|
464
|
-
<li><a href="#resetgameover-void">
|
|
465
|
-
<li><a href="#iscolorenabled-boolean">
|
|
466
|
-
<li><a href="#setcolorenabledvalue-boolean-void">
|
|
467
|
-
<li><a href="#togglecolorenabled-void">
|
|
468
|
-
<li><a href="#ismuted-boolean">
|
|
469
|
-
<li><a href="#setmutedvalue-boolean-void">
|
|
470
|
-
<li><a href="#togglemuted-void">
|
|
471
|
-
<li><a href="#notifyproperty-stateproperty-void">
|
|
472
|
-
<li><a href="#syncstatestate-state-void">
|
|
473
|
-
<li><a href="#subscribeproperty-stateproperty-callback-value-boolean-number-void-void">
|
|
474
|
-
<li><a href="#unsubscribeproperty-stateproperty-callback-value-boolean-number-void-void">
|
|
475
|
-
<li><a href="#subscribefortitlescreen-unsubscribefortitlescreen">
|
|
476
|
-
<li><a href="#subscribeforgameoverscreen-unsubscribeforgameoverscreen">
|
|
477
|
-
<li><a href="#subscribeforplayingscreen-unsubscribeforplayingscreen">
|
|
478
|
-
<li><a href="#subscribeforpausedscreen-unsubscribeforpausedscreen">
|
|
479
|
-
<li><a href="#getdebugdata-recordstring-string-number-boolean">
|
|
451
|
+
<li><a href="#ison-boolean">4.1. <code>isOn(): boolean</code></a></li>
|
|
452
|
+
<li><a href="#isoff-boolean">4.2. <code>isOff(): boolean</code></a></li>
|
|
453
|
+
<li><a href="#isstarted-boolean">4.3. <code>isStarted(): boolean</code></a></li>
|
|
454
|
+
<li><a href="#isplaying-boolean">4.4. <code>isPlaying(): boolean</code></a></li>
|
|
455
|
+
<li><a href="#ispaused-boolean">4.5. <code>isPaused(): boolean</code></a></li>
|
|
456
|
+
<li><a href="#isgameover-boolean">4.6. <code>isGameOver(): boolean</code></a></li>
|
|
457
|
+
<li><a href="#turnon-void">4.7. <code>turnOn(): void</code></a></li>
|
|
458
|
+
<li><a href="#turnoff-void">4.8. <code>turnOff(): void</code></a></li>
|
|
459
|
+
<li><a href="#startgame-void">4.9. <code>startGame(): void</code></a></li>
|
|
460
|
+
<li><a href="#exitgame-void">4.10. <code>exitGame(): void</code></a></li>
|
|
461
|
+
<li><a href="#pause-void">4.11. <code>pause(): void</code></a></li>
|
|
462
|
+
<li><a href="#resume-void">4.12. <code>resume(): void</code></a></li>
|
|
463
|
+
<li><a href="#triggergameover-void">4.13. <code>triggerGameOver(): void</code></a></li>
|
|
464
|
+
<li><a href="#resetgame-void">4.14. <code>resetGame(): void</code></a></li>
|
|
465
|
+
<li><a href="#resetgameover-void">4.15. <code>resetGameOver(): void</code></a></li>
|
|
466
|
+
<li><a href="#iscolorenabled-boolean">4.16. <code>isColorEnabled(): boolean</code></a></li>
|
|
467
|
+
<li><a href="#setcolorenabledvalue-boolean-void">4.17. <code>setColorEnabled(value: boolean): void</code></a></li>
|
|
468
|
+
<li><a href="#togglecolorenabled-void">4.18. <code>toggleColorEnabled(): void</code></a></li>
|
|
469
|
+
<li><a href="#ismuted-boolean">4.19. <code>isMuted(): boolean</code></a></li>
|
|
470
|
+
<li><a href="#setmutedvalue-boolean-void">4.20. <code>setMuted(value: boolean): void</code></a></li>
|
|
471
|
+
<li><a href="#togglemuted-void">4.21. <code>toggleMuted(): void</code></a></li>
|
|
472
|
+
<li><a href="#notifyproperty-stateproperty-void">4.22. <code>notify(property: StateProperty): void</code></a></li>
|
|
473
|
+
<li><a href="#syncstatestate-state-void">4.23. <code>syncState(state: State): void</code></a></li>
|
|
474
|
+
<li><a href="#subscribeproperty-stateproperty-callback-value-boolean-number-void-void">4.24. <code>subscribe(property: StateProperty, callback: (value: boolean | number) ⇒ void): void</code></a></li>
|
|
475
|
+
<li><a href="#unsubscribeproperty-stateproperty-callback-value-boolean-number-void-void">4.25. <code>unsubscribe(property: StateProperty, callback: (value: boolean | number) ⇒ void): void</code></a></li>
|
|
476
|
+
<li><a href="#subscribefortitlescreen-unsubscribefortitlescreen">4.26. <code>subscribeForTitleScreen(…​) / unsubscribeForTitleScreen(…​)</code></a></li>
|
|
477
|
+
<li><a href="#subscribeforgameoverscreen-unsubscribeforgameoverscreen">4.27. <code>subscribeForGameOverScreen(…​) / unsubscribeForGameOverScreen(…​)</code></a></li>
|
|
478
|
+
<li><a href="#subscribeforplayingscreen-unsubscribeforplayingscreen">4.28. <code>subscribeForPlayingScreen(…​) / unsubscribeForPlayingScreen(…​)</code></a></li>
|
|
479
|
+
<li><a href="#subscribeforpausedscreen-unsubscribeforpausedscreen">4.29. <code>subscribeForPausedScreen(…​) / unsubscribeForPausedScreen(…​)</code></a></li>
|
|
480
|
+
<li><a href="#getdebugdata-recordstring-string-number-boolean">4.30. <code>getDebugData(): Record<string, string | number | boolean></code></a></li>
|
|
480
481
|
</ul>
|
|
481
482
|
</li>
|
|
482
483
|
</ul>
|
|
483
484
|
</div>
|
|
484
485
|
</div>
|
|
485
486
|
<div id="content">
|
|
486
|
-
<div
|
|
487
|
+
<div class="sect1">
|
|
488
|
+
<h2 id="architectural-purpose"><a class="link" href="#architectural-purpose">1. Architectural Purpose</a></h2>
|
|
487
489
|
<div class="sectionbody">
|
|
488
490
|
<div class="paragraph">
|
|
489
|
-
<p>The <code>GameState</code> module acts as the central
|
|
491
|
+
<p>The <code>GameState</code> module acts as the central singleton source of truth for the game lifecycle and persistent user preferences. It implies solving the problem of having scattered configuration settings across multiple runtime contexts. By designating this class as the sole entity interacting with <code>LocalStorage</code>, it completely decouples transient runtime events from cross-session data storage.</p>
|
|
490
492
|
</div>
|
|
491
493
|
</div>
|
|
492
494
|
</div>
|
|
493
495
|
<div class="sect1">
|
|
494
|
-
<h2 id="centralized-persistence"><a class="link" href="#centralized-persistence">
|
|
496
|
+
<h2 id="centralized-persistence"><a class="link" href="#centralized-persistence">2. Centralized Persistence</a></h2>
|
|
495
497
|
<div class="sectionbody">
|
|
496
498
|
<div class="paragraph">
|
|
497
499
|
<p>As defined in the Architectural Patterns, <code>GameState</code> is responsible for all <code>LocalStorage</code> logic. Other modules (like <code><a href="GameSound.html">GameSound</a></code>) must sync their internal state with this module via the <code><a href="../interfaces/StateSyncable.html">StateSyncable</a></code> interface.</p>
|
|
@@ -499,7 +501,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
499
501
|
</div>
|
|
500
502
|
</div>
|
|
501
503
|
<div class="sect1">
|
|
502
|
-
<h2 id="persistence-vs-session"><a class="link" href="#persistence-vs-session">
|
|
504
|
+
<h2 id="persistence-vs-session"><a class="link" href="#persistence-vs-session">3. Persistence vs. Session</a></h2>
|
|
503
505
|
<div class="sectionbody">
|
|
504
506
|
<div class="paragraph">
|
|
505
507
|
<p>It is important to understand the boundary between <code>GameState</code> persistence and the <code>Game</code> Session management:</p>
|
|
@@ -517,10 +519,10 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
517
519
|
</div>
|
|
518
520
|
</div>
|
|
519
521
|
<div class="sect1">
|
|
520
|
-
<h2 id="api-reference"><a class="link" href="#api-reference">
|
|
522
|
+
<h2 id="api-reference"><a class="link" href="#api-reference">4. API Reference</a></h2>
|
|
521
523
|
<div class="sectionbody">
|
|
522
524
|
<div class="sect2">
|
|
523
|
-
<h3 id="ison-boolean"><a class="link" href="#ison-boolean">
|
|
525
|
+
<h3 id="ison-boolean"><a class="link" href="#ison-boolean">4.1. <code>isOn(): boolean</code></a></h3>
|
|
524
526
|
<div class="paragraph">
|
|
525
527
|
<p>Checks if the game system is powered up.</p>
|
|
526
528
|
</div>
|
|
@@ -533,7 +535,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
533
535
|
<hr>
|
|
534
536
|
</div>
|
|
535
537
|
<div class="sect2">
|
|
536
|
-
<h3 id="isoff-boolean"><a class="link" href="#isoff-boolean">
|
|
538
|
+
<h3 id="isoff-boolean"><a class="link" href="#isoff-boolean">4.2. <code>isOff(): boolean</code></a></h3>
|
|
537
539
|
<div class="paragraph">
|
|
538
540
|
<p>Checks if the game system is powered down.</p>
|
|
539
541
|
</div>
|
|
@@ -546,7 +548,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
546
548
|
<hr>
|
|
547
549
|
</div>
|
|
548
550
|
<div class="sect2">
|
|
549
|
-
<h3 id="isstarted-boolean"><a class="link" href="#isstarted-boolean">
|
|
551
|
+
<h3 id="isstarted-boolean"><a class="link" href="#isstarted-boolean">4.3. <code>isStarted(): boolean</code></a></h3>
|
|
550
552
|
<div class="paragraph">
|
|
551
553
|
<p>Checks if a game session is active (passed the title screen).</p>
|
|
552
554
|
</div>
|
|
@@ -559,7 +561,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
559
561
|
<hr>
|
|
560
562
|
</div>
|
|
561
563
|
<div class="sect2">
|
|
562
|
-
<h3 id="isplaying-boolean"><a class="link" href="#isplaying-boolean">
|
|
564
|
+
<h3 id="isplaying-boolean"><a class="link" href="#isplaying-boolean">4.4. <code>isPlaying(): boolean</code></a></h3>
|
|
563
565
|
<div class="paragraph">
|
|
564
566
|
<p>Checks if the game loop is actively updating logic.</p>
|
|
565
567
|
</div>
|
|
@@ -572,7 +574,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
572
574
|
<hr>
|
|
573
575
|
</div>
|
|
574
576
|
<div class="sect2">
|
|
575
|
-
<h3 id="ispaused-boolean"><a class="link" href="#ispaused-boolean">
|
|
577
|
+
<h3 id="ispaused-boolean"><a class="link" href="#ispaused-boolean">4.5. <code>isPaused(): boolean</code></a></h3>
|
|
576
578
|
<div class="paragraph">
|
|
577
579
|
<p>Checks if the game is currently paused.</p>
|
|
578
580
|
</div>
|
|
@@ -585,7 +587,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
585
587
|
<hr>
|
|
586
588
|
</div>
|
|
587
589
|
<div class="sect2">
|
|
588
|
-
<h3 id="isgameover-boolean"><a class="link" href="#isgameover-boolean">
|
|
590
|
+
<h3 id="isgameover-boolean"><a class="link" href="#isgameover-boolean">4.6. <code>isGameOver(): boolean</code></a></h3>
|
|
589
591
|
<div class="paragraph">
|
|
590
592
|
<p>Checks if the current session has ended in a Game Over.</p>
|
|
591
593
|
</div>
|
|
@@ -598,7 +600,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
598
600
|
<hr>
|
|
599
601
|
</div>
|
|
600
602
|
<div class="sect2">
|
|
601
|
-
<h3 id="turnon-void"><a class="link" href="#turnon-void">
|
|
603
|
+
<h3 id="turnon-void"><a class="link" href="#turnon-void">4.7. <code>turnOn(): void</code></a></h3>
|
|
602
604
|
<div class="paragraph">
|
|
603
605
|
<p>Powers on the game system.</p>
|
|
604
606
|
</div>
|
|
@@ -611,7 +613,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
611
613
|
<hr>
|
|
612
614
|
</div>
|
|
613
615
|
<div class="sect2">
|
|
614
|
-
<h3 id="turnoff-void"><a class="link" href="#turnoff-void">
|
|
616
|
+
<h3 id="turnoff-void"><a class="link" href="#turnoff-void">4.8. <code>turnOff(): void</code></a></h3>
|
|
615
617
|
<div class="paragraph">
|
|
616
618
|
<p>Powers off the game system.</p>
|
|
617
619
|
</div>
|
|
@@ -624,7 +626,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
624
626
|
<hr>
|
|
625
627
|
</div>
|
|
626
628
|
<div class="sect2">
|
|
627
|
-
<h3 id="startgame-void"><a class="link" href="#startgame-void">
|
|
629
|
+
<h3 id="startgame-void"><a class="link" href="#startgame-void">4.9. <code>startGame(): void</code></a></h3>
|
|
628
630
|
<div class="paragraph">
|
|
629
631
|
<p>Initiates gameplay from the title screen.</p>
|
|
630
632
|
</div>
|
|
@@ -637,7 +639,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
637
639
|
<hr>
|
|
638
640
|
</div>
|
|
639
641
|
<div class="sect2">
|
|
640
|
-
<h3 id="exitgame-void"><a class="link" href="#exitgame-void">
|
|
642
|
+
<h3 id="exitgame-void"><a class="link" href="#exitgame-void">4.10. <code>exitGame(): void</code></a></h3>
|
|
641
643
|
<div class="paragraph">
|
|
642
644
|
<p>Ends the session and returns to the title screen.</p>
|
|
643
645
|
</div>
|
|
@@ -650,7 +652,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
650
652
|
<hr>
|
|
651
653
|
</div>
|
|
652
654
|
<div class="sect2">
|
|
653
|
-
<h3 id="pause-void"><a class="link" href="#pause-void">
|
|
655
|
+
<h3 id="pause-void"><a class="link" href="#pause-void">4.11. <code>pause(): void</code></a></h3>
|
|
654
656
|
<div class="paragraph">
|
|
655
657
|
<p>Halts gameplay logic.</p>
|
|
656
658
|
</div>
|
|
@@ -663,7 +665,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
663
665
|
<hr>
|
|
664
666
|
</div>
|
|
665
667
|
<div class="sect2">
|
|
666
|
-
<h3 id="resume-void"><a class="link" href="#resume-void">
|
|
668
|
+
<h3 id="resume-void"><a class="link" href="#resume-void">4.12. <code>resume(): void</code></a></h3>
|
|
667
669
|
<div class="paragraph">
|
|
668
670
|
<p>Restarts gameplay logic from a paused state.</p>
|
|
669
671
|
</div>
|
|
@@ -676,7 +678,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
676
678
|
<hr>
|
|
677
679
|
</div>
|
|
678
680
|
<div class="sect2">
|
|
679
|
-
<h3 id="triggergameover-void"><a class="link" href="#triggergameover-void">
|
|
681
|
+
<h3 id="triggergameover-void"><a class="link" href="#triggergameover-void">4.13. <code>triggerGameOver(): void</code></a></h3>
|
|
680
682
|
<div class="paragraph">
|
|
681
683
|
<p>Forces the game into a Game Over state.</p>
|
|
682
684
|
</div>
|
|
@@ -689,7 +691,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
689
691
|
<hr>
|
|
690
692
|
</div>
|
|
691
693
|
<div class="sect2">
|
|
692
|
-
<h3 id="resetgame-void"><a class="link" href="#resetgame-void">
|
|
694
|
+
<h3 id="resetgame-void"><a class="link" href="#resetgame-void">4.14. <code>resetGame(): void</code></a></h3>
|
|
693
695
|
<div class="paragraph">
|
|
694
696
|
<p>Prepares the state for a new round (hard restart).</p>
|
|
695
697
|
</div>
|
|
@@ -702,7 +704,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
702
704
|
<hr>
|
|
703
705
|
</div>
|
|
704
706
|
<div class="sect2">
|
|
705
|
-
<h3 id="resetgameover-void"><a class="link" href="#resetgameover-void">
|
|
707
|
+
<h3 id="resetgameover-void"><a class="link" href="#resetgameover-void">4.15. <code>resetGameOver(): void</code></a></h3>
|
|
706
708
|
<div class="paragraph">
|
|
707
709
|
<p>Resets the state specifically after a Game Over to allow immediate restart.</p>
|
|
708
710
|
</div>
|
|
@@ -715,7 +717,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
715
717
|
<hr>
|
|
716
718
|
</div>
|
|
717
719
|
<div class="sect2">
|
|
718
|
-
<h3 id="iscolorenabled-boolean"><a class="link" href="#iscolorenabled-boolean">
|
|
720
|
+
<h3 id="iscolorenabled-boolean"><a class="link" href="#iscolorenabled-boolean">4.16. <code>isColorEnabled(): boolean</code></a></h3>
|
|
719
721
|
<div class="paragraph">
|
|
720
722
|
<p>Checks if theme color mode is active.</p>
|
|
721
723
|
</div>
|
|
@@ -728,7 +730,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
728
730
|
<hr>
|
|
729
731
|
</div>
|
|
730
732
|
<div class="sect2">
|
|
731
|
-
<h3 id="setcolorenabledvalue-boolean-void"><a class="link" href="#setcolorenabledvalue-boolean-void">
|
|
733
|
+
<h3 id="setcolorenabledvalue-boolean-void"><a class="link" href="#setcolorenabledvalue-boolean-void">4.17. <code>setColorEnabled(value: boolean): void</code></a></h3>
|
|
732
734
|
<div class="paragraph">
|
|
733
735
|
<p>Sets the color mode preference.</p>
|
|
734
736
|
</div>
|
|
@@ -763,14 +765,14 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
763
765
|
<hr>
|
|
764
766
|
</div>
|
|
765
767
|
<div class="sect2">
|
|
766
|
-
<h3 id="togglecolorenabled-void"><a class="link" href="#togglecolorenabled-void">
|
|
768
|
+
<h3 id="togglecolorenabled-void"><a class="link" href="#togglecolorenabled-void">4.18. <code>toggleColorEnabled(): void</code></a></h3>
|
|
767
769
|
<div class="paragraph">
|
|
768
770
|
<p>Toggles the current color mode.</p>
|
|
769
771
|
</div>
|
|
770
772
|
<hr>
|
|
771
773
|
</div>
|
|
772
774
|
<div class="sect2">
|
|
773
|
-
<h3 id="ismuted-boolean"><a class="link" href="#ismuted-boolean">
|
|
775
|
+
<h3 id="ismuted-boolean"><a class="link" href="#ismuted-boolean">4.19. <code>isMuted(): boolean</code></a></h3>
|
|
774
776
|
<div class="paragraph">
|
|
775
777
|
<p>Checks if master audio is muted.</p>
|
|
776
778
|
</div>
|
|
@@ -783,7 +785,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
783
785
|
<hr>
|
|
784
786
|
</div>
|
|
785
787
|
<div class="sect2">
|
|
786
|
-
<h3 id="setmutedvalue-boolean-void"><a class="link" href="#setmutedvalue-boolean-void">
|
|
788
|
+
<h3 id="setmutedvalue-boolean-void"><a class="link" href="#setmutedvalue-boolean-void">4.20. <code>setMuted(value: boolean): void</code></a></h3>
|
|
787
789
|
<div class="paragraph">
|
|
788
790
|
<p>Sets the master mute status.</p>
|
|
789
791
|
</div>
|
|
@@ -818,7 +820,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
818
820
|
<hr>
|
|
819
821
|
</div>
|
|
820
822
|
<div class="sect2">
|
|
821
|
-
<h3 id="togglemuted-void"><a class="link" href="#togglemuted-void">
|
|
823
|
+
<h3 id="togglemuted-void"><a class="link" href="#togglemuted-void">4.21. <code>toggleMuted(): void</code></a></h3>
|
|
822
824
|
<div class="paragraph">
|
|
823
825
|
<p>Toggles the master mute status.</p>
|
|
824
826
|
</div>
|
|
@@ -826,7 +828,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
826
828
|
<hr>
|
|
827
829
|
</div>
|
|
828
830
|
<div class="sect2">
|
|
829
|
-
<h3 id="notifyproperty-stateproperty-void"><a class="link" href="#notifyproperty-stateproperty-void">
|
|
831
|
+
<h3 id="notifyproperty-stateproperty-void"><a class="link" href="#notifyproperty-stateproperty-void">4.22. <code>notify(property: StateProperty): void</code></a></h3>
|
|
830
832
|
<div class="paragraph">
|
|
831
833
|
<p>Manually triggers notifications for a state property.</p>
|
|
832
834
|
</div>
|
|
@@ -869,14 +871,14 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
869
871
|
<hr>
|
|
870
872
|
</div>
|
|
871
873
|
<div class="sect2">
|
|
872
|
-
<h3 id="syncstatestate-state-void"><a class="link" href="#syncstatestate-state-void">
|
|
874
|
+
<h3 id="syncstatestate-state-void"><a class="link" href="#syncstatestate-state-void">4.23. <code>syncState(state: State): void</code></a></h3>
|
|
873
875
|
<div class="paragraph">
|
|
874
876
|
<p>Syncs the internal state with the <code><a href="#">GameState</a></code>. This is required for modules that implement the <code><a href="../interfaces/StateSyncable.html">StateSyncable</a></code> interface.</p>
|
|
875
877
|
</div>
|
|
876
878
|
<hr>
|
|
877
879
|
</div>
|
|
878
880
|
<div class="sect2">
|
|
879
|
-
<h3 id="subscribeproperty-stateproperty-callback-value-boolean-number-void-void"><a class="link" href="#subscribeproperty-stateproperty-callback-value-boolean-number-void-void">
|
|
881
|
+
<h3 id="subscribeproperty-stateproperty-callback-value-boolean-number-void-void"><a class="link" href="#subscribeproperty-stateproperty-callback-value-boolean-number-void-void">4.24. <code>subscribe(property: StateProperty, callback: (value: boolean | number) ⇒ void): void</code></a></h3>
|
|
880
882
|
<div class="paragraph">
|
|
881
883
|
<p>Registers a listener for state changes.</p>
|
|
882
884
|
</div>
|
|
@@ -922,7 +924,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
922
924
|
<hr>
|
|
923
925
|
</div>
|
|
924
926
|
<div class="sect2">
|
|
925
|
-
<h3 id="unsubscribeproperty-stateproperty-callback-value-boolean-number-void-void"><a class="link" href="#unsubscribeproperty-stateproperty-callback-value-boolean-number-void-void">
|
|
927
|
+
<h3 id="unsubscribeproperty-stateproperty-callback-value-boolean-number-void-void"><a class="link" href="#unsubscribeproperty-stateproperty-callback-value-boolean-number-void-void">4.25. <code>unsubscribe(property: StateProperty, callback: (value: boolean | number) ⇒ void): void</code></a></h3>
|
|
926
928
|
<div class="paragraph">
|
|
927
929
|
<p>Removes a state change listener.</p>
|
|
928
930
|
</div>
|
|
@@ -956,7 +958,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
956
958
|
<hr>
|
|
957
959
|
</div>
|
|
958
960
|
<div class="sect2">
|
|
959
|
-
<h3 id="subscribefortitlescreen-unsubscribefortitlescreen"><a class="link" href="#subscribefortitlescreen-unsubscribefortitlescreen">
|
|
961
|
+
<h3 id="subscribefortitlescreen-unsubscribefortitlescreen"><a class="link" href="#subscribefortitlescreen-unsubscribefortitlescreen">4.26. <code>subscribeForTitleScreen(…​) / unsubscribeForTitleScreen(…​)</code></a></h3>
|
|
960
962
|
<div class="paragraph">
|
|
961
963
|
<p>Specialized methods to listen for state changes <strong>ONLY</strong> while the engine is in the Title Screen state.</p>
|
|
962
964
|
</div>
|
|
@@ -977,21 +979,21 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
977
979
|
<hr>
|
|
978
980
|
</div>
|
|
979
981
|
<div class="sect2">
|
|
980
|
-
<h3 id="subscribeforgameoverscreen-unsubscribeforgameoverscreen"><a class="link" href="#subscribeforgameoverscreen-unsubscribeforgameoverscreen">
|
|
982
|
+
<h3 id="subscribeforgameoverscreen-unsubscribeforgameoverscreen"><a class="link" href="#subscribeforgameoverscreen-unsubscribeforgameoverscreen">4.27. <code>subscribeForGameOverScreen(…​) / unsubscribeForGameOverScreen(…​)</code></a></h3>
|
|
981
983
|
<div class="paragraph">
|
|
982
984
|
<p>Specialized methods to listen for state changes <strong>ONLY</strong> while the engine is in the Game Over state.</p>
|
|
983
985
|
</div>
|
|
984
986
|
<hr>
|
|
985
987
|
</div>
|
|
986
988
|
<div class="sect2">
|
|
987
|
-
<h3 id="subscribeforplayingscreen-unsubscribeforplayingscreen"><a class="link" href="#subscribeforplayingscreen-unsubscribeforplayingscreen">
|
|
989
|
+
<h3 id="subscribeforplayingscreen-unsubscribeforplayingscreen"><a class="link" href="#subscribeforplayingscreen-unsubscribeforplayingscreen">4.28. <code>subscribeForPlayingScreen(…​) / unsubscribeForPlayingScreen(…​)</code></a></h3>
|
|
988
990
|
<div class="paragraph">
|
|
989
991
|
<p>Specialized methods to listen for state changes <strong>ONLY</strong> while the engine is in the active Gameplay state.</p>
|
|
990
992
|
</div>
|
|
991
993
|
<hr>
|
|
992
994
|
</div>
|
|
993
995
|
<div class="sect2">
|
|
994
|
-
<h3 id="subscribeforpausedscreen-unsubscribeforpausedscreen"><a class="link" href="#subscribeforpausedscreen-unsubscribeforpausedscreen">
|
|
996
|
+
<h3 id="subscribeforpausedscreen-unsubscribeforpausedscreen"><a class="link" href="#subscribeforpausedscreen-unsubscribeforpausedscreen">4.29. <code>subscribeForPausedScreen(…​) / unsubscribeForPausedScreen(…​)</code></a></h3>
|
|
995
997
|
<div class="paragraph">
|
|
996
998
|
<p>Specialized methods to listen for state changes <strong>ONLY</strong> while the engine is in the Paused state.</p>
|
|
997
999
|
</div>
|
|
@@ -1012,7 +1014,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
1012
1014
|
<hr>
|
|
1013
1015
|
</div>
|
|
1014
1016
|
<div class="sect2">
|
|
1015
|
-
<h3 id="getdebugdata-recordstring-string-number-boolean"><a class="link" href="#getdebugdata-recordstring-string-number-boolean">
|
|
1017
|
+
<h3 id="getdebugdata-recordstring-string-number-boolean"><a class="link" href="#getdebugdata-recordstring-string-number-boolean">4.30. <code>getDebugData(): Record<string, string | number | boolean></code></a></h3>
|
|
1016
1018
|
<div class="paragraph">
|
|
1017
1019
|
<p>Returns metadata for the real-time debugger.</p>
|
|
1018
1020
|
</div>
|
|
@@ -443,34 +443,36 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
443
443
|
<div id="toc" class="toc2">
|
|
444
444
|
<div id="toctitle">Table of Contents</div>
|
|
445
445
|
<ul class="sectlevel1">
|
|
446
|
-
<li><a href="#
|
|
446
|
+
<li><a href="#architectural-purpose">1. Architectural Purpose</a></li>
|
|
447
|
+
<li><a href="#api-reference">2. API Reference</a>
|
|
447
448
|
<ul class="sectlevel2">
|
|
448
|
-
<li><a href="#settextsizesize-fontsize-void">
|
|
449
|
-
<li><a href="#settextalignalign-fontalign-verticalalign-fontverticalalign-void">
|
|
450
|
-
<li><a href="#setactivetext-void">
|
|
451
|
-
<li><a href="#setinactivetext-void">
|
|
452
|
-
<li><a href="#textondisplaytext-string-coordinate-coordinate-void">
|
|
453
|
-
<li><a href="#textonhudtext-string-coordinate-coordinate-void">
|
|
454
|
-
<li><a href="#setrenderermetricsmetrics-renderermetrics-void">
|
|
455
|
-
<li><a href="#getdebugdata-recordstring-string-number-boolean">
|
|
449
|
+
<li><a href="#settextsizesize-fontsize-void">2.1. <code>setTextSize(size: FontSize): void</code></a></li>
|
|
450
|
+
<li><a href="#settextalignalign-fontalign-verticalalign-fontverticalalign-void">2.2. <code>setTextAlign(align: FontAlign, verticalAlign: FontVerticalAlign): void</code></a></li>
|
|
451
|
+
<li><a href="#setactivetext-void">2.3. <code>setActiveText(): void</code></a></li>
|
|
452
|
+
<li><a href="#setinactivetext-void">2.4. <code>setInactiveText(): void</code></a></li>
|
|
453
|
+
<li><a href="#textondisplaytext-string-coordinate-coordinate-void">2.5. <code>textOnDisplay(text: string, coordinate: Coordinate): void</code></a></li>
|
|
454
|
+
<li><a href="#textonhudtext-string-coordinate-coordinate-void">2.6. <code>textOnHud(text: string, coordinate: Coordinate): void</code></a></li>
|
|
455
|
+
<li><a href="#setrenderermetricsmetrics-renderermetrics-void">2.7. <code>setRendererMetrics(metrics: RendererMetrics): void</code></a></li>
|
|
456
|
+
<li><a href="#getdebugdata-recordstring-string-number-boolean">2.8. <code>getDebugData(): Record<string, string | number | boolean></code></a></li>
|
|
456
457
|
</ul>
|
|
457
458
|
</li>
|
|
458
459
|
</ul>
|
|
459
460
|
</div>
|
|
460
461
|
</div>
|
|
461
462
|
<div id="content">
|
|
462
|
-
<div
|
|
463
|
+
<div class="sect1">
|
|
464
|
+
<h2 id="architectural-purpose"><a class="link" href="#architectural-purpose">1. Architectural Purpose</a></h2>
|
|
463
465
|
<div class="sectionbody">
|
|
464
466
|
<div class="paragraph">
|
|
465
|
-
<p>The <code>GameText</code> module
|
|
467
|
+
<p>The <code>GameText</code> module isolates all typography and sizing logic away from the rendering pipelines. By pre-calculating relative font sizing constraints and wrapping absolute rendering parameters over internal relative metrics structures (<code><a href="../types/Coordinate.html">Coordinate</a></code>), it guarantees that the HUD or grid components do not have to directly calculate native element boundaries against the volatile physical display size.</p>
|
|
466
468
|
</div>
|
|
467
469
|
</div>
|
|
468
470
|
</div>
|
|
469
471
|
<div class="sect1">
|
|
470
|
-
<h2 id="api-reference"><a class="link" href="#api-reference">
|
|
472
|
+
<h2 id="api-reference"><a class="link" href="#api-reference">2. API Reference</a></h2>
|
|
471
473
|
<div class="sectionbody">
|
|
472
474
|
<div class="sect2">
|
|
473
|
-
<h3 id="settextsizesize-fontsize-void"><a class="link" href="#settextsizesize-fontsize-void">
|
|
475
|
+
<h3 id="settextsizesize-fontsize-void"><a class="link" href="#settextsizesize-fontsize-void">2.1. <code>setTextSize(size: FontSize): void</code></a></h3>
|
|
474
476
|
<div class="paragraph">
|
|
475
477
|
<p>Sets the current font size from predefined responsive values.</p>
|
|
476
478
|
</div>
|
|
@@ -492,7 +494,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
492
494
|
<tr>
|
|
493
495
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>size</code></p></td>
|
|
494
496
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code><a href="../enums/FontSize.html">FontSize</a></code></p></td>
|
|
495
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">
|
|
497
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">The preset enum scalar value representing the responsive dimension required.</p></td>
|
|
496
498
|
</tr>
|
|
497
499
|
</tbody>
|
|
498
500
|
</table>
|
|
@@ -513,7 +515,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
513
515
|
<hr>
|
|
514
516
|
</div>
|
|
515
517
|
<div class="sect2">
|
|
516
|
-
<h3 id="settextalignalign-fontalign-verticalalign-fontverticalalign-void"><a class="link" href="#settextalignalign-fontalign-verticalalign-fontverticalalign-void">
|
|
518
|
+
<h3 id="settextalignalign-fontalign-verticalalign-fontverticalalign-void"><a class="link" href="#settextalignalign-fontalign-verticalalign-fontverticalalign-void">2.2. <code>setTextAlign(align: FontAlign, verticalAlign: FontVerticalAlign): void</code></a></h3>
|
|
517
519
|
<div class="paragraph">
|
|
518
520
|
<p>Configures the alignment of rendered text.</p>
|
|
519
521
|
</div>
|
|
@@ -535,33 +537,33 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
535
537
|
<tr>
|
|
536
538
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>align</code></p></td>
|
|
537
539
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code><a href="../enums/FontAlignment.html">FontAlign</a></code></p></td>
|
|
538
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Horizontal
|
|
540
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Horizontal geometric justification anchor orientation (<code>LEFT</code>, <code>CENTER</code>, <code>RIGHT</code>).</p></td>
|
|
539
541
|
</tr>
|
|
540
542
|
<tr>
|
|
541
543
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>verticalAlign</code></p></td>
|
|
542
544
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code><a href="../enums/FontAlignment.html">FontVerticalAlign</a></code></p></td>
|
|
543
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">Vertical
|
|
545
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Vertical bound origin placement orientation (<code>TOP</code>, <code>CENTER</code>, <code>BOTTOM</code>).</p></td>
|
|
544
546
|
</tr>
|
|
545
547
|
</tbody>
|
|
546
548
|
</table>
|
|
547
549
|
<hr>
|
|
548
550
|
</div>
|
|
549
551
|
<div class="sect2">
|
|
550
|
-
<h3 id="setactivetext-void"><a class="link" href="#setactivetext-void">
|
|
552
|
+
<h3 id="setactivetext-void"><a class="link" href="#setactivetext-void">2.3. <code>setActiveText(): void</code></a></h3>
|
|
551
553
|
<div class="paragraph">
|
|
552
554
|
<p>Sets the text fill color to the active theme color.</p>
|
|
553
555
|
</div>
|
|
554
556
|
<hr>
|
|
555
557
|
</div>
|
|
556
558
|
<div class="sect2">
|
|
557
|
-
<h3 id="setinactivetext-void"><a class="link" href="#setinactivetext-void">
|
|
559
|
+
<h3 id="setinactivetext-void"><a class="link" href="#setinactivetext-void">2.4. <code>setInactiveText(): void</code></a></h3>
|
|
558
560
|
<div class="paragraph">
|
|
559
561
|
<p>Sets the text fill color to the inactive theme color.</p>
|
|
560
562
|
</div>
|
|
561
563
|
<hr>
|
|
562
564
|
</div>
|
|
563
565
|
<div class="sect2">
|
|
564
|
-
<h3 id="textondisplaytext-string-coordinate-coordinate-void"><a class="link" href="#textondisplaytext-string-coordinate-coordinate-void">
|
|
566
|
+
<h3 id="textondisplaytext-string-coordinate-coordinate-void"><a class="link" href="#textondisplaytext-string-coordinate-coordinate-void">2.5. <code>textOnDisplay(text: string, coordinate: Coordinate): void</code></a></h3>
|
|
565
567
|
<div class="paragraph">
|
|
566
568
|
<p>Renders text on the main game display area.</p>
|
|
567
569
|
</div>
|
|
@@ -583,12 +585,12 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
583
585
|
<tr>
|
|
584
586
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>text</code></p></td>
|
|
585
587
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>string</code></p></td>
|
|
586
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">The
|
|
588
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">The direct formatted string intended for output.</p></td>
|
|
587
589
|
</tr>
|
|
588
590
|
<tr>
|
|
589
591
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>coordinate</code></p></td>
|
|
590
592
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code><a href="../types/Coordinate.html">Coordinate</a></code></p></td>
|
|
591
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">
|
|
593
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Floating point proportional coordinate anchor points (between <code>0.0</code> and <code>1.0</code>) relative exclusively to the parent grid bounds.</p></td>
|
|
592
594
|
</tr>
|
|
593
595
|
</tbody>
|
|
594
596
|
</table>
|
|
@@ -603,7 +605,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
603
605
|
<hr>
|
|
604
606
|
</div>
|
|
605
607
|
<div class="sect2">
|
|
606
|
-
<h3 id="textonhudtext-string-coordinate-coordinate-void"><a class="link" href="#textonhudtext-string-coordinate-coordinate-void">
|
|
608
|
+
<h3 id="textonhudtext-string-coordinate-coordinate-void"><a class="link" href="#textonhudtext-string-coordinate-coordinate-void">2.6. <code>textOnHud(text: string, coordinate: Coordinate): void</code></a></h3>
|
|
607
609
|
<div class="paragraph">
|
|
608
610
|
<p>Renders text on the side HUD area.</p>
|
|
609
611
|
</div>
|
|
@@ -625,19 +627,19 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
625
627
|
<tr>
|
|
626
628
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>text</code></p></td>
|
|
627
629
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>string</code></p></td>
|
|
628
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">The
|
|
630
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">The distinct formatted numeric or string label segment intended for the UI.</p></td>
|
|
629
631
|
</tr>
|
|
630
632
|
<tr>
|
|
631
633
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>coordinate</code></p></td>
|
|
632
634
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code><a href="../types/Coordinate.html">Coordinate</a></code></p></td>
|
|
633
|
-
<td class="tableblock halign-left valign-top"><p class="tableblock">
|
|
635
|
+
<td class="tableblock halign-left valign-top"><p class="tableblock">Relative coordinate vectors bounds scaled strictly according to the active HUD dimensions array.</p></td>
|
|
634
636
|
</tr>
|
|
635
637
|
</tbody>
|
|
636
638
|
</table>
|
|
637
639
|
<hr>
|
|
638
640
|
</div>
|
|
639
641
|
<div class="sect2">
|
|
640
|
-
<h3 id="setrenderermetricsmetrics-renderermetrics-void"><a class="link" href="#setrenderermetricsmetrics-renderermetrics-void">
|
|
642
|
+
<h3 id="setrenderermetricsmetrics-renderermetrics-void"><a class="link" href="#setrenderermetricsmetrics-renderermetrics-void">2.7. <code>setRendererMetrics(metrics: RendererMetrics): void</code></a></h3>
|
|
641
643
|
<div class="paragraph">
|
|
642
644
|
<p>Updates the coordinate conversion reference.</p>
|
|
643
645
|
</div>
|
|
@@ -672,7 +674,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
|
|
|
672
674
|
<hr>
|
|
673
675
|
</div>
|
|
674
676
|
<div class="sect2">
|
|
675
|
-
<h3 id="getdebugdata-recordstring-string-number-boolean"><a class="link" href="#getdebugdata-recordstring-string-number-boolean">
|
|
677
|
+
<h3 id="getdebugdata-recordstring-string-number-boolean"><a class="link" href="#getdebugdata-recordstring-string-number-boolean">2.8. <code>getDebugData(): Record<string, string | number | boolean></code></a></h3>
|
|
676
678
|
<div class="paragraph">
|
|
677
679
|
<p>Returns metadata for the real-time debugger.</p>
|
|
678
680
|
</div>
|