Ice bow artifact (#1200)

* pvs

* fix tradepost

* ice bow artifact
This commit is contained in:
Ed
2025-04-19 17:24:57 +03:00
committed by GitHub
parent 000a064140
commit f787bb5ea4
23 changed files with 103 additions and 36 deletions

View File

@@ -0,0 +1,23 @@
using Robust.Server.GameStates;
namespace Content.Server._CP14.PVS;
public sealed partial class CP14PvsOverrideSystem : EntitySystem
{
[Dependency] private readonly PvsOverrideSystem _pvs = default!;
public override void Initialize()
{
SubscribeLocalEvent<CP14PvsOverrideComponent, ComponentStartup>(OnLighthouseStartup);
SubscribeLocalEvent<CP14PvsOverrideComponent, ComponentShutdown>(OnLighthouseShutdown);
}
private void OnLighthouseShutdown(Entity<CP14PvsOverrideComponent> ent, ref ComponentShutdown args)
{
_pvs.RemoveGlobalOverride(ent);
}
private void OnLighthouseStartup(Entity<CP14PvsOverrideComponent> ent, ref ComponentStartup args)
{
_pvs.AddGlobalOverride(ent);
}
}