From 72fe3d13843d60a0a86c79092135774c1091b3ff Mon Sep 17 00:00:00 2001 From: Claire Kuang Date: Tue, 16 Jul 2024 17:38:42 +0100 Subject: [PATCH] Update Layer.cs --- src/Speckle.Core/Models/Layer.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Speckle.Core/Models/Layer.cs b/src/Speckle.Core/Models/Layer.cs index 88ebf9e8..bdf0c09b 100644 --- a/src/Speckle.Core/Models/Layer.cs +++ b/src/Speckle.Core/Models/Layer.cs @@ -5,5 +5,21 @@ namespace Speckle.Core.Models; /// public class Layer : Collection { - public int Color { get; set; } + public Layer() { } + + /// + /// Constructor for a basic Layer. + /// + /// The human-readable name of this collection + /// + public Layer(string name, int color) + { + this.name = name; + this.color = color; + } + + /// + /// The argb int value of the layer color + /// + public int color { get; set; } }