rename internal method

This commit is contained in:
Mikhail 2024-11-05 15:53:00 +08:00
parent bed850eb84
commit 54e2d11048

View File

@ -537,7 +537,7 @@ namespace DCFApixels.DragonECS
#endregion #endregion
#region MergeWith #region MergeWith
private static bool AreMatchingOrderIdentical(List<string> listA, IReadOnlyList<string> listB) private static bool CheckOverlapsOrder(List<string> listA, IReadOnlyList<string> listB)
{ {
int lastIndexof = 0; int lastIndexof = 0;
for (int i = 0; i < listB.Count; i++) for (int i = 0; i < listB.Count; i++)
@ -559,8 +559,7 @@ namespace DCFApixels.DragonECS
List<string> listA = _layers; List<string> listA = _layers;
IReadOnlyList<string> listB = other; IReadOnlyList<string> listB = other;
//TODO все еще не работает!!! if (CheckOverlapsOrder(listA, listB) == false)
if (AreMatchingOrderIdentical(listA, listB) == false)
{ {
//Для слияния списков слоев, нужно чтобы в пересечении порядок записей совпадал //Для слияния списков слоев, нужно чтобы в пересечении порядок записей совпадал
Throw.Exception("To merge layer lists, the names of the layers present in both lists must appear in the same order in both lists."); Throw.Exception("To merge layer lists, the names of the layers present in both lists must appear in the same order in both lists.");