TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ deepCompare()

static bool Terraria.Utils.deepCompare ( this int[] firstArray,
int[] secondArray )
inlinestatic

Definition at line 1966 of file Utils.cs.

1967 {
1968 if (firstArray == null && secondArray == null)
1969 {
1970 return true;
1971 }
1972 if (firstArray != null && secondArray != null)
1973 {
1974 if (firstArray.Length != secondArray.Length)
1975 {
1976 return false;
1977 }
1978 for (int i = 0; i < firstArray.Length; i++)
1979 {
1980 if (firstArray[i] != secondArray[i])
1981 {
1982 return false;
1983 }
1984 }
1985 return true;
1986 }
1987 return false;
1988 }