]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add trigger-refactor components and systems: Batch 1 (#39391)
authorStudio Fae-Wilds <studio.faewilds@gmail.com>
Thu, 14 Aug 2025 07:39:54 +0000 (17:39 +1000)
committerGitHub <noreply@github.com>
Thu, 14 Aug 2025 07:39:54 +0000 (09:39 +0200)
commit770dc68a48ad0d2135bba8103428713cf9243f7c
tree8cacb3b643535a80d4f0fb97e3ae3cfdda45b00d
parent0872c4d7e109039231371809dee1e00147f3a871
Add trigger-refactor components and systems: Batch 1 (#39391)

* Adds the following batch of trigger refactor components and their associated systems:

TriggerOnLand: LandEvent
TriggerOnExamined: ExaminedEvent
TriggerOnUnbuckle: UnbuckledEvent
TriggerOnBuckle: BuckledEvent
TriggerOnStrap: StrappedEvent
TriggerOnUnstrapped: UnstrappedEvent

* Removes unnecessary lines from comment

* Fix comment formatting, corrects grammar and increases comment clarity.

* adds last forgotten edit to comments

* Update Content.Shared/Trigger/Systems/TriggerOnStrappedOrBuckledSystem.cs

Removes unnecessary comments

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Trigger/Components/Triggers/TriggerOnBuckledComponent.cs

Increases comment clarity

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Trigger/Components/Triggers/TriggerOnExaminedComponent.cs

Increases comment clarity

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Trigger/Components/Triggers/TriggerOnLandComponent.cs

Increases comment clarity

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Trigger/Components/Triggers/TriggerOnStrappedComponent.cs

Increases comment clarity

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Trigger/Components/Triggers/TriggerOnUnbuckledComponent.cs

Increases comment clarity

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Trigger/Components/Triggers/TriggerOnUnstrappedComponent.cs

Increases comment clarity

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* refactored TriggerOnStrappedOrBuckledSystem.cs
removed TriggerOnExaminedSystem.cs and moved it into TriggerSystem.Interaction.cs

Changes currently untested, not sure how to make it so modders can change what method they want sending out the appropriate trigger key but want to save progress working on it and get feedback from maintainers

* Removed component which already exists as part of TriggerSystem.Interaction.cs

* Restores accidentally removed component

* Apply suggestions from code review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Shared/Trigger/Components/Triggers/TriggerOnBuckledComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnExaminedComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnLandComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnStrappedComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnUnbuckledComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Components/Triggers/TriggerOnUnstrappedComponent.cs [new file with mode: 0644]
Content.Shared/Trigger/Systems/TriggerOnLandSystem.cs [new file with mode: 0644]
Content.Shared/Trigger/Systems/TriggerOnStrappedOrBuckledSystem.cs [new file with mode: 0644]
Content.Shared/Trigger/Systems/TriggerSystem.Interaction.cs