Skip to content

Commit

Permalink
Merge pull request #34 from specklesystems/dim/dui3/layers
Browse files Browse the repository at this point in the history
feat(dui3): adds layer concept in core as a poc
  • Loading branch information
didimitrie authored Jul 16, 2024
2 parents baf5ab0 + e3a5af0 commit 481a095
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Speckle.Core/Models/Collection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ public Collection(string name, string collectionType)
public string name { get; set; }

/// <summary>
/// The type of this collection
/// The type of this collection. Note: Claire and Dim would propose we deprecate this prop. Do not use, please!
/// </summary>
[Obsolete(
"Note: Claire and Dim would propose we deprecate this prop. Do not use, please! Let's have a discussion about subclassing for your needs if nothing exists already."
)]
public string collectionType { get; set; }

/// <summary>
Expand Down
9 changes: 9 additions & 0 deletions src/Speckle.Core/Models/Layer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Speckle.Core.Models;

/// <summary>
/// A specialized collection that represents a CAD-app layer. We expect this to grow in the future with possibly other shared props.
/// </summary>
public class Layer : Collection
{
public int Color { get; set; }
}

0 comments on commit 481a095

Please sign in to comment.