Add smoothing for diagonal walls (#13259)

This commit is contained in:
metalgearsloth
2023-01-27 15:03:42 +11:00
committed by GitHub
parent c58d0519d7
commit 9b0e0ad71d
5 changed files with 55 additions and 6 deletions

View File

@@ -18,19 +18,19 @@ namespace Content.Client.IconSmoothing
/// <summary>
/// We will smooth with other objects with the same key.
/// </summary>
[DataField("key")]
[ViewVariables(VVAccess.ReadWrite), DataField("key")]
public string? SmoothKey { get; }
/// <summary>
/// Prepended to the RSI state.
/// </summary>
[DataField("base")]
[ViewVariables(VVAccess.ReadWrite), DataField("base")]
public string StateBase { get; } = string.Empty;
/// <summary>
/// Mode that controls how the icon should be selected.
/// </summary>
[DataField("mode")]
[ViewVariables(VVAccess.ReadWrite), DataField("mode")]
public IconSmoothingMode Mode = IconSmoothingMode.Corners;
/// <summary>
@@ -57,6 +57,11 @@ namespace Content.Client.IconSmoothing
/// </summary>
CardinalFlags,
/// <summary>
/// The icon represents a triangular sprite with only 2 states, representing South / East being occupied or not.
/// </summary>
Diagonal,
/// <summary>
/// Where this component contributes to our neighbors being calculated but we do not update our own sprite.
/// </summary>