]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add container-related triggers (#39647)
authorArtxmisery <78118840+Artxmisery@users.noreply.github.com>
Thu, 14 Aug 2025 23:53:48 +0000 (23:53 +0000)
committerGitHub <noreply@github.com>
Thu, 14 Aug 2025 23:53:48 +0000 (01:53 +0200)
commit2b31fa98c9eb3b282888e6f46f24ca3da4bfb129
treecd55d01939e4c81ab111054af00b693aae972e92
parent96cc6a77851068212bf14a1d920ad8e922188c83
Add container-related triggers (#39647)

* added triggers for when an entity is inserted or removed from a container, for both the entity and the container

* removed unnecessary comments

* consolidated into one shared system for all four triggers

* consolidated into one shared system for all four triggers

* named it right this time

* made container owner user of got triggers and added guard statements

* container id

* Update Content.Shared/Trigger/Components/Triggers/TriggerOnRemovedFromContainerComponent.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Shared/Trigger/Components/Triggers/TriggerOnGotInsertedIntoContainerComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnGotRemovedFromContainerComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnInsertedIntoContainerComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnRemovedFromContainerComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Systems/TriggerOnContainerInteractionSystem.cs [new file with mode: 0644]