- add: dildos

This commit is contained in:
2024-02-12 18:00:47 +03:00
parent 7bc240ade4
commit 443bacc44c
42 changed files with 510 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems;
using Content.Shared._Amour.Vibrator;
using Content.Shared.Interaction.Events;
namespace Content.Server._Amour.Vibrator;
public sealed class VibratorSystem : SharedVibratorSystem
{
[Dependency] private readonly DeviceLinkSystem _signalSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<VibratorComponent,UseInHandEvent>(OnUseInHand);
SubscribeLocalEvent<VibratorComponent,ComponentInit>(OnInit);
SubscribeLocalEvent<VibratorComponent,SignalReceivedEvent>(OnsignalReceived);
}
private void OnsignalReceived(EntityUid uid, VibratorComponent component,ref SignalReceivedEvent args)
{
if(args.Port != component.TogglePort)
return;
ToggleVibration(uid,component);
}
private void OnInit(EntityUid uid, VibratorComponent component, ComponentInit args)
{
_signalSystem.EnsureSinkPorts(uid,component.TogglePort);
}
private void OnUseInHand(EntityUid uid, VibratorComponent component, UseInHandEvent args)
{
ToggleVibration(uid,component);
}
}