Disable obsoletion and inherited member hidden warnings in serialization source generated code (#4302)

This commit is contained in:
DrSmugleaf
2023-08-23 20:04:32 -07:00
committed by GitHub
parent b6879869d6
commit d66f7c7c06
2 changed files with 4 additions and 2 deletions

View File

@@ -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
{
}
""");

View File

@@ -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