@uzuhq/code-cli 0.5.0 → 0.5.1

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.
@@ -162,7 +162,10 @@ export class GameRoom {
162
162
  return;
163
163
  this.seed = Date.now() & 0xffffffff;
164
164
  this.random = new SeededRandomImpl(this.seed);
165
- this.gameState = this.logic.setup(this.seats, this.random);
165
+ this.gameState = this.logic.setup({
166
+ seats: this.seats,
167
+ ctx: { random: this.random, now: Date.now() },
168
+ });
166
169
  this.stateInitialized = true;
167
170
  this.tickCount = 0;
168
171
  this.seq = 0;
@@ -554,7 +557,10 @@ export class GameRoom {
554
557
  this.seed = opts.seed;
555
558
  }
556
559
  this.random = new SeededRandomImpl(this.seed);
557
- this.gameState = this.logic.setup(this.seats, this.random);
560
+ this.gameState = this.logic.setup({
561
+ seats: this.seats,
562
+ ctx: { random: this.random, now: Date.now() },
563
+ });
558
564
  this.tickCount = 0;
559
565
  // reset は新規ゲーム = 実行可能状態を意味するので pause も解除する。
560
566
  this.tickPaused = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzuhq/code-cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "UZU ゲーム開発 CLI - ビルド・パブリッシュ・プロジェクト作成ツール",
5
5
  "type": "module",
6
6
  "bin": {