UFO: Alien Invasion
Loading...
Searching...
No Matches
sv_init.cpp File Reference

Server initialisation stuff. More...

#include "server.h"
#include "sv_rma.h"
#include "../shared/parse.h"
#include "../shared/scopedmutex.h"
Include dependency graph for sv_init.cpp:

Go to the source code of this file.

Functions

static const char * SV_GetMapTitle (const char *asmTitle, const char *const mapname)
 Get the map title for a given map.
static void SV_DiscoveryCallback (struct datagram_socket *s, const char *buf, int len, struct sockaddr *from)
static void SV_InitGame (void)
 A brand new game has been started.
void SV_Map (bool day, const char *levelstring, const char *assembly, bool verbose)
 Change the server to a new map, taking all connected clients along with it.

Variables

serverInstanceStatic_t svs
serverInstanceGame_tsv

Detailed Description

Server initialisation stuff.

Definition in file sv_init.cpp.

Function Documentation

◆ SV_DiscoveryCallback()

void SV_DiscoveryCallback ( struct datagram_socket * s,
const char * buf,
int len,
struct sockaddr * from )
static
See also
CL_ServerListDiscoveryCallback

Definition at line 64 of file sv_init.cpp.

References len, and NET_DatagramSend().

Referenced by SV_InitGame().

◆ SV_GetMapTitle()

const char * SV_GetMapTitle ( const char * asmTitle,
const char *const mapname )
static

Get the map title for a given map.

Note
the title string must be translated client side
Returns
Never nullptr - mapname or maptitle (if defined in assembly)

Definition at line 43 of file sv_init.cpp.

References Com_Printf().

Referenced by SV_Map().

◆ SV_InitGame()

◆ SV_Map()

Variable Documentation

◆ sv

server data per game/map

Definition at line 36 of file sv_init.cpp.

Referenced by Com_SetServerState(), GameTest::SetUp(), SV_AbortEvents(), SV_AddEvent(), SV_AreaEdicts(), SV_CanActorStandHere(), SV_CheckSpawnSoldiers(), SV_CheckStartMatch(), SV_ClearWorld(), SV_ClipMoveToEntities(), SV_CreateWorldSector(), SV_EndEvents(), SV_ExecuteClientMessage(), SV_Frame(), SV_FreeTags(), SV_GetConfigString(), SV_GetEvent(), SV_GetEventEdict(), SV_GetInlineModelAABB(), SV_GetMapData(), SV_GetMapTiles(), SV_GetServerDataForEdict(), SV_GetServerState(), SV_GetVisibility(), SV_GridCalcPathing(), SV_GridFall(), SV_GridFindPath(), SV_GridIsOnMap(), SV_GridPosToVec(), SV_HullForEntity(), SV_Init(), SV_InitGameProgs(), SV_LinkEdict(), SV_LoadModelAABB(), SV_Map(), SV_NextMapcycle(), SV_PointContents(), SV_QueueEvent(), SV_QueueWriteByte(), SV_QueueWritePos(), SV_QueueWriteShort(), SV_QueueWriteString(), SV_ReadAngle(), SV_ReadByte(), SV_ReadChar(), SV_ReadData(), SV_ReadDir(), SV_ReadFormat(), SV_ReadGPos(), SV_ReadLong(), SV_ReadPos(), SV_ReadShort(), SV_ReadString(), SV_RecalcRouting(), SV_RunGameFrame(), SV_RunGameFrameThread(), SV_SendQueuedEvents(), SV_SetConfigString(), SV_SetInlineModelOrientation(), SV_SetModel(), SV_SetServerState(), SV_Shutdown(), SV_ShutdownGameProgs(), SV_Status_f(), SV_TagAlloc(), SV_TestLine(), SV_TestLineWithEnt(), SV_Trace(), SV_WriteAngle(), SV_WriteByte(), SV_WriteChar(), SV_WriteDir(), SV_WriteFormat(), SV_WriteGPos(), SV_WriteLong(), SV_WritePos(), SV_WriteShort(), SV_WriteString(), SVC_DirectConnect(), SVC_Info(), TEST_F(), TEST_F(), and TexinfoForBrushTexture().

◆ svs