mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Disable obsoletion and inherited member hidden warnings in serialization source generated code (#4302)
This commit is contained in:
@@ -87,6 +87,8 @@ using Robust.Shared.Serialization.Manager;
|
||||
using Robust.Shared.Serialization.Manager.Exceptions;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Interfaces;
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
#pragma warning disable CS0612 // Type or member is obsolete
|
||||
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
|
||||
|
||||
{{namespaceString}}
|
||||
|
||||
@@ -179,7 +181,7 @@ using Robust.Shared.Serialization.TypeSerializers.Interfaces;
|
||||
// Implicit constructor
|
||||
#pragma warning disable CS8618
|
||||
public {{definition.Type.Name}}()
|
||||
#pragma warning enable CS8618
|
||||
#pragma warning restore CS8618
|
||||
{
|
||||
}
|
||||
""");
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Robust.Shared.GameObjects
|
||||
/// Instances are dynamically instantiated by a <c>ComponentFactory</c>, and will have their IoC Dependencies resolved.
|
||||
/// </remarks>
|
||||
[ImplicitDataDefinitionForInheritors]
|
||||
public partial interface IComponent : ISerializationGenerated<IComponent>
|
||||
public partial interface IComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// The current lifetime stage of this component. You can use this to check
|
||||
|
||||
Reference in New Issue
Block a user