Skip to content

Commit

Permalink
Закомментировал генокрада, систему улья общий чат, починил бумбокс
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 committed Jun 28, 2024
1 parent 27cc9bc commit 3fa569b
Show file tree
Hide file tree
Showing 12 changed files with 624 additions and 624 deletions.
50 changes: 25 additions & 25 deletions Content.Client/ADT/CollectiveMind/CollectiveMindSystem.cs
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
using Content.Client.Chat.Managers;
using Content.Shared.Sirena.CollectiveMind;
using Robust.Client.Player;
// using Content.Client.Chat.Managers;
// using Content.Shared.Sirena.CollectiveMind;
// using Robust.Client.Player;

namespace Content.Client.Sirena.CollectiveMind;
// namespace Content.Client.Sirena.CollectiveMind;

public sealed class CollectiveMindSystem : EntitySystem
{
[Dependency] private readonly IChatManager _chatManager = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
// public sealed class CollectiveMindSystem : EntitySystem
// {
// [Dependency] private readonly IChatManager _chatManager = default!;
// [Dependency] private readonly IPlayerManager _playerManager = default!;

public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<CollectiveMindComponent, ComponentInit>(OnInit);
SubscribeLocalEvent<CollectiveMindComponent, ComponentRemove>(OnRemove);
}
// public override void Initialize()
// {
// base.Initialize();
// SubscribeLocalEvent<CollectiveMindComponent, ComponentInit>(OnInit);
// SubscribeLocalEvent<CollectiveMindComponent, ComponentRemove>(OnRemove);
// }

public CollectiveMindComponent? Player => CompOrNull<CollectiveMindComponent>(_playerManager.LocalPlayer?.ControlledEntity);
public bool IsCollectiveMind => Player != null;
// public CollectiveMindComponent? Player => CompOrNull<CollectiveMindComponent>(_playerManager.LocalPlayer?.ControlledEntity);
// public bool IsCollectiveMind => Player != null;

private void OnInit(EntityUid uid, CollectiveMindComponent component, ComponentInit args)
{
_chatManager.UpdatePermissions();
}
// private void OnInit(EntityUid uid, CollectiveMindComponent component, ComponentInit args)
// {
// _chatManager.UpdatePermissions();
// }

private void OnRemove(EntityUid uid, CollectiveMindComponent component, ComponentRemove args)
{
_chatManager.UpdatePermissions();
}
}
// private void OnRemove(EntityUid uid, CollectiveMindComponent component, ComponentRemove args)
// {
// _chatManager.UpdatePermissions();
// }
// }
2 changes: 1 addition & 1 deletion Content.Client/Chat/Managers/IChatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ public interface IChatManager
void Initialize();

public void SendMessage(string text, ChatSelectChannel channel);
public void UpdatePermissions();//ADT HiveMind
//public void UpdatePermissions();//ADT HiveMind
}
}
1 change: 1 addition & 0 deletions Content.Server/ADT/Boombox/BoomBoxSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using Content.Server.Radio.Components;
using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceLinking.Systems;
using Content.Server.Radio.Components;

namespace Content.Server.BoomBox;

Expand Down
Loading

0 comments on commit 3fa569b

Please sign in to comment.