Add project files.

This commit is contained in:
Sandor Szenasi
2024-09-05 19:47:35 +02:00
parent 0bf4c5bd60
commit 78859a5b2b
32 changed files with 2927 additions and 0 deletions

31
Engine/Backend.cs Normal file
View File

@@ -0,0 +1,31 @@
namespace OE.ALGA.Engine
{
public class Backend
{
public Kepernyo Megjelenites { get; } = new Kepernyo();
public BillentyuzetKezelo Bemenet { get; } = new BillentyuzetKezelo();
public OrajelGenerator Orajel { get; } = new OrajelGenerator();
public Backend()
{
Orajel.OrajelFogadoFelvetele(Bemenet);
Orajel.OrajelFogadoFelvetele(Megjelenites);
}
bool kilepes = false;
public void Start()
{
Orajel.Start();
while (!kilepes)
{
Thread.Sleep(1000);
}
}
public void Stop()
{
Orajel.Stop();
kilepes = true;
}
}
}