fix compile

This commit is contained in:
2025-11-30 18:32:06 +01:00
parent 67aa1bac76
commit 4f3ba43948
5 changed files with 8 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ public class CompositeEquipmentSystem : ModuleRules
{ {
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
CppStandard = CppStandardVersion.Cpp20;
PublicIncludePaths.AddRange( PublicIncludePaths.AddRange(
new string[] { new string[] {
// ... add public include paths required here ... // ... add public include paths required here ...

View File

@@ -8,6 +8,8 @@ public class Aura : ModuleRules
{ {
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
CppStandard = CppStandardVersion.Cpp20;
PublicDependencyModuleNames.AddRange(new string[] { PublicDependencyModuleNames.AddRange(new string[] {
"Core", "Core",
"CoreUObject", "CoreUObject",

View File

@@ -104,7 +104,7 @@ void UAuraAbilitySystemComponent::ForEachAbilityDelegate(const FForEachAbilityDe
} }
} }
void UAuraAbilitySystemComponent::ForEachAbilityLambda(std::function<void (FGameplayAbilitySpec&)> Func) void UAuraAbilitySystemComponent::ForEachAbilityLambda(TFunction<void (FGameplayAbilitySpec&)> Func)
{ {
FScopedAbilityListLock ActiveScopeLock(*this); FScopedAbilityListLock ActiveScopeLock(*this);
for (FGameplayAbilitySpec& AbilitySpec : GetActivatableAbilities()) for (FGameplayAbilitySpec& AbilitySpec : GetActivatableAbilities())

View File

@@ -39,7 +39,7 @@ public:
void AbilityInputTagHeld(const FGameplayTag& InputTag); void AbilityInputTagHeld(const FGameplayTag& InputTag);
void AbilityInputTagReleased(const FGameplayTag& InputTag); void AbilityInputTagReleased(const FGameplayTag& InputTag);
void ForEachAbilityDelegate(const FForEachAbilityDelegate& Delegate); void ForEachAbilityDelegate(const FForEachAbilityDelegate& Delegate);
void ForEachAbilityLambda(std::function<void (FGameplayAbilitySpec&)> Func); void ForEachAbilityLambda(TFunction<void (FGameplayAbilitySpec&)> Func);
/** Receiving Effect Interception */ /** Receiving Effect Interception */
virtual FActiveGameplayEffectHandle ApplyGameplayEffectSpecToSelf(const FGameplayEffectSpec& GameplayEffect, FPredictionKey PredictionKey = FPredictionKey()) override; virtual FActiveGameplayEffectHandle ApplyGameplayEffectSpecToSelf(const FGameplayEffectSpec& GameplayEffect, FPredictionKey PredictionKey = FPredictionKey()) override;

View File

@@ -10,6 +10,8 @@ public class AuraEditorTarget : TargetRules
Type = TargetType.Editor; Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V2; DefaultBuildSettings = BuildSettingsVersion.V2;
bOverrideBuildEnvironment = true;
ExtraModuleNames.AddRange( new string[] { "Aura" } ); ExtraModuleNames.AddRange( new string[] { "Aura" } );
} }
} }