Tab completion packet is handled and sent.
This only handles the network comm and the overall design logic, the actual completion is not yet implemented, only dummy values are returned for now.
This commit is contained in:
@@ -1235,6 +1235,23 @@ void cClientHandle::HandleUnmount(void)
|
||||
|
||||
|
||||
|
||||
void cClientHandle::HandleTabCompletion(const AString & a_Text)
|
||||
{
|
||||
AStringVector Results;
|
||||
m_Player->GetWorld()->TabCompleteUserName(a_Text, Results);
|
||||
cRoot::Get()->GetPluginManager()->TabCompleteCommand(a_Text, Results);
|
||||
if (Results.empty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
std::sort(Results.begin(), Results.end());
|
||||
SendTabCompletionResults(Results);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cClientHandle::SendData(const char * a_Data, int a_Size)
|
||||
{
|
||||
{
|
||||
@@ -1781,6 +1798,15 @@ void cClientHandle::SendSpawnVehicle(const cEntity & a_Vehicle, char a_VehicleTy
|
||||
|
||||
|
||||
|
||||
void cClientHandle::SendTabCompletionResults(const AStringVector & a_Results)
|
||||
{
|
||||
m_Protocol->SendTabCompletionResults(a_Results);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cClientHandle::SendTeleportEntity(const cEntity & a_Entity)
|
||||
{
|
||||
m_Protocol->SendTeleportEntity(a_Entity);
|
||||
|
||||
Reference in New Issue
Block a user