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:
CalculateNewSpriteCorners();
break;
case IconSmoothingMode.CardinalFlags:
CalculateNewSpriteCardinal();
break;
case IconSmoothingMode.NoSprite:
break;
default:
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.
/// </summary>
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:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: IconSmooth
key: walls
mode: NoSprite
placement:
mode: SnapgridCenter