OctaCore/src/game/server.cc

76 lines
1.1 KiB
C++
Raw Normal View History

2020-04-16 20:28:40 +02:00
#include "game.hh"
2020-04-15 18:39:17 +02:00
namespace game
{
const char *gameident() { return "Tesseract"; }
}
namespace server
{
2020-04-25 20:43:35 +02:00
2020-04-15 18:39:17 +02:00
string smapname = "";
void serverinit()
{
smapname[0] = '\0';
}
int numclients(int exclude = -1, bool nospec = true, bool noai = true, bool priv = false)
{
2020-04-25 20:43:35 +02:00
return 0;
2020-04-15 18:39:17 +02:00
}
int spawntime(int type)
{
2020-04-25 20:43:35 +02:00
return 0;
2020-04-15 18:39:17 +02:00
}
bool delayspawn(int type)
{
2020-04-25 20:43:35 +02:00
return false;
2020-04-15 18:39:17 +02:00
}
bool ispaused() { return false; }
2020-04-15 18:39:17 +02:00
int scaletime(int t) { return t*100; }
2020-04-15 18:39:17 +02:00
void serverupdate()
{
}
void noclients()
{
}
void localconnect(int n)
{
}
void localdisconnect(int n)
{
}
int clientconnect(int n, uint ip)
{
return DISC_LOCAL;
2020-04-15 18:39:17 +02:00
}
void clientdisconnect(int n)
{
}
int reserveclients() { return 3; }
bool allowbroadcast(int n)
{
2020-04-25 20:43:35 +02:00
return true;
2020-04-15 18:39:17 +02:00
}
int laninfoport() { return TESSERACT_LANINFO_PORT; }
int serverport() { return TESSERACT_SERVER_PORT; }
int numchannels() { return 3; }
2020-04-25 05:05:29 +02:00
int protocolversion() { return 0; }
2020-04-15 18:39:17 +02:00
}