Add [NotContentImplementable] to shared interfaces

This commit is contained in:
PJB3005
2025-12-20 16:49:35 +01:00
parent 9b02a4e718
commit bb81d88653
54 changed files with 57 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ namespace Robust.Shared.Asynchronous
private static readonly SendOrPostCallback _runCallback = o => { ((Action?)o)?.Invoke(); };
}
[NotContentImplementable]
public interface ITaskManager
{
void Initialize();

View File

@@ -4,6 +4,7 @@ using Robust.Shared.Maths;
namespace Robust.Shared.Audio.Effects;
[NotContentImplementable]
public interface IAudioEffect
{
/// <summary>

View File

@@ -2,6 +2,7 @@ using System;
namespace Robust.Shared.Audio.Effects;
[NotContentImplementable]
public interface IAuxiliaryAudio : IDisposable
{
/// <summary>

View File

@@ -56,6 +56,7 @@ namespace Robust.Shared.Configuration
/// so it is not recommended to modify CVars from other threads.
/// </para>
/// </remarks>
[NotContentImplementable]
public interface IConfigurationManager
{
/// <summary>

View File

@@ -14,6 +14,7 @@ namespace Robust.Shared.Configuration
/// A networked configuration manager that controls the replication of
/// console variables between client and server.
/// </summary>
[NotContentImplementable]
public interface INetConfigurationManager : IConfigurationManager
{
/// <summary>

View File

@@ -31,6 +31,7 @@ namespace Robust.Shared.Console
/// The console host exists as a singleton subsystem that provides all of the features of the console API.
/// It will register console commands, spawn console shells and execute command strings.
/// </summary>
[NotContentImplementable]
public interface IConsoleHost
{
/// <summary>

View File

@@ -7,6 +7,7 @@ namespace Robust.Shared.Console
/// The console shell that executes commands. Each shell executes commands in the context of a player
/// session, or without a session in a local context.
/// </summary>
[NotContentImplementable]
public interface IConsoleShell
{
/// <summary>

View File

@@ -10,6 +10,7 @@ namespace Robust.Shared.ContentPack
/// <summary>
/// The mod loader is in charge of loading content assemblies and managing them.
/// </summary>
[NotContentImplementable]
public interface IModLoader
{
/// <summary>

View File

@@ -11,6 +11,7 @@ namespace Robust.Shared.ContentPack
/// <summary>
/// Virtual file system for all disk resources.
/// </summary>
[NotContentImplementable]
public interface IResourceManager
{
/// <summary>

View File

@@ -9,6 +9,7 @@ namespace Robust.Shared.ContentPack
/// Provides an API for file and directory manipulation inside of a rooted folder.
/// </summary>
[PublicAPI]
[NotContentImplementable]
public interface IWritableDirProvider
{
/// <summary>

View File

@@ -95,6 +95,7 @@ namespace Robust.Shared.Exceptions
/// The term "runtime" dates back to BYOND, in which an exception is called a "runtime error".
/// As such, what we call exceptions is called a "runtime" in BYOND.
/// </remarks>
[NotContentImplementable]
public interface IRuntimeLog
{
int ExceptionCount { get; }

View File

@@ -11,6 +11,7 @@ namespace Robust.Shared.GameObjects
/// EntitySystems communicate with each other.
/// </summary>
[PublicAPI]
[NotContentImplementable]
public interface IBroadcastEventBus
{
/// <summary>

View File

@@ -11,10 +11,12 @@ using Robust.Shared.Utility;
namespace Robust.Shared.GameObjects
{
[NotContentImplementable]
public interface IEventBus : IDirectedEventBus, IBroadcastEventBus
{
}
[NotContentImplementable]
public interface IDirectedEventBus
{
void RaiseLocalEvent<TEvent>(EntityUid uid, TEvent args, bool broadcast = false)

View File

@@ -10,6 +10,7 @@ namespace Robust.Shared.GameObjects
/// </summary>
/// <include file='../Serialization/Manager/Attributes/Docs.xml' path='entries/entry[@name="ImpliesDataDefinition"]/*'/>
[ImplicitDataDefinitionForInheritors]
[NotContentImplementable]
public partial interface IComponent
{
/// <summary>

View File

@@ -49,6 +49,7 @@ namespace Robust.Shared.GameObjects
/// </remarks>
/// <seealso cref="IComponentRegistration" />
/// <seealso cref="IComponent" />
[NotContentImplementable]
public interface IComponentFactory
{
event Action<ComponentRegistration[]> ComponentsAdded;

View File

@@ -7,6 +7,7 @@ using Robust.Shared.Timing;
namespace Robust.Shared.GameObjects
{
[NotContentImplementable]
public partial interface IEntityManager
{
/// <summary>

View File

@@ -6,6 +6,7 @@ namespace Robust.Shared.GameObjects
/// <summary>
/// Manages the sending and receiving of network messages between the server and client(s).
/// </summary>
[NotContentImplementable]
public interface IEntityNetworkManager
{
/// <summary>

View File

@@ -11,6 +11,7 @@ namespace Robust.Shared.GameObjects
/// They get managed by an <see cref="IEntitySystemManager" />.
/// </summary>
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
[NotContentImplementable]
public interface IEntitySystem : IEntityEventSubscriber
{
IEnumerable<Type> UpdatesAfter { get; }

View File

@@ -1,6 +1,6 @@
namespace Robust.Shared.Graphics;
public interface IClydeHandle
internal interface IClydeHandle
{
long Value { get; }
}

View File

@@ -10,6 +10,7 @@ namespace Robust.Shared.Graphics
/// It's a 2D camera in other game dev lingo basically.
/// </summary>
[PublicAPI]
[NotContentImplementable]
public interface IEye
{
/// <summary>

View File

@@ -12,6 +12,7 @@ namespace Robust.Shared.Input.Binding
/// fire after another system's handlers. This also allows easy unregistering of all bindings
/// for a given system / manager.
/// </summary>
[NotContentImplementable]
public interface ICommandBindRegistry
{
/// <summary>CO

View File

@@ -6,6 +6,7 @@ namespace Robust.Shared.Input
/// <summary>
/// An Input Context to determine which key binds are currently available to the player.
/// </summary>
[NotContentImplementable]
public interface IInputCmdContext : IEnumerable<BoundKeyFunction>
{
/// <summary>

View File

@@ -192,6 +192,7 @@ namespace Robust.Shared.Input
}
}
[NotContentImplementable]
public interface IFullInputCmdMessage
{
GameTick Tick { get; }

View File

@@ -7,6 +7,7 @@ namespace Robust.Shared.Input
/// <summary>
/// Contains a set of created <see cref="InputCmdContext"/>s.
/// </summary>
[NotContentImplementable]
public interface IInputContextContainer
{
/// <summary>

View File

@@ -5,6 +5,7 @@ namespace Robust.Shared.Input
/// <summary>
/// Contains a mapping of <see cref="BoundKeyFunction"/> to their current <see cref="BoundKeyState"/>.
/// </summary>
[NotContentImplementable]
public interface IPlayerCommandStates
{
/// <summary>

View File

@@ -12,6 +12,7 @@ namespace Robust.Shared.IoC
/// </summary>
/// <seealso cref="DynamicTypeFactoryExt"/>
[PublicAPI]
[NotContentImplementable]
public interface IDynamicTypeFactory
{
/// <summary>

View File

@@ -31,6 +31,7 @@ namespace Robust.Shared.IoC
/// </para>
/// </remarks>
/// <seealso cref="IReflectionManager"/>
[NotContentImplementable]
public interface IDependencyCollection
{
IDependencyCollection FromParent(IDependencyCollection parentCollection);

View File

@@ -20,6 +20,7 @@ namespace Robust.Shared.Localization
/// </remarks>
/// <seealso cref="Loc"/>
[PublicAPI]
[NotContentImplementable]
public interface ILocalizationManager
{
/// <summary>

View File

@@ -6,6 +6,7 @@ namespace Robust.Shared.Log
/// Manages logging sawmills.
/// </summary>
/// <seealso cref="ISawmill"/>
[NotContentImplementable]
public interface ILogManager
{
/// <summary>

View File

@@ -18,6 +18,7 @@ namespace Robust.Shared.Map
/// <summary>
/// This manages all the grids and maps in the world. Largely superseded by <see cref="SharedMapSystem"/>.
/// </summary>
[NotContentImplementable]
public interface IMapManager
{
public const bool Approximate = false;

View File

@@ -7,6 +7,7 @@ namespace Robust.Shared.Map
/// <summary>
/// This manages tile definitions for grid tiles.
/// </summary>
[NotContentImplementable]
public interface ITileDefinitionManager : IEnumerable<ITileDefinition>
{
Tile GetVariantTile(string name, IRobustRandom random);

View File

@@ -17,6 +17,7 @@ namespace Robust.Shared.Network;
/// content code can't send arbitrary HTTP requests.
/// </para>
/// </remarks>
[NotContentImplementable]
public interface IHttpClientHolder
{
HttpClient Client { get; }

View File

@@ -5,6 +5,7 @@ namespace Robust.Shared.Network
/// <summary>
/// The Client version of the INetManager.
/// </summary>
[NotContentImplementable]
public interface IClientNetManager : INetManager
{
/// <summary>

View File

@@ -7,6 +7,7 @@ namespace Robust.Shared.Network
/// <summary>
/// A network channel between this peer and a remote peer.
/// </summary>
[NotContentImplementable]
public interface INetChannel
{
/// <summary>

View File

@@ -7,6 +7,7 @@ namespace Robust.Shared.Network
/// <summary>
/// A network server that listens for connections, relays packets, and manages channels.
/// </summary>
[NotContentImplementable]
public interface INetManager
{
/// <summary>

View File

@@ -6,6 +6,7 @@ namespace Robust.Shared.Network
/// <summary>
/// The server version of the INetManager.
/// </summary>
[NotContentImplementable]
public interface IServerNetManager : INetManager
{
public delegate Task<NetApproval> NetApprovalDelegate(NetApprovalEventArgs eventArgs);

View File

@@ -90,6 +90,7 @@ namespace Robust.Shared.Network
/// <summary>
/// Structured reason common interface.
/// </summary>
[NotContentImplementable]
public interface INetStructuredReason
{
NetDisconnectMessage Message { get; }

View File

@@ -17,6 +17,7 @@ namespace Robust.Shared.Physics.Collision.Shapes
/// <summary>
/// A primitive physical shape that is used by a <see cref="PhysicsComponent"/>.
/// </summary>
[NotContentImplementable]
public interface IPhysShape : IEquatable<IPhysShape>
{
/// <summary>

View File

@@ -6,6 +6,7 @@ using Robust.Shared.Physics.Dynamics;
namespace Robust.Shared.Physics;
[NotContentImplementable]
public interface IBroadPhase
{
int Count { get; }
@@ -61,6 +62,7 @@ public interface IBroadPhase
void RebuildBottomUp();
}
[NotContentImplementable]
public interface IBroadPhase<T> : ICollection<T> where T : notnull {
int Capacity { get; }

View File

@@ -14,6 +14,7 @@ namespace Robust.Shared.Physics
/// <summary>
/// Takes in a list of vertices and removes any that are redundant (within tolerance).
/// </summary>
[NotContentImplementable]
public interface IVerticesSimplifier
{
List<Vector2> Simplify(List<Vector2> vertices, float tolerance);

View File

@@ -11,6 +11,7 @@ namespace Robust.Shared.Player;
/// Common info between client and server sessions.
/// </summary>
/// <seealso cref="ISharedPlayerManager"/>
[NotContentImplementable]
public interface ICommonSession
{
/// <summary>

View File

@@ -10,6 +10,7 @@ using Robust.Shared.ViewVariables;
namespace Robust.Shared.Player;
[NotContentImplementable]
public interface ISharedPlayerManager
{
/// <summary>

View File

@@ -28,6 +28,7 @@ namespace Robust.Shared.Prototypes;
/// <seealso cref="IPrototype"/>
/// <seealso cref="IInheritingPrototype"/>
/// <seealso cref="PrototypeAttribute"/>
[NotContentImplementable]
public interface IPrototypeManager
{
void Initialize();

View File

@@ -23,6 +23,7 @@ namespace Robust.Shared.Reflection
/// </remarks>
/// <seealso cref="IoCManager"/>
/// <seealso cref="ReflectAttribute"/>
[NotContentImplementable]
public interface IReflectionManager
{
/// <summary>

View File

@@ -14,6 +14,7 @@ using YamlDotNet.RepresentationModel;
namespace Robust.Shared.Replays;
[NotContentImplementable]
public interface IReplayRecordingManager
{
/// <summary>
@@ -188,6 +189,7 @@ public record struct ReplayRecordingStats(TimeSpan Time, uint Ticks, long Size,
/// </summary>
/// <seealso cref="ReplayRecordingStopped"/>
/// <seealso cref="IReplayRecordingManager.RecordingStopped2"/>
[NotContentImplementable]
public interface IReplayFileWriter
{
/// <summary>

View File

@@ -4,6 +4,7 @@ using Robust.Shared.IoC;
namespace Robust.Shared.Sandboxing
{
[NotContentImplementable]
public interface ISandboxHelper
{
/// <summary>

View File

@@ -6,6 +6,7 @@ using Robust.Shared.Network;
namespace Robust.Shared.Serialization
{
[NotContentImplementable]
public interface IRobustSerializer
{
void Initialize();

View File

@@ -9,6 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Interfaces;
namespace Robust.Shared.Serialization.Manager
{
[NotContentImplementable]
public interface ISerializationManager
{
public delegate T InstantiationDelegate<out T>();

View File

@@ -7,6 +7,7 @@ using Robust.Shared.Log;
namespace Robust.Shared.Threading;
[NotContentImplementable]
public interface IParallelManager
{
event Action ParallelCountChanged;

View File

@@ -8,6 +8,7 @@ namespace Robust.Shared.Timing
/// <summary>
/// This holds main loop timing information and helper functions.
/// </summary>
[NotContentImplementable]
public interface IGameTiming
{
/// <summary>

View File

@@ -5,6 +5,7 @@ namespace Robust.Shared.Timing
/// <summary>
/// Manages <see cref="Timer"/>-based timing, allowing you to register new timers with optional cancellation.
/// </summary>
[NotContentImplementable]
public interface ITimerManager
{
/// <summary>

View File

@@ -3,6 +3,7 @@ using Robust.Shared.Serialization;
namespace Robust.Shared.Upload;
[NotContentImplementable]
public interface IGamePrototypeLoadManager
{
public void Initialize();

View File

@@ -521,6 +521,7 @@ namespace Robust.Shared.Utility
SE = 3
}
[NotContentImplementable]
public interface IQuadObject
{
Box2 Bounds { get; }

View File

@@ -5,6 +5,7 @@ using Robust.Shared.Player;
namespace Robust.Shared.ViewVariables;
[NotContentImplementable]
public interface IViewVariablesManager
{
/// <summary>