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); }
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); }