ports over datasets (#2663)
* ports over datasets & ignores the dataset prototype clientside * moved dataset to shared Co-authored-by: Paul <ritter.paul1+git@googlemail.com>
This commit is contained in:
@@ -10,10 +10,10 @@ using Content.Server.Interfaces.GameTicking;
|
||||
using Content.Server.Mobs.Roles.Traitor;
|
||||
using Content.Server.Objectives.Interfaces;
|
||||
using Content.Server.Players;
|
||||
using Content.Server.Prototypes;
|
||||
using Content.Shared;
|
||||
using Content.Shared.GameObjects.Components.Inventory;
|
||||
using Content.Shared.GameObjects.Components.PDA;
|
||||
using Content.Shared.Prototypes;
|
||||
using Robust.Server.Interfaces.Player;
|
||||
using Robust.Shared.Interfaces.Configuration;
|
||||
using Robust.Shared.Interfaces.Random;
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using YamlDotNet.RepresentationModel;
|
||||
|
||||
namespace Content.Server.Prototypes
|
||||
{
|
||||
[Prototype("dataset")]
|
||||
public class DatasetPrototype : IPrototype, IIndexedPrototype
|
||||
{
|
||||
private string _id;
|
||||
public string ID => _id;
|
||||
|
||||
private List<string> _values;
|
||||
public IReadOnlyList<string> Values => _values;
|
||||
|
||||
public void LoadFrom(YamlMappingNode mapping)
|
||||
{
|
||||
var ser = YamlObjectSerializer.NewReader(mapping);
|
||||
|
||||
ser.DataField(ref _id, "id", "");
|
||||
ser.DataField(ref _values, "values", new List<string>());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user