Add TeamSync configuration scaffold

This commit is contained in:
2026-06-11 21:53:48 -04:00
parent fe412ebd84
commit c4fb18b3b4
4 changed files with 128 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#pragma once
#include <cstdint>
#include <string>
#include <phosg/JSON.hh>
namespace TeamSync {
struct Config {
bool enabled = false;
std::string source;
std::string source_region;
std::string source_ship;
std::string coordinator_url;
std::string shared_secret;
uint64_t request_timeout_usecs = 3000000;
bool relay_team_chat = false;
bool relay_team_points = false;
bool relay_team_actions = false;
};
void configure(const Config& cfg);
void configure_from_json(const phosg::JSON& json);
bool enabled();
bool relay_team_chat_enabled();
} // namespace TeamSync