public void Reset() { SelectionState = State.Place; ChangeState(State.Place); ChangedPlacers.Clear(); foreach (List <Element> layers in ElementsLayers) { if (layers.Count > 1) { layers.RemoveRange(1, layers.Count - 1); } Element element = layers[0]; Image image = element.GetUiElement() as Image; (element.TileObject, element.Root) = (null, null); if (image != null) { (element.Placeable, image.Source) = (true, null); } element.Change(null, "Plain Grass"); element.AcceptChange(); } }