Files
UnrealEngine/Engine/Source/Runtime/MassEntity/Public/MassSettings.h
2025-05-18 13:04:45 +08:00

38 lines
998 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Engine/DeveloperSettings.h"
#include "MassSettings.generated.h"
#define UE_API MASSENTITY_API
/**
* A common parrent for Mass's per-module settings. Classes extending this class will automatically get registered
* with- and show under Mass settings in Project Settings.
*/
UCLASS(MinimalAPI, Abstract, config = Mass, defaultconfig, collapseCategories)
class UMassModuleSettings : public UObject
{
GENERATED_BODY()
protected:
UE_API virtual void PostInitProperties() override;
};
UCLASS(MinimalAPI, config = Mass, defaultconfig, DisplayName = "Mass", AutoExpandCategories = "Mass")
class UMassSettings : public UDeveloperSettings
{
GENERATED_BODY()
public:
UE_API void RegisterModuleSettings(UMassModuleSettings& SettingsCDO);
public:
UPROPERTY(VisibleAnywhere, Category = "Mass", NoClear, EditFixedSize, meta = (EditInline))
TMap<FName, TObjectPtr<UMassModuleSettings>> ModuleSettings;
};
#undef UE_API