Esempio n. 1
0
        public static bool AreEqual(TmxAsset map1, TmxAsset map2)
        {
            if (map1 == null || map2 == null)
            {
                return(map1 == map2);
            }
            else if (map1.Size != map2.Size || map1.Tilemaps.Count != map2.Tilemaps.Count)
            {
                return(false);
            }

            for (int i = 0; i < map1.Tilemaps.Count; i++)
            {
                if (!TilemapData.AreEqual(map1.Tilemaps[i], map2.Tilemaps[i]))
                {
                    return(false);
                }
            }

            return(true);
        }
Esempio n. 2
0
 public void CopyFrom(TmxAsset other)
 {
     this.Initialize(other._tilemaps, other.TilesetManager);
     _needsRefresh = true;
     this.Changed.InvokeIfNotNull();
 }