Skip to content

Commit 572d690

Browse files
committed
Bump to 0.12
1 parent c7dab51 commit 572d690

37 files changed

Lines changed: 430 additions & 98 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[CoreRedirects]
2-
+StructRedirects=(OldName="/Script/PCGExtendedToolkit.PCGExFilterRuleDescriptor",NewName="/Script/PCGExtendedToolkit.PCGExPartitonRuleDescriptor")
2+
+StructRedirects = (OldName="/Script/PCGExtendedToolkit.PCGExFilterRuleDescriptor",NewName="/Script/PCGExtendedToolkit.PCGExPartitonRuleDescriptor")
0 Bytes
Binary file not shown.

Plugins/PCGExtendedToolkit/Source/PCGExtendedToolkit/Private/Graph/Edges/PCGExPromoteEdges.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ bool FPCGExPromoteEdgesElement::ExecuteInternal(
195195
{
196196
Context->OutputPoints();
197197
}
198-
198+
199199
Context->ExecutionComplete();
200200
}
201201

Plugins/PCGExtendedToolkit/Source/PCGExtendedToolkit/Private/Graph/PCGExCopyClusters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ bool FPCGExCopyClustersElement::ExecuteInternal(FPCGContext* InContext) const
5555
Context->OutputPointsAndEdges();
5656
Context->Done();
5757
Context->ExecutionComplete();
58-
58+
5959
return Context->IsDone();
6060
}
6161

Plugins/PCGExtendedToolkit/Source/PCGExtendedToolkit/Private/Graph/PCGExFilterClusters.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ bool FPCGExFilterClustersElement::ExecuteInternal(
195195

196196
Context->OutputPointsAndEdges();
197197
Context->ExecutionComplete();
198-
199198
}
200199

201200
return Context->IsDone();

Plugins/PCGExtendedToolkit/Source/PCGExtendedToolkit/Private/Graph/PCGExFindCustomGraphEdgeClusters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ bool FPCGExFindCustomGraphEdgeClustersElement::ExecuteInternal(
166166
Context->Graphs.ForEach(Context, DeleteSockets);
167167
});
168168
}
169-
169+
170170
Context->OutputPoints();
171171
Context->ExecutionComplete();
172172
}

Plugins/PCGExtendedToolkit/Source/PCGExtendedToolkit/Private/Graph/PCGExFindSocketStates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ bool FPCGExFindSocketStatesElement::ExecuteInternal(
168168
{
169169
Context->OutputPointsAndGraphParams();
170170
}
171-
171+
172172
Context->ExecutionComplete();
173173
}
174174

Plugins/PCGExtendedToolkit/Source/PCGExtendedToolkit/Private/Graph/PCGExPackClusters.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ bool FPCGExPackClustersElement::ExecuteInternal(
7878
Context->GetAsyncManager()->Start<FPCGExPackClusterTask>(-1, Context->CurrentIO, EdgeIO, Context->NodeIndicesMap);
7979
}
8080
}
81-
81+
8282
Context->SetAsyncState(PCGExMT::State_WaitingOnAsyncWork);
83-
8483
}
8584

8685
if (Context->IsState(PCGExMT::State_WaitingOnAsyncWork))
@@ -133,7 +132,7 @@ bool FPCGExPackClusterTask::ExecuteTask()
133132
PackedIO.Tags->Set(PCGExGraph::TagStr_ClusterPair, InEdges->GetIn()->UID, OutPairId);
134133

135134
InEdges->CleanupKeys();
136-
135+
137136
return true;
138137
}
139138

Plugins/PCGExtendedToolkit/Source/PCGExtendedToolkit/Private/Graph/Pathfinding/PCGExPathfindingNavmesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bool FPCGExPathfindingNavmeshElement::ExecuteInternal(FPCGContext* InContext) co
133133
if (Context->IsState(PCGExPathfinding::State_Pathfinding))
134134
{
135135
PCGEX_WAIT_ASYNC
136-
136+
137137
Context->OutputPaths->OutputTo(Context);
138138
Context->Done();
139139
Context->ExecutionComplete();
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright Timothé Lapetite 2024
2+
// Released under the MIT license https://opensource.org/license/MIT/
3+
4+
#include "Misc/PCGExModularPartitionByValues.h"
5+
6+
#define LOCTEXT_NAMESPACE "PCGExModularPartitionByValues"
7+
#define PCGEX_NAMESPACE ModularPartitionByValues
8+
9+
#undef LOCTEXT_NAMESPACE
10+
#undef PCGEX_NAMESPACE
11+
12+
PCGExFactories::EType UPCGExPartitionRule::GetFactoryType() const { return PCGExFactories::EType::PartitionRule; }
13+
14+
FName UPCGExPartitionRuleProviderSettings::GetMainOutputLabel() const { return FName(TEXT("PartitionRule")); }
15+
16+
UPCGExParamFactoryBase* UPCGExPartitionRuleProviderSettings::CreateFactory(FPCGContext* InContext, UPCGExParamFactoryBase* InFactory) const
17+
{
18+
UPCGExPartitionRule* NewFactory = NewObject<UPCGExPartitionRule>();
19+
NewFactory->Descriptor = Descriptor;
20+
return NewFactory;
21+
}
22+
23+
FString UPCGExPartitionRuleProviderSettings::GetDisplayName() const
24+
{
25+
return Descriptor.GetDisplayName();
26+
}
27+
28+
TArray<FPCGPinProperties> UPCGExModularPartitionByValuesSettings::InputPinProperties() const
29+
{
30+
TArray<FPCGPinProperties> PinProperties = Super::InputPinProperties();
31+
PCGEX_PIN_PARAMS(TEXT("PartitionRules"), "Plug partitions rules here.", Required, {})
32+
return PinProperties;
33+
}
34+
35+
bool UPCGExModularPartitionByValuesSettings::GetPartitionRules(const FPCGContext* InContext, TArray<FPCGExPartitonRuleDescriptor>& OutRules) const
36+
{
37+
TArray<UPCGExPartitionRule*> Factories;
38+
if (!PCGExFactories::GetInputFactories(
39+
InContext, TEXT("PartitionRules"),
40+
Factories, {PCGExFactories::EType::PartitionRule}, false))
41+
{
42+
return false;
43+
}
44+
45+
for (const UPCGExPartitionRule* Factory : Factories) { OutRules.Add(Factory->Descriptor); }
46+
47+
return true;
48+
}

0 commit comments

Comments
 (0)