using CounterStrikeSharp.API.Core; using WASDSharedAPI; namespace WASDMenuAPI.Classes; public class WasdMenu : IWasdMenu { public string Title { get; set; } = ""; public string ItemText { get; set; } = ""; public string ItemHoverText { get; set; } = ""; public string ControlText { get; set; } = ""; public LinkedList? Options { get; set; } = new(); public LinkedListNode? Prev { get; set; } = null; public LinkedListNode Add(string display, Action onChoice) { Options ??= new(); WasdMenuOption newOption = new() { OptionDisplay = display, OnChoose = onChoice, Index = Options.Count, Parent = this }; return Options.AddLast(newOption); } }