]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add Silicon Law cues to Every method a Silicon can have their laws change (#32887)
authorZachary Higgs <compgeek223@gmail.com>
Mon, 4 Nov 2024 11:23:12 +0000 (07:23 -0400)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2024 11:23:12 +0000 (12:23 +0100)
commita3f10ccfbb01616d08559950b5de4dc1c6df7f6d
tree80a0409a8f14a9d387058ca9ad34b2fcaaae3b45
parent4ba8e351fea3fc51c26ca3ac1d716124f6ba1589
Add Silicon Law cues to Every method a Silicon can have their laws change  (#32887)

* Silicon Law Sound cue refactor

- Added CueEntityMind to Silicon Law system to more uniformally
send sounds to minds

- Switch all previous MindPlaySound to instead call to the new method

* Change SiliconLawEui to cue the mind

* CR: TryGetComponent and Change the Documentation

- Remove GetComponentOrNull for  _entityManager.TryGetComponent

- Change SiliconLawProviderComponent.LawUploadSound to be more general
rather than just referencing lawboards

* Update Content.Server/Silicons/Laws/SiliconLawEui.cs

* Update Content.Shared/Silicons/Laws/Components/SiliconLawProviderComponent.cs

* Silicon-law-cue-refactor - CR:

- Roll the cuing into NotifyLawsChanged via an optional variable for the
cue

- Modify "SetLaws" to take in an optional soundProvider for the cue

- modify Emagged, Ion, Eui and SetLaws to instead send the sound cue via
NotifyLawsChanged

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Server/Silicons/Laws/SiliconLawEui.cs
Content.Server/Silicons/Laws/SiliconLawSystem.cs
Content.Shared/Silicons/Laws/Components/SiliconLawProviderComponent.cs