public override void Paste(LevelEditor editor, Layer layer) { editor.StartBatch(); foreach (var e in entities) editor.BatchPerform(new EntityAddAction(layer as EntityLayer, e.Clone())); editor.EndBatch(); }
public LayerEditor(LevelEditor levelEditor, Layer layer) { LevelEditor = levelEditor; Layer = layer; DrawMatrix = Matrix.Identity; }
public override bool CanPaste(Layer layer) { return layer is EntityLayer; }
public override void Paste(LevelEditor editor, Layer layer) { editor.Perform(new TilePasteSelectionAction(layer as TileLayer, Area, Data)); }
public override bool CanPaste(Layer layer) { return layer is TileLayer; }
public override void Paste(LevelEditor editor, Layer layer) { editor.Perform(new GridPasteSelectionAction(layer as GridLayer, Area, Bits)); }
public abstract void Paste(LevelEditor editor, Layer layer);
public abstract bool CanPaste(Layer layer);