예제 #1
0
 /// <summary>
 /// Create game from specific config.
 /// </summary>
 /// <param name="container"></param>
 public SimCivil(IContainer container)
 {
     Services  = container;
     RpcServer = new RpcServer(container);
     RpcServer.Expose <IAuth>();
     foreach (var s in Services.ComponentRegistry.Registrations)
     {
         Logger.Info(
             $"Service {s.Activator.LimitType} registered as {string.Join(',', s.Services.Select(n => n.Description))}");
     }
 }