FakeDeck/FakeeDeck/Class/FakeDeck.cs

50 lines
1.3 KiB
C#
Raw Normal View History

2024-09-11 19:46:34 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YamlDotNet.Serialization.NamingConventions;
using YamlDotNet.Serialization;
using System.Diagnostics;
using System.IO;
using System.Text.Json;
using System.Reflection;
using FakeeDeck.ButtonType;
2024-09-12 15:48:11 +00:00
using YamlDotNet.Serialization;
2024-09-11 19:46:34 +00:00
namespace FakeeDeck.Class
{
internal class FakeDeck
{
public FakeDeck()
{
2024-09-12 15:48:11 +00:00
YamlHelper yaml = new YamlHelper();
2024-09-11 19:46:34 +00:00
HttpServer server = new HttpServer();
2024-09-12 15:48:11 +00:00
foreach (JsonElement item in yaml.getData().GetProperty("pages").EnumerateArray())
{
Debug.WriteLine("PAGE: " + item.GetProperty("page"));
foreach (JsonElement button in item.GetProperty("buttons").EnumerateArray())
{
server.pageData += AbstractionHelper.getButtonVisual(button);
}
}
/*foreach (var stratogem in HelldiversTwoMacro.stratogems)
2024-09-11 19:46:34 +00:00
{
server.pageData += HelldiversTwoMacro.getButton(stratogem.Key);
}
foreach (var control in MediaMacro.mediaControls)
{
server.pageData += MediaMacro.getButton(control.Key);
2024-09-12 15:48:11 +00:00
}*/
2024-09-11 19:46:34 +00:00
server.serv();
}
2024-09-12 15:48:11 +00:00
2024-09-11 19:46:34 +00:00
}
}