Serv3 rework content changes (#7145)
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Inventory;
|
||||
|
||||
public abstract class InventoryComponent : Component
|
||||
{
|
||||
[DataField("templateId", required: true,
|
||||
customTypeSerializer: typeof(PrototypeIdSerializer<InventoryTemplatePrototype>))]
|
||||
[DataField("templateId", customTypeSerializer: typeof(PrototypeIdSerializer<InventoryTemplatePrototype>))]
|
||||
public string TemplateId { get; } = "human";
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Shared.Inventory;
|
||||
[Prototype("inventoryTemplate")]
|
||||
public sealed class InventoryTemplatePrototype : IPrototype
|
||||
{
|
||||
[DataField("id", required: true)]
|
||||
[IdDataFieldAttribute]
|
||||
public string ID { get; } = string.Empty;
|
||||
|
||||
[DataField("slots")]
|
||||
|
||||
Reference in New Issue
Block a user