Files
OldThink/Content.Shared/_White/Cult/UI/ListViewSelectorBUIState.cs

37 lines
885 B
C#
Raw Permalink Normal View History

2024-01-27 15:19:52 +03:00
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared._White.Cult.UI;
2024-01-27 15:19:52 +03:00
[Serializable, NetSerializable]
public enum ListViewSelectorUiKey
{
Key
}
[Serializable, NetSerializable]
public class ListViewBUIState : BoundUserInterfaceState
{
public List<EntProtoId> Items { get; set; }
2024-01-27 15:19:52 +03:00
public bool IsUsingPrototypes { get; set; }
public ListViewBUIState(List<EntProtoId> items, bool isUsingPrototypes)
2024-01-27 15:19:52 +03:00
{
Items = items;
IsUsingPrototypes = isUsingPrototypes;
}
}
[Serializable, NetSerializable]
public class ListViewItemSelectedMessage : BoundUserInterfaceMessage
{
public string SelectedItem { get; private set; }
public int Index { get; private set; }
public ListViewItemSelectedMessage(string selectedItem, int index)
{
SelectedItem = selectedItem;
Index = index;
}
}