@energy8platform/platform-core 0.30.2 → 0.30.4

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.
@@ -1,6 +1,9 @@
1
1
  /** Minimal, renderer-agnostic base every normalized slot result satisfies. */
2
2
  interface SlotSpinResultBase {
3
- /** Currency win amount for this play (PlatformSession.play() already applied the bet). */
3
+ /** Currency win for the round SO FAR — CUMULATIVE, not this segment's win (PlatformSession.play()
4
+ * already applied the bet). In a bonus every drained segment must report the running total, so
5
+ * the host derives each spin's WIN readout as `totalWin - prevSegmentTotal` and the final base
6
+ * return shows the round total. Feed the RGS `total_win` (accumulated), never `spin_win`. */
4
7
  totalWin: number;
5
8
  freeSpins?: {
6
9
  awarded?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energy8platform/platform-core",
3
- "version": "0.30.2",
3
+ "version": "0.30.4",
4
4
  "description": "Energy8 platform core: Lua engine, DevBridge, RTP simulation, and SDK session orchestration. Renderer-agnostic — pair with any game framework (Pixi, Phaser, Three.js, custom).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
@@ -25,7 +25,7 @@ const REPO = process.env.E8_RELEASE_REPO || 'energy8platform/game-engine';
25
25
  // e8 binary version — bump when new Rust binaries are uploaded to Releases.
26
26
  // The binary is game-agnostic (it compiles any .spin), so it only needs to
27
27
  // move when the engine/CLI itself changes.
28
- const BINARY_VERSION = process.env.E8_BINARY_VERSION || '0.1.1';
28
+ const BINARY_VERSION = process.env.E8_BINARY_VERSION || '0.1.2';
29
29
 
30
30
  // Два бинаря на платформу: e8 (математика/симуляция) и e8-server
31
31
  // (дев-раунды для Vite-плагина).
@@ -1,6 +1,9 @@
1
1
  /** Minimal, renderer-agnostic base every normalized slot result satisfies. */
2
2
  export interface SlotSpinResultBase {
3
- /** Currency win amount for this play (PlatformSession.play() already applied the bet). */
3
+ /** Currency win for the round SO FAR — CUMULATIVE, not this segment's win (PlatformSession.play()
4
+ * already applied the bet). In a bonus every drained segment must report the running total, so
5
+ * the host derives each spin's WIN readout as `totalWin - prevSegmentTotal` and the final base
6
+ * return shows the round total. Feed the RGS `total_win` (accumulated), never `spin_win`. */
4
7
  totalWin: number;
5
8
  freeSpins?: { awarded?: number; total?: number; remaining?: number };
6
9
  // ── Round-continuation metadata (Stake segment-drain) ──────────────────