#include #include namespace hex::plugin::builtin { void registerNetworkEndpoints() { ContentRegistry::CommunicationInterface::registerNetworkEndpoint("pattern_editor/set_code", [](const nlohmann::json &data) -> nlohmann::json { auto code = data["code"].get(); EventManager::post(code); return { }; }); } }