Ejemplo n.º 1
0
 public void SetWorld(MinecraftWorld world)
 {
     WorldSide              = world;
     WorldSide.MapsChanged += WorldSide_MapsChanged;
     WorldSide_MapsChanged(this, EventArgs.Empty);
     ImportSide              = new ImportMaps();
     ImportSide.MapsChanged += ImportSide_MapsChanged;
     ImportSide_MapsChanged(this, EventArgs.Empty);
 }
Ejemplo n.º 2
0
        public void SetMapsImport(ImportMaps import)
        {
            var maps     = import.GetMaps().Copy();
            var pendings = import.GetPending();

            foreach (var pending in pendings)
            {
                foreach (var id in pending.IDs)
                {
                    maps[id] = null;
                }
            }
            SetMaps(maps);
        }