]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Move PlaceableSurfaceComponent usages to PlaceableSurfaceSystem (#28384)
authorShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Thu, 19 Sep 2024 07:42:49 +0000 (00:42 -0700)
committerGitHub <noreply@github.com>
Thu, 19 Sep 2024 07:42:49 +0000 (17:42 +1000)
commit3fc9f96b75b2a3ebc1a02319758eb6853452cb05
tree003082cd91dd77425e78b244b6962f4a4c03f7ae
parentbdd0561254a0f2b6cef0a032af566bd908e9de58
Move PlaceableSurfaceComponent usages to PlaceableSurfaceSystem (#28384)

* Move placeable check to PlaceableSurfaceSystem

This check stops entities from being inserted into a storage entity
when it has a PlaceableSurfaceComponent.

The entity is instead placed on top of the entity like a table.

* Move SetPlaceable to PlaceableSurfaceSystem

* Update to transform system and consolidate code

* Fix interaction with storage that has a placeable component

* deadlock

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Content.Shared/Placeable/PlaceableSurfaceSystem.cs
Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs
Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs
Content.Shared/Storage/StorageComponent.cs