mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
* initial sidestream port * ru locale * blyatison * упс * jannie qol (#6) * initial sidestream port * blyadison * cs1.4 (#4) * initial sidestream port * blyatison * antitryaska (#7) * initial sidestream port (still fucked though) * blyatison * o fugg (#8) speedmerge * o fugg * fugg :-DDD * attempt numero uno (#9) * fix desword sound (#10) * раз уж я тут сижу * whoops * shit --------- Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
60 lines
1.7 KiB
C#
60 lines
1.7 KiB
C#
using System.Collections.ObjectModel;
|
|
using Content.Shared.Whitelist;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Storage.Components
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public enum StorageMapVisuals : sbyte
|
|
{
|
|
InitLayers,
|
|
LayerChanged,
|
|
}
|
|
|
|
[Serializable]
|
|
[DataDefinition]
|
|
public sealed partial class SharedMapLayerData
|
|
{
|
|
public string Layer = string.Empty;
|
|
|
|
[DataField("whitelist", required: true)] // WWDP EDIT FORMELY ServerWhiteList
|
|
public EntityWhitelist Whitelist { get; set; } = new(); // WHO THE FUCK MADE IT SERVERONLY AND WHY
|
|
|
|
/// <summary>
|
|
/// Minimal amount of entities that are valid for whitelist.
|
|
/// If it's smaller than minimal amount, layer will be hidden.
|
|
/// </summary>
|
|
[DataField("minCount")]
|
|
public int MinCount = 1;
|
|
|
|
/// <summary>
|
|
/// Max amount of entities that are valid for whitelist.
|
|
/// If it's bigger than max amount, layer will be hidden.
|
|
/// </summary>
|
|
[DataField("maxCount")]
|
|
public int MaxCount = int.MaxValue;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class ShowLayerData : ICloneable
|
|
{
|
|
public readonly IReadOnlyList<string> QueuedEntities;
|
|
|
|
public ShowLayerData()
|
|
{
|
|
QueuedEntities = new List<string>();
|
|
}
|
|
|
|
public ShowLayerData(IReadOnlyList<string> other)
|
|
{
|
|
QueuedEntities = other;
|
|
}
|
|
|
|
public object Clone()
|
|
{
|
|
// QueuedEntities should never be getting modified after this object is created.
|
|
return this;
|
|
}
|
|
}
|
|
}
|