Skip to content

Commit

Permalink
Make ComponentRegistry not implement ISerializationContext (#5613)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroJr authored Jan 17, 2025
1 parent eaaa704 commit 5d84be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ END TEMPLATE-->

### Breaking changes

*None yet*
* `ComponentRegistry` no longer implements `ISerializationContext`

### New features

Expand Down
5 changes: 1 addition & 4 deletions Robust.Shared/Prototypes/EntityPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public override bool TryGetDataCache(string field, out object? value)
}*/
}

public sealed class ComponentRegistry : Dictionary<string, EntityPrototype.ComponentRegistryEntry>, IEntityLoadContext, ISerializationContext
public sealed class ComponentRegistry : Dictionary<string, EntityPrototype.ComponentRegistryEntry>, IEntityLoadContext
{
public ComponentRegistry()
{
Expand All @@ -429,8 +429,5 @@ public bool ShouldSkipComponent(string compName)
{
return false; //Registries cannot represent the "remove this component" state.
}

public SerializationManager.SerializerProvider SerializerProvider { get; } = new();
public bool WritingReadingPrototypes { get; } = true;
}
}

0 comments on commit 5d84be9

Please sign in to comment.