-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Закомментировал генокрада, систему улья общий чат, починил бумбокс
- Loading branch information
1 parent
27cc9bc
commit 3fa569b
Showing
12 changed files
with
624 additions
and
624 deletions.
There are no files selected for viewing
50 changes: 25 additions & 25 deletions
50
Content.Client/ADT/CollectiveMind/CollectiveMindSystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.