From a365e05025037ed7bd7f4fc87726edf2188f95e5 Mon Sep 17 00:00:00 2001 From: smallbenji Date: Wed, 25 Mar 2026 09:32:48 +0100 Subject: [PATCH] basic clock --- PeopleVille/GameManager.cs | 22 ++++++++++++++++++++++ PeopleVille/Program.cs | 8 +++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 PeopleVille/GameManager.cs diff --git a/PeopleVille/GameManager.cs b/PeopleVille/GameManager.cs new file mode 100644 index 0000000..7285fef --- /dev/null +++ b/PeopleVille/GameManager.cs @@ -0,0 +1,22 @@ +using PeopleVille.Location; + +namespace PeopleVille +{ + public class GameManager + { + List Stores { get; set; } + + public async Task StartClock() + { + var res = 0; + + while (true) + { + Console.WriteLine($"{res}"); + res++; + // Do something + await Task.Delay(500); + } + } + } +} \ No newline at end of file diff --git a/PeopleVille/Program.cs b/PeopleVille/Program.cs index 3751555..82e2698 100644 --- a/PeopleVille/Program.cs +++ b/PeopleVille/Program.cs @@ -1,2 +1,8 @@ -// See https://aka.ms/new-console-template for more information +using PeopleVille; + +var gameManager = new GameManager(); + +await gameManager.StartClock(); + +// See https://aka.ms/new-console-template for more information Console.WriteLine("Hello, World!");