feat(pbs): integrate explicit runtime Random handles
This commit is contained in:
@@ -54,7 +54,7 @@ for exact rules rather than inferring compatibility with another language.
|
||||
`pbs:sdk:game:1:sdk/gfx/main.pbs` exposes the actual installed Gfx source,
|
||||
including documentation comments and signatures. Its `mod.barrel` reference
|
||||
defines exports. Equivalent references exist for `sdk/asset`, `sdk/composer`,
|
||||
`sdk/input`, `sdk/log`, and `core/color`. Read those interfaces before calling
|
||||
`sdk/input`, `sdk/log`, `sdk/math`, `sdk/mathf`, `sdk/random`, and `core/color`. Read those interfaces before calling
|
||||
them. Game SDK 1 does not currently ship `audio` or `core/math` modules.
|
||||
|
||||
Ordinary game source uses public services such as `Gfx`; it must not manufacture
|
||||
@@ -135,3 +135,7 @@ That means:
|
||||
- PBS semantic highlight resources belong to PBS rather than to Studio or LSP,
|
||||
- PBS publishes that contract through `FrontendSpec`,
|
||||
- and Studio/LSP consume that contract without becoming owners of PBS semantic presentation assets.
|
||||
|
||||
The `@sdk:random` module exports `Random` and `random`. Use an explicit long seed;
|
||||
copying a generator shares its state. Read `pbs:spec:runtime-random-integration.md`
|
||||
and `pbs:example:game:1:src/random.pbs` for the exact contract and a small example.
|
||||
|
||||
Reference in New Issue
Block a user