Add sandbox support for rotatable/mirrored tiles (#34860)

* Initial commit

* Add AllowRotationMirror

* Update to follow changes to RT PR

* fixes

* erm

---------

Co-authored-by: AJCM-git <ajcm_mail@disroot.org>
This commit is contained in:
SlamBamActionman 2026-07-04 07:07:54 +02:00 • committed by GitHub
parent 86fbd28504
commit 45c6be034d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,6 +103,8 @@ namespace Content.Client.Sandbox
if (_placement.Eraser)
_placement.ToggleEraser();
_placement.Direction = _transform.GetWorldRotation(uid).GetCardinalDir();
_placement.BeginPlacing(new()
{
EntityType = comp.EntityPrototype.ID,
@ -121,6 +123,9 @@ namespace Content.Client.Sandbox
if (_placement.Eraser)
_placement.ToggleEraser();
_placement.Direction = (Direction)(tileRef.Tile.RotationMirroring % 4 * 2);
_placement.Mirrored = tileRef.Tile.RotationMirroring >= 4;
_placement.BeginPlacing(new()
{
EntityType = null,