public bool Remove(IWorldObject item) { bool ret; ret = points.Remove((MPPoint)(item)); int index = ((MPPoint)item).PointNum; foreach (MPPoint pt in points) { if (pt.PointNum >= index) { pt.PointNum--; } } OnPointsChanged(); if (inTree) { item.RemoveFromTree(); } if (inScene) { item.RemoveFromScene(); } return(ret); }
public bool Remove(IWorldObject item) { if (inTree) { item.RemoveFromTree(); } if (inScene || (item is ParticleEffect && app.DisplayParticleEffects)) { item.RemoveFromScene(); } return(children.Remove(item)); }
public bool Remove(IWorldObject item) { if (inTree) { item.RemoveFromTree(); } if (inScene) { item.RemoveFromScene(); } return(objectList.Remove(item)); }
public bool Remove(IWorldObject item) { if (inTree) { item.RemoveFromTree(); } if (inScene) { item.RemoveFromScene(); } return(worldCollections.Remove(item as WorldObjectCollection)); }
public bool Remove(IWorldObject item) { if (inTree) { item.RemoveFromTree(); } if (inScene) { item.RemoveFromScene(); } return worldCollections.Remove(item as WorldObjectCollection); }
public bool Remove(IWorldObject item) { if (inTree) { item.RemoveFromTree(); } if (inScene) { item.RemoveFromScene(); } return objectList.Remove(item); }
public bool Remove(IWorldObject item) { item.RemoveFromTree(); item.RemoveFromScene(); return(children.Remove(item)); }
public void RemoveFromScene() { terrainDisplay.RemoveFromScene(); inScene = false; }
public bool Remove(IWorldObject item) { item.RemoveFromTree(); item.RemoveFromScene(); return children.Remove(item); }
public bool Remove(IWorldObject item) { if (inTree) { item.RemoveFromTree(); } if (inScene || (item is ParticleEffect && app.DisplayParticleEffects)) { item.RemoveFromScene(); } return children.Remove(item); }