StrawberryBF/src/Static/Engine.bf
2021-12-23 17:09:38 -08:00

33 lines
521 B
Brainfuck

using System;
namespace Strawberry
{
static public class Engine
{
static public void Run(Module module)
{
Startup();
Module currentModule = module;
while (currentModule != null)
{
let newModule = currentModule.[Friend]Run();
currentModule = newModule;
}
Shutdown();
}
static private void Startup()
{
Input.[Friend]Startup();
Tracker.[Friend]BuildAssignmentLists();
}
static private void Shutdown()
{
Input.[Friend]Shutdown();
Sprite.[Friend]Dispose();
}
}
}