예제 #1
0
 public static void UpdateInfo()
 {
     lock (new object())
     {
         FractionStats.UpdateStats();
     }
 }
예제 #2
0
 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>());
 }