Turnstiles (#36313)

* construction rotation fix

* Turnstiles

* renaming

* review-slarticodefast-1

* mild attempts to fix (sorry sloth)

* move some more shit

* Remove engine dependency

* grid agnostic

* remove debug string

* fix json

* Update Content.Shared/Movement/Pulling/Systems/PullingSystem.cs

Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>

* Update Content.Shared/Movement/Pulling/Systems/PullingSystem.cs

Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>

* remove pass delay for mispredict reasons.

* most minor of changes

* Give directional indicator on examine

---------

Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
This commit is contained in:
Nemanja
2025-04-24 07:39:40 -04:00
committed by GitHub
parent 0deb35000f
commit 712954f1c4
15 changed files with 486 additions and 0 deletions

View File

@@ -341,6 +341,16 @@ public sealed class PullingSystem : EntitySystem
return Resolve(puller, ref component, false) && component.Pulling != null;
}
public EntityUid? GetPuller(EntityUid puller, PullableComponent? component = null)
{
return !Resolve(puller, ref component, false) ? null : component.Puller;
}
public EntityUid? GetPulling(EntityUid puller, PullerComponent? component = null)
{
return !Resolve(puller, ref component, false) ? null : component.Pulling;
}
private void OnReleasePulledObject(ICommonSession? session)
{
if (session?.AttachedEntity is not { Valid: true } player)