Skip to content

Commit

Permalink
Merge pull request #35 from specklesystems/claire/layer-constructor-fix
Browse files Browse the repository at this point in the history
Fixes Layer class constructors
  • Loading branch information
didimitrie authored Jul 16, 2024
2 parents 481a095 + 72fe3d1 commit 72b7123
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/Speckle.Core/Models/Layer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,21 @@ namespace Speckle.Core.Models;
/// </summary>
public class Layer : Collection
{
public int Color { get; set; }
public Layer() { }

/// <summary>
/// Constructor for a basic Layer.
/// </summary>
/// <param name="name">The human-readable name of this collection</param>
/// <param name="color"></param>
public Layer(string name, int color)
{
this.name = name;
this.color = color;
}

/// <summary>
/// The argb int value of the layer color
/// </summary>
public int color { get; set; }
}

0 comments on commit 72b7123

Please sign in to comment.