1将飞机的文本提示记入日志文件
This commit is contained in:
parent
45fe1e4df9
commit
be09eef794
@ -127,7 +127,10 @@ namespace Plane.FormationCreator
|
|||||||
UdpServerConnectionManager.Instance.ConnectionEstablished += ConnectionManager_ConnectionEstablished;
|
UdpServerConnectionManager.Instance.ConnectionEstablished += ConnectionManager_ConnectionEstablished;
|
||||||
UdpServerConnectionManager.Instance.StartReceiving();
|
UdpServerConnectionManager.Instance.StartReceiving();
|
||||||
}
|
}
|
||||||
|
private void Copter_TextReceived(object sender, MessageCreatedEventArgs e)
|
||||||
|
{
|
||||||
|
_logger.Log(e.Message );
|
||||||
|
}
|
||||||
private async Task AddOrUpdateCopter(string ip, IConnection Connection)
|
private async Task AddOrUpdateCopter(string ip, IConnection Connection)
|
||||||
{
|
{
|
||||||
var copters = _copterManager.Copters;
|
var copters = _copterManager.Copters;
|
||||||
@ -146,6 +149,9 @@ namespace Plane.FormationCreator
|
|||||||
int _index;
|
int _index;
|
||||||
_index=copters.AddCopter(copter);
|
_index=copters.AddCopter(copter);
|
||||||
copterStatus.Insert(_index,false);
|
copterStatus.Insert(_index,false);
|
||||||
|
|
||||||
|
copter.TextReceived += Copter_TextReceived;
|
||||||
|
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user