2019-09-01 22:57:22 +02:00
|
|
|
using System.Collections.Generic;
|
2020-05-28 06:22:47 -05:00
|
|
|
using Content.Server.Interfaces;
|
2019-09-01 22:57:22 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.Components.Access
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2020-05-28 06:22:47 -05:00
|
|
|
[ComponentReference(typeof(IAccess))]
|
|
|
|
|
public class AccessComponent : Component, IAccess
|
2019-09-01 22:57:22 +02:00
|
|
|
{
|
|
|
|
|
public override string Name => "Access";
|
|
|
|
|
[ViewVariables]
|
2020-05-28 06:22:47 -05:00
|
|
|
private List<string> _tags;
|
2019-09-01 22:57:22 +02:00
|
|
|
public override void ExposeData(ObjectSerializer serializer)
|
|
|
|
|
{
|
|
|
|
|
base.ExposeData(serializer);
|
2020-05-28 06:22:47 -05:00
|
|
|
serializer.DataField(ref _tags, "tags", new List<string>());
|
|
|
|
|
}
|
2019-09-01 22:57:22 +02:00
|
|
|
|
2020-05-28 06:22:47 -05:00
|
|
|
public List<string> GetTags()
|
|
|
|
|
{
|
|
|
|
|
return _tags;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetTags(List<string> newTags)
|
|
|
|
|
{
|
|
|
|
|
_tags = newTags;
|
2019-09-01 22:57:22 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|