Migrating toward WingPropHandle

This commit is contained in:
2026-04-03 17:05:48 -04:00
parent a0c5a56476
commit daa9216ddf
4 changed files with 113 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
#include "WingServer.h"
#include "WingHandler.h"
#include "WingProperty.h"
#include "WingPropHandle.h"
#include "WingManual.h"
#include "WingLogCapture.h"
#include "WingUtils.h"
@@ -328,7 +328,9 @@ void UWingServer::TryCallHandler(const FString &Line)
Handler->ConfigurationObject = Found->Config.Get();
// Populate the handler object with the request parameters.
if (!FWingProperty::PopulateFromJson(HandlerObj->GetClass(), HandlerObj.Get(), &*Request))
WingPropHandle Props;
WingPropHandle::Handles Handles = Props.AllProperties(HandlerObj.Get(), true, CPF_None);
if (!WingPropHandle::PopulateFromJson(Handles, *Request, false))
{
UWingServer::SuggestManual(WingManual::Section::HandlerHelp);
return;