Better handling of property mutability, and also, walk into structs.
This commit is contained in:
@@ -331,7 +331,7 @@ void UWingServer::TryCallHandler(const FString &Line)
|
||||
Handler->Configuration = Found;
|
||||
|
||||
// Populate the handler object with the request parameters.
|
||||
TArray<FWingProperty> Props = FWingProperty::GetAll(Handler, CPF_Edit);
|
||||
TArray<FWingProperty> Props = FWingProperty::GetVisible(Handler);
|
||||
if (!FWingProperty::PopulateFromJson(Props, *Request, false, WingOut::Stdout))
|
||||
{
|
||||
UWingServer::SuggestManual(WingManual::Section::HandlerHelp);
|
||||
@@ -365,8 +365,6 @@ void UWingServer::AcceptNewConnections()
|
||||
Client->Socket = ClientSocket;
|
||||
Client->ThreadFuture = Async(EAsyncExecution::Thread, [this, Client]() { ClientThreadFunc(this, Client); });
|
||||
Clients.Add(Client);
|
||||
|
||||
UE_LOG(LogTemp, Display, TEXT("UEWingman: Client connected."));
|
||||
}
|
||||
|
||||
void UWingServer::CleanupFinishedClients()
|
||||
@@ -448,10 +446,8 @@ void UWingServer::ClientThreadFunc(UWingServer* Server, TSharedPtr<FClientConnec
|
||||
}
|
||||
|
||||
Client->bDone = true;
|
||||
UE_LOG(LogTemp, Display, TEXT("UEWingman: Client disconnected."));
|
||||
}
|
||||
|
||||
|
||||
// ============================================================
|
||||
// BuildWingHandlerRegistry
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user