Materials were refactored
This commit is contained in:
@@ -18,7 +18,7 @@ namespace StructureHelper.Models.Materials
|
||||
{
|
||||
private Color color;
|
||||
|
||||
public string Id { get; }
|
||||
public Guid Id { get; }
|
||||
public string Name { get; set; }
|
||||
public Color Color
|
||||
{
|
||||
@@ -31,12 +31,16 @@ namespace StructureHelper.Models.Materials
|
||||
}
|
||||
public IHelperMaterial HelperMaterial {get; set;}
|
||||
|
||||
public HeadMaterial()
|
||||
public HeadMaterial(Guid id)
|
||||
{
|
||||
Id = Convert.ToString(Guid.NewGuid());
|
||||
Id = id;
|
||||
Color = ColorProcessor.GetRandomColor();
|
||||
}
|
||||
|
||||
public HeadMaterial() : this(Guid.NewGuid())
|
||||
{
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public IMaterial GetLoaderMaterial(LimitStates limitState, CalcTerms calcTerm)
|
||||
@@ -55,5 +59,9 @@ namespace StructureHelper.Models.Materials
|
||||
return material;
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user