More refactoring in MCP
This commit is contained in:
@@ -121,6 +121,23 @@ void FWingProperty::Remove(TArray<FWingProperty>& Props, const FString& Name)
|
||||
Props.RemoveAll([&](const FWingProperty& P) { return P.Prop->GetName() == Name; });
|
||||
}
|
||||
|
||||
void FWingProperty::Move(TArray<FWingProperty> &Out, TArray<FWingProperty> &In, const FString &Name)
|
||||
{
|
||||
int Dst = 0;
|
||||
for (int i = 0; i < In.Num(); i++)
|
||||
{
|
||||
if (In[i]->GetName() == Name)
|
||||
{
|
||||
Out.Add(In[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
In[Dst++] = In[i];
|
||||
}
|
||||
}
|
||||
In.SetNum(Dst);
|
||||
}
|
||||
|
||||
TArray<FWingProperty> FWingProperty::GetAll(UObject* Obj, EPropertyFlags Flags)
|
||||
{
|
||||
if (!Obj) return {};
|
||||
|
||||
Reference in New Issue
Block a user