Revise update clone type to update depth.

This commit is contained in:
2023-01-17 22:16:09 +08:00
parent 3280693e8f
commit 4185303bd2
3 changed files with 15 additions and 14 deletions

View File

@@ -14,8 +14,9 @@ namespace Cryville.Crtr.Components {
/// </summary>
/// <param name="name">The name of the property.</param>
/// <param name="property">The property.</param>
protected void SubmitProperty(string name, PdtOperator property, int uct = 1) {
Properties.Add(IdentifierManager.SharedInstance.Request(name), new SkinProperty(property, uct));
/// <param name="depth">The maximum depth to update the property.</param>
protected void SubmitProperty(string name, PdtOperator property, int depth = 1) {
Properties.Add(IdentifierManager.SharedInstance.Request(name), new SkinProperty(property, depth));
}
/// <summary>
@@ -30,10 +31,10 @@ namespace Cryville.Crtr.Components {
}
public struct SkinProperty {
public PdtOperator Operator { get; set; }
public int UpdateCloneType { get; set; }
public SkinProperty(PdtOperator op, int uct = 1) {
public int UpdateDepth { get; set; }
public SkinProperty(PdtOperator op, int depth = 1) {
Operator = op;
UpdateCloneType = uct;
UpdateDepth = depth;
}
}
}