Merge branch 'master' into replace-sounds-with-sound-specifier

# Conflicts:
#	Content.Server/Hands/Components/HandsComponent.cs
#	Content.Server/Light/Components/ExpendableLightComponent.cs
#	Content.Shared/Light/Component/SharedExpendableLightComponent.cs
This commit is contained in:
Galactic Chimp
2021-07-31 13:16:03 +02:00
105 changed files with 1483 additions and 1319 deletions

View File

@@ -7,7 +7,7 @@ using System.Diagnostics.CodeAnalysis;
namespace Content.Shared.Sound
{
[DataDefinition]
[ImplicitDataDefinitionForInheritors]
public abstract class SoundSpecifier
{
public abstract string GetSound();
@@ -15,7 +15,6 @@ namespace Content.Shared.Sound
public abstract bool TryGetSound([NotNullWhen(true)] out string? sound);
}
[DataDefinition]
public sealed class SoundPathSpecifier : SoundSpecifier
{
public const string Node = "path";
@@ -49,7 +48,6 @@ namespace Content.Shared.Sound
}
}
[DataDefinition]
public sealed class SoundCollectionSpecifier : SoundSpecifier
{
public const string Node = "collection";