mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
msh viewport initial
This commit is contained in:
@@ -37,6 +37,19 @@ public sealed class ViewportScene
|
||||
_pieces.Add(piece);
|
||||
}
|
||||
|
||||
public void ClearPieces()
|
||||
{
|
||||
_pieces.Clear();
|
||||
ClearSelection();
|
||||
}
|
||||
|
||||
public void ReplacePieces(IEnumerable<ViewportPiece> pieces)
|
||||
{
|
||||
_pieces.Clear();
|
||||
_pieces.AddRange(pieces);
|
||||
ClearSelection();
|
||||
}
|
||||
|
||||
public void ClearSelection()
|
||||
{
|
||||
SelectedPieceId = -1;
|
||||
|
||||
Reference in New Issue
Block a user