Exemplo n.º 1
0
 public BotStateMechine()
 {
     ipcServer     = new IpcServer();
     gameModeState = new GameModeState();
     battleState   = new BattleState();
     ipcServer.setHandler(handler);
     jsonSerializer = JsonSerializer.Create();
     inputSimulator = new InputSimulator("UnityWndClass", "炉石传说");
 }
Exemplo n.º 2
0
        public void Start(Configuration config)
        {
            _config        = config;
            _configManager = new ConfigurationManager();
            _configManager.Publish(config);

            _aggregator = new MetricAggregator();
            _aggregator.Start();

            _ipcServer = IpcConnector.GetServer(config);
            _ipcServer.OnMetricsHasArrived += OnMetricsHasArrived;
            _ipcServer.Start();
        }
Exemplo n.º 3
0
 public ParameterizedTests(IIpcClient client, IIpcServer server)
 {
     this.client = client;
     this.server = server;
 }
Exemplo n.º 4
0
 public ParameterizedTests(IIpcServer server) : this(new TClient(), server)
 {
 }