Beispiel #1
0
        public void CompareCheck(RefList <T> other, Stack <string> path)
        {
            if (Count != other.Count)
            {
                SerializationTools.LogCompError(path, "Count", other.Count, Count);
            }
            var count = Math.Min(Count, other.Count);

            for (int i = 0; i < count; i++)
            {
                if (vals[i].id != other.vals[i].id)
                {
                    SerializationTools.LogCompError(path, $"id at index: {i.ToString()}", vals[i].id, other.vals[i].id);
                }
            }
        }
Beispiel #2
0
 public void UpdateFrom(RefList <T> other, ObjectPool pool)
 {
     UpdateFrom(other);
 }