Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Content.Shared.Materials;
|
||||
|
||||
[Access(typeof(SharedMaterialStorageSystem))]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class MaterialStorageComponent : Component
|
||||
public sealed partial class MaterialStorageComponent : Component
|
||||
{
|
||||
[DataField("storage", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<int, MaterialPrototype>))]
|
||||
public Dictionary<string, int> Storage { get; set; } = new();
|
||||
|
||||
Reference in New Issue
Block a user