2021-07-22 11:56:55 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Content.Shared.Whitelist;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
|
|
|
2021-09-04 19:42:32 +02:00
|
|
|
|
namespace Content.Shared.Storage.Components
|
2021-07-22 11:56:55 +02:00
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum StorageMapVisuals : sbyte
|
|
|
|
|
|
{
|
|
|
|
|
|
InitLayers,
|
|
|
|
|
|
LayerChanged,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
|
[DataDefinition]
|
|
|
|
|
|
public class SharedMapLayerData
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Layer = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
[DataField("whitelist", required: true)]
|
|
|
|
|
|
public EntityWhitelist Whitelist { get; set; } = new();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public class ShowLayerData
|
|
|
|
|
|
{
|
|
|
|
|
|
public IReadOnlyList<string> QueuedEntities { get; internal set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ShowLayerData()
|
|
|
|
|
|
{
|
|
|
|
|
|
QueuedEntities = new List<string>();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ShowLayerData(IReadOnlyList<string> other)
|
|
|
|
|
|
{
|
|
|
|
|
|
QueuedEntities = other;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ShowLayerData(ShowLayerData other)
|
|
|
|
|
|
{
|
|
|
|
|
|
QueuedEntities = other.QueuedEntities;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-09-04 19:42:32 +02:00
|
|
|
|
}
|