41 void DisconnectEveryone();
44 std::function<
void()> _beforeFrame;
45 std::function<
void()> _beforeServerStartup;
46 std::function<
void(
int64_t)> _beforeClientConnected;
47 std::function<
void(
int64_t)> _afterClientDisconnected;
The engine hooks, installed once for the whole process.
EngineHooks & operator=(const EngineHooks &)=delete
EngineHooks(const EngineHooks &)=delete
The loaded plugins and the engine events raised on them, one per process.
Holds the subscriptions an object makes and releases them together, newest first.
static std::string ReadFile(const std::filesystem::path &path)