1将飞机的文本提示记入日志文件

This commit is contained in:
pxzleo 2017-09-07 18:00:24 +08:00
parent 45fe1e4df9
commit be09eef794

View File

@ -127,7 +127,10 @@ namespace Plane.FormationCreator
UdpServerConnectionManager.Instance.ConnectionEstablished += ConnectionManager_ConnectionEstablished;
UdpServerConnectionManager.Instance.StartReceiving();
}
private void Copter_TextReceived(object sender, MessageCreatedEventArgs e)
{
_logger.Log(e.Message );
}
private async Task AddOrUpdateCopter(string ip, IConnection Connection)
{
var copters = _copterManager.Copters;
@ -145,7 +148,10 @@ namespace Plane.FormationCreator
};
int _index;
_index=copters.AddCopter(copter);
copterStatus.Insert(_index,false);
copterStatus.Insert(_index,false);
copter.TextReceived += Copter_TextReceived;
}));
}
else