Files
UnrealEngineUWP/Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionISMPoolSubSystem.h
henrik karlsson 562dc45ab9 [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082288 by henrik karlsson in 5.3 branch]
2023-06-17 18:14:12 -04:00

38 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Subsystems/WorldSubsystem.h"
#include "GeometryCollectionISMPoolSubSystem.generated.h"
class AGeometryCollectionISMPoolActor;
/**
* A subsystem managing ISMPool actors.
* Used by geometry collection now but repurposed for more general use.
*/
UCLASS(MinimalAPI)
class UGeometryCollectionISMPoolSubSystem : public UWorldSubsystem
{
GENERATED_BODY()
public:
GEOMETRYCOLLECTIONENGINE_API UGeometryCollectionISMPoolSubSystem();
// USubsystem BEGIN
GEOMETRYCOLLECTIONENGINE_API virtual void Initialize(FSubsystemCollectionBase& Collection) override;
GEOMETRYCOLLECTIONENGINE_API virtual void Deinitialize() override;
// USubsystem END
/** Finds or creates an actor. */
GEOMETRYCOLLECTIONENGINE_API AGeometryCollectionISMPoolActor* FindISMPoolActor();
/** Get all actors managed by the subsystem. */
GEOMETRYCOLLECTIONENGINE_API void GetISMPoolActors(TArray<AGeometryCollectionISMPoolActor*>& OutActors) const;
protected:
/** For now we only use one ISMPool actor per world, but we could extend the system to manage many more and return the right one based on search criteria. */
UPROPERTY(Transient)
TObjectPtr<AGeometryCollectionISMPoolActor> ISMPoolActor;
};