@@ -82,7 +82,7 @@ void UAsyncKdtreeBPLibrary::BuildKdtreeAsync(
8282 }
8383}
8484
85- struct FCollectFromKdtreeTaskParams
85+ struct FCollectFromKdtreeSphereTaskParams
8686{
8787 const FKdtree* Tree;
8888 FVector Center;
@@ -91,10 +91,10 @@ struct FCollectFromKdtreeTaskParams
9191 TArray<FVector>* Data;
9292};
9393
94- class FCollectFromKdtreeTask : public FNonAbandonableTask
94+ class FCollectFromKdtreeSphereTask : public FNonAbandonableTask
9595{
9696public:
97- FCollectFromKdtreeTask (const FCollectFromKdtreeTaskParams & InParams) : Params(InParams)
97+ FCollectFromKdtreeSphereTask (const FCollectFromKdtreeSphereTaskParams & InParams) : Params(InParams)
9898 {
9999 }
100100
@@ -109,30 +109,30 @@ class FCollectFromKdtreeTask : public FNonAbandonableTask
109109
110110 FORCEINLINE TStatId GetStatId () const
111111 {
112- RETURN_QUICK_DECLARE_CYCLE_STAT (FCollectFromKdtreeTask , STATGROUP_ThreadPoolAsyncTasks);
112+ RETURN_QUICK_DECLARE_CYCLE_STAT (FCollectFromKdtreeSphereTask , STATGROUP_ThreadPoolAsyncTasks);
113113 }
114114
115115private:
116- FCollectFromKdtreeTaskParams Params;
116+ FCollectFromKdtreeSphereTaskParams Params;
117117};
118118
119- class FCollectFromKdtreeAction : public FPendingLatentAction
119+ class FCollectFromKdtreeSphereAction : public FPendingLatentAction
120120{
121121public:
122122 FLatentActionInfo LatentInfo;
123- FAsyncTask<FCollectFromKdtreeTask >* Task;
123+ FAsyncTask<FCollectFromKdtreeSphereTask >* Task;
124124
125- FCollectFromKdtreeAction (const FLatentActionInfo& InLatentInfo, const FKdtree* Tree, const FVector Center, float Radius,
125+ FCollectFromKdtreeSphereAction (const FLatentActionInfo& InLatentInfo, const FKdtree* Tree, const FVector Center, float Radius,
126126 TArray<int >* Indices, TArray<FVector>* Data)
127127 : LatentInfo(InLatentInfo), Task(nullptr )
128128 {
129- FCollectFromKdtreeTaskParams Params;
129+ FCollectFromKdtreeSphereTaskParams Params;
130130 Params.Tree = Tree;
131131 Params.Center = Center;
132132 Params.Radius = Radius;
133133 Params.Indices = Indices;
134134 Params.Data = Data;
135- Task = new FAsyncTask<FCollectFromKdtreeTask >(Params);
135+ Task = new FAsyncTask<FCollectFromKdtreeSphereTask >(Params);
136136 Task->StartBackgroundTask ();
137137 }
138138
@@ -142,15 +142,16 @@ class FCollectFromKdtreeAction : public FPendingLatentAction
142142 }
143143};
144144
145- void UAsyncKdtreeBPLibrary::CollectFromKdtreeAsync (const UObject* WorldContextObject, const FKdtree& Tree, const FVector Center ,
146- float Radius, TArray<int >& Indices, TArray<FVector>& Data, FLatentActionInfo LatentInfo)
145+ void UAsyncKdtreeBPLibrary::CollectFromKdtreeSphereAsync (const UObject* WorldContextObject, const FKdtree& Tree,
146+ const FVector Center, float Radius, TArray<int >& Indices, TArray<FVector>& Data, FLatentActionInfo LatentInfo)
147147{
148148 if (UWorld* World = GEngine->GetWorldFromContextObject (WorldContextObject, EGetWorldErrorMode::LogAndReturnNull))
149149 {
150150 FLatentActionManager& LatentManager = World->GetLatentActionManager ();
151- if (LatentManager.FindExistingAction <FCollectFromKdtreeAction >(LatentInfo.CallbackTarget , LatentInfo.UUID ) == nullptr )
151+ if (LatentManager.FindExistingAction <FCollectFromKdtreeSphereAction >(LatentInfo.CallbackTarget , LatentInfo.UUID ) == nullptr )
152152 {
153- FCollectFromKdtreeAction* NewAction = new FCollectFromKdtreeAction (LatentInfo, &Tree, Center, Radius, &Indices, &Data);
153+ FCollectFromKdtreeSphereAction* NewAction =
154+ new FCollectFromKdtreeSphereAction (LatentInfo, &Tree, Center, Radius, &Indices, &Data);
154155 LatentManager.AddNewAction (LatentInfo.CallbackTarget , LatentInfo.UUID , NewAction);
155156 }
156157 }
@@ -214,7 +215,7 @@ class FCollectFromKdtreeBoxAction : public FPendingLatentAction
214215 }
215216};
216217
217- void UAsyncKdtreeBPLibrary::CollectFromKdtreeAsyncBox (const UObject* WorldContextObject, const FKdtree& Tree, const FBox Box,
218+ void UAsyncKdtreeBPLibrary::CollectFromKdtreeBoxAsync (const UObject* WorldContextObject, const FKdtree& Tree, const FBox Box,
218219 TArray<int >& Indices, TArray<FVector>& Data, FLatentActionInfo LatentInfo)
219220{
220221 if (UWorld* World = GEngine->GetWorldFromContextObject (WorldContextObject, EGetWorldErrorMode::LogAndReturnNull))
0 commit comments