Added overloaded ISceneRunner.Load that accepts a Node
Pulled scene loading logic out of the SceneRunner constructor and into the ISceneRunner.Load method
Example Usage
Tests can now initialize or use the root node of a scene before it is loaded and any _Ready functions are called on it.
Ex.
public partial class MyNode : Node2d
{
public void Initialize(int foo) { ... }
}
[TestSuite]
public class MyNodeTest
{
[TestCase]
public void MyNodeInitTest()
{
var myNode = new MyNode();
myNode.Initialize(12);
var sceneRunner = ISceneRunner.Load(myNode);
...
}
}
Why
GD-110
What
Example Usage
Tests can now initialize or use the root node of a scene before it is loaded and any _Ready functions are called on it.
Ex.