Files
crystall-punk-14/Content.Server/GameObjects/Components/Access/AccessComponent.cs

23 lines
634 B
C#
Raw Normal View History

using System.Collections.Generic;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components.Access
{
[RegisterComponent]
public class AccessComponent : Component
{
public override string Name => "Access";
private List<string> _tags;
[ViewVariables]
public List<string> Tags => _tags;
public override void ExposeData(ObjectSerializer serializer)
{
base.ExposeData(serializer);
serializer.DataField(ref _tags, "tags", new List<string>());
}
}
}