Major Changes including Options menu, logic blocks, modding system, and more.

This commit is contained in:
2026-08-06 01:28:52 -04:00
parent c9ac4641a0
commit b58acff195
90 changed files with 4065 additions and 485 deletions

34
test/src/App/AppTest.cs Normal file
View File

@@ -0,0 +1,34 @@
// namespace FoodFactory;
// using System.Threading.Tasks;
// using Chickensoft.GoDotTest;
// using Chickensoft.GodotTestDriver;
// using Chickensoft.GodotTestDriver.Drivers;
// using Godot;
// using Shouldly;
// public class GameTest : TestClass
// {
// private App _game = default!;
// private Fixture _fixture = default!;
// public GameTest(Node testScene) : base(testScene) { }
// [SetupAll]
// public async Task Setup()
// {
// _fixture = new Fixture(TestScene.GetTree());
// _game = await _fixture.LoadAndAddScene<App>();
// }
// [CleanupAll]
// public void Cleanup() => _fixture.Cleanup();
// [Test]
// public void TestButtonUpdatesCounter()
// {
// var buttonDriver = new ButtonDriver(() => _game.TestButton);
// buttonDriver.ClickCenter();
// _game.ButtonPresses.ShouldBe(1);
// }
// }

View File

@@ -1,34 +0,0 @@
namespace FoodFactory;
using System.Threading.Tasks;
using Chickensoft.GoDotTest;
using Chickensoft.GodotTestDriver;
using Chickensoft.GodotTestDriver.Drivers;
using Godot;
using Shouldly;
public class GameTest : TestClass
{
private Game _game = default!;
private Fixture _fixture = default!;
public GameTest(Node testScene) : base(testScene) { }
[SetupAll]
public async Task Setup()
{
_fixture = new Fixture(TestScene.GetTree());
_game = await _fixture.LoadAndAddScene<Game>();
}
[CleanupAll]
public void Cleanup() => _fixture.Cleanup();
[Test]
public void TestButtonUpdatesCounter()
{
var buttonDriver = new ButtonDriver(() => _game.TestButton);
buttonDriver.ClickCenter();
_game.ButtonPresses.ShouldBe(1);
}
}