basic clock
This commit is contained in:
22
PeopleVille/GameManager.cs
Normal file
22
PeopleVille/GameManager.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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!");
|
||||||
|
|||||||
Reference in New Issue
Block a user