Example #1
0
 public void launch()
 {
     api.AddFrameListener(renderFinished);
     api.AddStatusListener(statusChanged);
     api.AddActivateListener(apiEnabled);
     api.AddDeactivateListener(apiDisabled);
     api.AddStopListener(dispose);
     api.Run();
 }
Example #2
0
        public List <RunResult> Play(List <ControlSequence> runs)
        {
            _runs = runs;
            ApiSource.initRemoteAPI("localhost", 9999);

            _api = ApiSource.API;


            _api.AddActivateListener(ApiEnabled);
            _api.AddFrameListener(RenderFinished);
            _api.AddDeactivateListener(Deactivate);
            //_api.AddStatusListener(StatusChanged);

            try
            {
                _api.Run();
            }
            catch (Exception ex)
            {
                //Console.WriteLine("caught");
            }

            return(_runResults);
        }