mirror of
https://github.com/bdnugget/freeminer.git
synced 2026-11-07 06:57:27 +00:00
51 lines
1.4 KiB
C++
51 lines
1.4 KiB
C++
/*
|
|
serverlist.h
|
|
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
|
|
*/
|
|
|
|
/*
|
|
This file is part of Freeminer.
|
|
|
|
Freeminer is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Freeminer is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Freeminer. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "config.h"
|
|
#include "content/mods.h"
|
|
#include "json-forwards.h"
|
|
#include <iostream>
|
|
|
|
#include "network/fm_lan.h"
|
|
|
|
#pragma once
|
|
|
|
namespace ServerList
|
|
{
|
|
|
|
//fm:
|
|
extern std::string last_status;
|
|
extern lan_adv lan_adv_client;
|
|
void lan_get();
|
|
bool lan_fresh();
|
|
void addMultiProto(Json::Value &server, const u16 port);
|
|
|
|
enum AnnounceAction {AA_START, AA_UPDATE, AA_DELETE};
|
|
void sendAnnounce(AnnounceAction, u16 port,
|
|
const std::vector<std::string> &clients_names = std::vector<std::string>(),
|
|
double uptime = 0, u32 game_time = 0, float lag = 0,
|
|
const std::string &gameid = "", const std::string &mg_name = "",
|
|
const std::vector<ModSpec> &mods = std::vector<ModSpec>(),
|
|
bool dedicated = false);
|
|
|
|
} // namespace ServerList
|