scene テーブルのテストをスコープ付きセッションへ追随

このコミットが含まれているのは:
routersys committed 2026-07-03 08:31:16 +09:00
1 親 0c09cf4a51
コミット d37726cdf6
1ファイル変更
+3 -2
+3 -2
ファイルの表示
@@ -6,6 +6,7 @@ namespace LuaScript.Tests
{ {
private sealed class Harness private sealed class Harness
{ {
private readonly object _scope = new();
private readonly string _sceneId = Guid.NewGuid().ToString(); private readonly string _sceneId = Guid.NewGuid().ToString();
private long _generation; private long _generation;
@@ -18,7 +19,7 @@ namespace LuaScript.Tests
var scene = new Table(Script); var scene = new Table(Script);
SceneTableRegistrar.RegisterFunctions(scene, Session.Get, Session.Set); SceneTableRegistrar.RegisterFunctions(scene, Session.Get, Session.Set);
Script.Globals["scene"] = scene; Script.Globals["scene"] = scene;
Session.Begin(_sceneId, _generation, false); Session.Begin(_scope, _sceneId, _generation, 0);
} }
public DynValue Run(string code) public DynValue Run(string code)
@@ -31,7 +32,7 @@ namespace LuaScript.Tests
public void NextFrame() public void NextFrame()
{ {
_generation++; _generation++;
Session.Begin(_sceneId, _generation, false); Session.Begin(_scope, _sceneId, _generation, 0);
} }
public SceneValue Stored(string name) public SceneValue Stored(string name)