basic clock

This commit is contained in:
2026-03-25 09:32:48 +01:00
parent d090de90e9
commit a365e05025
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using PeopleVille.Location;
namespace PeopleVille
{
public class GameManager
{
List<Store> Stores { get; set; }
public async Task StartClock()
{
var res = 0;
while (true)
{
Console.WriteLine($"{res}");
res++;
// Do something
await Task.Delay(500);
}
}
}
}

View File

@@ -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!"); Console.WriteLine("Hello, World!");