This commit is contained in:
Spatison
2024-09-06 20:18:36 +03:00
committed by GitHub
parent 510619c78e
commit dc76a9a889
4 changed files with 26 additions and 55 deletions

View File

@@ -29,18 +29,6 @@ public sealed class SingletonDeviceNetServerSystem : EntitySystem
return Resolve(serverId, ref serverComponent) && serverComponent.Active;
}
/// <summary>
/// Set server active. WD EDIT
/// </summary>
public bool SetServerActive(EntityUid serverId, bool active, SingletonDeviceNetServerComponent? serverComponent = default)
{
if (!Resolve(serverId, ref serverComponent))
return false;
serverComponent.Active = active;
return true;
}
/// <summary>
/// Returns the address of the currently active server for the given station id if there is one.<br/>
/// What kind of server you're trying to get the active instance of is determined by the component type parameter TComp.<br/>