Better handling of JSON property setters

This commit is contained in:
2026-03-26 19:16:59 -04:00
parent 0f7bfebb71
commit 1ee2067505
17 changed files with 211 additions and 208 deletions

View File

@@ -1,7 +1,7 @@
#include "WingServer.h"
#include "WingHandler.h"
#include "WingProperty.h"
#include "WingManual.h"
#include "WingJson.h"
#include "WingLogCapture.h"
#include "WingUtils.h"
#include "UObject/StrongObjectPtr.h"
@@ -327,7 +327,7 @@ void UWingServer::TryCallHandler(const FString &Line)
IWingHandler* Handler = Cast<IWingHandler>(HandlerObj.Get());
// Populate the handler object with the request parameters.
if (!WingJson::PopulateFromJson(HandlerObj->GetClass(), HandlerObj.Get(), &*Request))
if (!FWingProperty::PopulateFromJson(HandlerObj->GetClass(), HandlerObj.Get(), &*Request))
{
UWingServer::SuggestManual(WingManual::Section::HandlerHelp);
return;