-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shared portion of PvsOverrideSystem to allow for usage in shared (#5651)
- Loading branch information
Showing
3 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Robust.Client.GameStates; | ||
|
||
public sealed partial class PvsOverrideSystem : SharedPvsOverrideSystem; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using Robust.Shared.GameObjects; | ||
using Robust.Shared.Player; | ||
|
||
namespace Robust.Shared.GameStates; | ||
|
||
public abstract class SharedPvsOverrideSystem : EntitySystem | ||
{ | ||
/// <summary> | ||
/// Forces the entity, all of its parents, and all of its children to ignore normal PVS range limitations, | ||
/// causing them to always be sent to all clients. | ||
/// </summary> | ||
public virtual void AddGlobalOverride(EntityUid uid) | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Removes an entity from the global overrides. | ||
/// </summary> | ||
public virtual void RemoveGlobalOverride(EntityUid uid) | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Forces the entity, all of its parents, and all of its children to ignore normal PVS range limitations for a | ||
/// specific session. | ||
/// </summary> | ||
public virtual void AddSessionOverride(EntityUid uid, ICommonSession session) | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Removes an entity from a session's overrides. | ||
/// </summary> | ||
public virtual void RemoveSessionOverride(EntityUid uid, ICommonSession session) | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Forces the entity, all of its parents, and all of its children to ignore normal PVS range limitations, | ||
/// causing them to always be sent to all clients. | ||
/// </summary> | ||
public virtual void AddSessionOverrides(EntityUid uid, Filter filter) | ||
{ | ||
|
||
} | ||
} |