mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-24 09:08:04 +03:00
a
This commit is contained in:
@@ -32,6 +32,7 @@ public sealed class GuidebookSystem : EntitySystem
|
||||
[Dependency] private readonly RgbLightControllerSystem _rgbLightControllerSystem = default!;
|
||||
[Dependency] private readonly SharedPointLightSystem _pointLightSystem = default!;
|
||||
[Dependency] private readonly TagSystem _tags = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
public event Action<List<ProtoId<GuideEntryPrototype>>,
|
||||
List<ProtoId<GuideEntryPrototype>>?,
|
||||
@@ -140,17 +141,16 @@ public sealed class GuidebookSystem : EntitySystem
|
||||
});
|
||||
}
|
||||
|
||||
private void OnGuidebookControlsTestActivateInWorld(EntityUid uid, GuidebookControlsTestComponent component, ActivateInWorldEvent args)
|
||||
{
|
||||
Transform(uid).LocalRotation += Angle.FromDegrees(90);
|
||||
}
|
||||
private void OnGuidebookControlsTestActivateInWorld(EntityUid uid, GuidebookControlsTestComponent component, ActivateInWorldEvent args) => Transform(uid).LocalRotation += Angle.FromDegrees(90);
|
||||
|
||||
private void OnGuidebookControlsTestInteractHand(EntityUid uid, GuidebookControlsTestComponent component, InteractHandEvent args)
|
||||
{
|
||||
if (!TryComp<SpeechComponent>(uid, out var speech) || speech.SpeechSounds is null)
|
||||
if (!TryComp<SpeechComponent>(uid, out var speech)
|
||||
|| !_prototypeManager.TryIndex(speech.SpeechSounds, out var sounds))
|
||||
return;
|
||||
|
||||
_audioSystem.PlayGlobal(speech.SpeechSounds, Filter.Local(), false, speech.AudioParams);
|
||||
// TODO: I don't know if this is correct. Help.
|
||||
_audioSystem.PlayGlobal(sounds.SaySound, Filter.Local(), false, speech.AudioParams);
|
||||
}
|
||||
|
||||
public void FakeClientActivateInWorld(EntityUid activated)
|
||||
|
||||
Reference in New Issue
Block a user