// Copyright IHY. Vertical Partition Streaming plugin. #include "VerticalPartitionDescriptor.h" int32 UVerticalPartitionDescriptor::FindCellIndex(const FVerticalCellId& Id) const { for (int32 i = 0; i < Cells.Num(); ++i) { if (Cells[i].CellId == Id) { return i; } } return INDEX_NONE; } const FVerticalCellDescriptor* UVerticalPartitionDescriptor::FindCell(const FVerticalCellId& Id) const { const int32 Index = FindCellIndex(Id); return Cells.IsValidIndex(Index) ? &Cells[Index] : nullptr; } bool UVerticalPartitionDescriptor::HasFullPackages() const { for (const FVerticalCellDescriptor& Cell : Cells) { if (Cell.FullCellPackage.IsValid()) { return true; } } return false; }