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' }); }
public Player(HostGun hostGun, byte taggerId) { _hostGun = hostGun; TaggerId = taggerId; Survived = false; }