mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
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:
parent
86fbd28504
commit
45c6be034d
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue