public static void UpdateInfo() { lock (new object()) { FractionStats.UpdateStats(); } }
public MainLogic(IServiceProvider services) { SeasonId = 1; FractionStats = new FractionStats(services.GetService <HexaceContext>()); Chat = new Chat(services.GetService <HexaceContext>()); Timer = new Timer(services.GetService <HexaceContext>()); GameModel = new GameModel(services.GetService <HexaceContext>()); }