Exemplo n.º 1
0
 public void send(Pt _pt)
 {
     if (Connected)
     {
         net.Send(_pt);
         NetRecorder.recordNetCmd(_pt);
         LastConnectedPing = Time.deltaTime;
     }
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            DataContext = this;


            Console.WriteLine("holla");

            recorder                = new NetRecorder();
            recorder.StatusEvent   += OnRecorderStatus;
            recorder.ProgressEvent += OnRecorderProgress;
            recorder.DataRateEvent += OnRecorderDataRate;
            player                = new NetPlayer();
            player.StatusEvent   += OnPlayerStatus;
            player.ProgressEvent += OnPlayerProgress;
            player.DataRateEvent += OnPlayerDataRate;

            FilePath = "";
            ModeRec  = false;
            ModePlay = true;
        }