Example #1
0
 public LazerTagProtocol(HostGun hostGun, string portName)
 {
     _hostGun              = hostGun;
     _serial               = new LazerTagSerial();
     _serial.IoError      += Serial_IoError;
     _serial.DataReceived += Serial_DataReceived;
     _serial.Connect(portName);
     _serial.Enqueue(new[] { (byte)'\r', (byte)'\n' });
 }
Example #2
0
 public Player(HostGun hostGun, byte taggerId)
 {
     _hostGun = hostGun;
     TaggerId = taggerId;
     Survived = false;
 }