Commit v.2025

This commit is contained in:
2025-06-17 13:17:17 +02:00
parent d16693c85b
commit efae805ae1
50 changed files with 2123 additions and 0 deletions

View File

@ -0,0 +1,4 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "DTFluxGeneralSettings.h"

View File

@ -0,0 +1,52 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "DTFluxNetworkSettings.h"
#include "Types/DTFluxNetworkSettingsTypes.h"
UDTFluxNetworkSettings::UDTFluxNetworkSettings()
{
CategoryName = "DTFlux API";
}
#if WITH_EDITOR
void UDTFluxNetworkSettings::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
FString PropertyId = PropertyChangedEvent.GetPropertyName().ToString();
if(PropertyId.Contains("WebSocket"))
{
FDTFluxWsSettings WsSettings;
GetWebSocketSettings(this, WsSettings);
OnDTFluxWebSocketSettingsChanged.Broadcast(WsSettings);
}
if(PropertyId.Contains("HTTP"))
{
FDTFluxHttpSettings HTTPSettings;
GetHTTPSettings(this, HTTPSettings);
OnDTFluxHttpSettingsChanged.Broadcast(HTTPSettings);
}
}
#endif
void UDTFluxNetworkSettings::GetHTTPSettings(const UDTFluxNetworkSettings* Settings,
FDTFluxHttpSettings& OutHTTPSettings)
{
OutHTTPSettings.Address = Settings->HTTPAddress;
OutHTTPSettings.Port = Settings->HTTPPort;
OutHTTPSettings.Path = Settings->HTTPPath;
}
void UDTFluxNetworkSettings::GetWebSocketSettings(const UDTFluxNetworkSettings* Settings,
FDTFluxWsSettings& OutWsSettings)
{
OutWsSettings.Address = Settings->WebSocketAddress;
OutWsSettings.Path = Settings->WebSocketPath;
OutWsSettings.Port = Settings->WebSocketPort;
OutWsSettings.bShouldAutoReconnectOnClosed = Settings->bWebSocketShouldReconnectOnClosed;
OutWsSettings.bShouldConnectAtStartup = Settings->bWebSocketShouldConnectAtStartup;
OutWsSettings.bShouldAutoReconnectOnError = Settings->bWebSocketShouldReconnectOnError;
}

View File

@ -0,0 +1,19 @@
#include "DTFluxProjectSettingsModule.h"
#define LOCTEXT_NAMESPACE "FDTFluxProjectSettingsModule"
DTFLUXPROJECTSETTINGS_API DEFINE_LOG_CATEGORY(logDTFluxProjectSettings)
void FDTFluxProjectSettingsModule::StartupModule()
{
}
void FDTFluxProjectSettingsModule::ShutdownModule()
{
}
#undef LOCTEXT_NAMESPACE
IMPLEMENT_MODULE(FDTFluxProjectSettingsModule, DTFluxProjectSettings)