From d37726cdf68c1ec98982b6a71bbee12b9282f51c Mon Sep 17 00:00:00 2001 From: routersys Date: Fri, 3 Jul 2026 08:31:01 +0900 Subject: [PATCH] =?UTF-8?q?scene=20=E3=83=86=E3=83=BC=E3=83=96=E3=83=AB?= =?UTF-8?q?=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E3=82=B9=E3=82=B3?= =?UTF-8?q?=E3=83=BC=E3=83=97=E4=BB=98=E3=81=8D=E3=82=BB=E3=83=83=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=81=B8=E8=BF=BD=E9=9A=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript.Tests/SceneTableRegistrarTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LuaScript.Tests/SceneTableRegistrarTests.cs b/LuaScript.Tests/SceneTableRegistrarTests.cs index d29456e..905b081 100644 --- a/LuaScript.Tests/SceneTableRegistrarTests.cs +++ b/LuaScript.Tests/SceneTableRegistrarTests.cs @@ -6,6 +6,7 @@ namespace LuaScript.Tests { private sealed class Harness { + private readonly object _scope = new(); private readonly string _sceneId = Guid.NewGuid().ToString(); private long _generation; @@ -18,7 +19,7 @@ namespace LuaScript.Tests var scene = new Table(Script); SceneTableRegistrar.RegisterFunctions(scene, Session.Get, Session.Set); Script.Globals["scene"] = scene; - Session.Begin(_sceneId, _generation, false); + Session.Begin(_scope, _sceneId, _generation, 0); } public DynValue Run(string code) @@ -31,7 +32,7 @@ namespace LuaScript.Tests public void NextFrame() { _generation++; - Session.Begin(_sceneId, _generation, false); + Session.Begin(_scope, _sceneId, _generation, 0); } public SceneValue Stored(string name)