Airlock icon smoothing (#2789)

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-12-26 19:24:03 +11:00
committed by GitHub
parent 73579bcd07
commit 24d1c967b6
2 changed files with 10 additions and 2 deletions

View File

@@ -105,11 +105,11 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
case IconSmoothingMode.Corners: case IconSmoothingMode.Corners:
CalculateNewSpriteCorners(); CalculateNewSpriteCorners();
break; break;
case IconSmoothingMode.CardinalFlags: case IconSmoothingMode.CardinalFlags:
CalculateNewSpriteCardinal(); CalculateNewSpriteCardinal();
break; break;
case IconSmoothingMode.NoSprite:
break;
default: default:
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException();
} }
@@ -303,5 +303,10 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
/// The icon selected is a bit field made up of the cardinal direction flags that have adjacent entities. /// The icon selected is a bit field made up of the cardinal direction flags that have adjacent entities.
/// </summary> /// </summary>
CardinalFlags, CardinalFlags,
/// <summary>
/// Where this component contributes to our neighbors being calculated but we do not update our own sprite.
/// </summary>
NoSprite,
} }
} }

View File

@@ -64,6 +64,9 @@
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- type: IconSmooth
key: walls
mode: NoSprite
placement: placement:
mode: SnapgridCenter mode: SnapgridCenter