Files
2025-05-18 13:04:45 +08:00

25 lines
621 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "HandlerComponentFactory.generated.h"
class HandlerComponent;
/**
* A UObject alternative for loading HandlerComponents without strict module dependency
*/
UCLASS(abstract, MinimalAPI)
class UHandlerComponentFactory : public UObject
{
GENERATED_UCLASS_BODY()
public:
PACKETHANDLER_API virtual TSharedPtr<HandlerComponent> CreateComponentInstance(FString& Options)
PURE_VIRTUAL(UHandlerComponentFactory::CreateComponentInstance, return nullptr;);
};