Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding format checker #30

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace JuniorProject
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}

}
12 changes: 6 additions & 6 deletions AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
51 changes: 26 additions & 25 deletions Backend/BackendMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,44 @@

namespace JuniorProject.Backend
{
internal class BackendMain
{
internal class BackendMain
{

World mainWorld;
bool running = true;
World mainWorld;
bool running = true;

public void BackendStart()
{
public void BackendStart()
{

Console.WriteLine($"Back end thread started on thread {Thread.CurrentThread.ManagedThreadId}.");
Thread.CurrentThread.Name = "backend";
DatabaseManager.LoadDB("LocalData\\BackendDatabase.db");
mainWorld = new World();
Console.WriteLine($"Back end thread started on thread {Thread.CurrentThread.ManagedThreadId}.");
Thread.CurrentThread.Name = "backend";
DatabaseManager.LoadDB("LocalData\\BackendDatabase.db");
mainWorld = new World();

MainLoop();
}
MainLoop();
}

public void MainLoop()
{
ClientCommunicator.RegisterAction("EndMainLoop", () => {
running = false;
Console.WriteLine("EndMainLoop was called.");
}); //Register an action to be called by the frontend that sets running to false;
Console.WriteLine("MainLoop Started.");
while ( running )
{
ClientCommunicator.ProcessActions();
}
public void MainLoop()
{
ClientCommunicator.RegisterAction("EndMainLoop", () =>
{
running = false;
Console.WriteLine("EndMainLoop was called.");
}); //Register an action to be called by the frontend that sets running to false;
Console.WriteLine("MainLoop Started.");
while (running)
{
ClientCommunicator.ProcessActions();
}


}
}







}
}
}
Loading