mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
rename internal method
This commit is contained in:
parent
bed850eb84
commit
54e2d11048
@ -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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user