MegaMan.Editor.Bll.ScreenDocument.RemoveEntity C# (CSharp) Method

RemoveEntity() public method

public RemoveEntity ( EntityPlacement info ) : void
info MegaMan.Common.EntityPlacement
return void
        public void RemoveEntity(EntityPlacement info)
        {
            screen.Layers[0].Entities.Remove(info);
            Dirty = true;
            if (EntityRemoved != null) EntityRemoved(info);
        }

Usage Example

 public void Execute()
 {
     screen.RemoveEntity(entity);
 }