Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
serverlist.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#include "config.h"
6#include "content/mods.h"
7#include "json-forwards.h"
8#include <iostream>
9
10#pragma once
11
12// Note that client serverlist handling is all in Lua, this is only announcements now.
13
14namespace ServerList
15{
16#if USE_CURL
18void sendAnnounce(AnnounceAction, u16 port,
19 const std::vector<std::string> &clients_names = std::vector<std::string>(),
20 double uptime = 0, u32 game_time = 0, float lag = 0,
21 const std::string &gameid = "", const std::string &mg_name = "",
22 const std::vector<ModSpec> &mods = std::vector<ModSpec>(),
23 bool dedicated = false);
24#endif
25
26}
Definition serverlist.cpp:18
AnnounceAction
Definition serverlist.h:17
@ AA_START
Definition serverlist.h:17
@ AA_UPDATE
Definition serverlist.h:17
@ AA_DELETE
Definition serverlist.h:17
void sendAnnounce(AnnounceAction action, const u16 port, const std::vector< std::string > &clients_names, const double uptime, const u32 game_time, const float lag, const std::string &gameid, const std::string &mg_name, const std::vector< ModSpec > &mods, bool dedicated)
Definition serverlist.cpp:20