![]() |
DDraceNetwork Documentation
|
#include <base/hash.h>#include <base/hash_ctxt.h>#include <base/log.h>#include <base/logger.h>#include <base/math.h>#include <base/system.h>#include <engine/external/json-parser/json.h>#include <engine/config.h>#include <engine/console.h>#include <engine/discord.h>#include <engine/editor.h>#include <engine/engine.h>#include <engine/favorites.h>#include <engine/graphics.h>#include <engine/input.h>#include <engine/keys.h>#include <engine/map.h>#include <engine/notifications.h>#include <engine/serverbrowser.h>#include <engine/sound.h>#include <engine/steam.h>#include <engine/storage.h>#include <engine/textrender.h>#include <engine/shared/assertion_logger.h>#include <engine/shared/compression.h>#include <engine/shared/config.h>#include <engine/shared/demo.h>#include <engine/shared/fifo.h>#include <engine/shared/filecollection.h>#include <engine/shared/http.h>#include <engine/shared/masterserver.h>#include <engine/shared/network.h>#include <engine/shared/packer.h>#include <engine/shared/protocol.h>#include <engine/shared/protocol7.h>#include <engine/shared/protocol_ex.h>#include <engine/shared/protocolglue.h>#include <engine/shared/rust_version.h>#include <engine/shared/snapshot.h>#include <engine/shared/uuid_manager.h>#include <generated/protocol.h>#include <generated/protocol7.h>#include <generated/protocolglue.h>#include <game/localization.h>#include <game/version.h>#include "client.h"#include "demoedit.h"#include "friends.h"#include "serverbrowser.h"#include "video.h"#include "SDL.h"#include <chrono>#include <limits>#include <stack>#include <thread>#include <tuple>#include <engine/shared/config_variables.h>Macros | |
| #define | GET_STRING(array) str_copy(array, Up.GetString(CUnpacker::SANITIZE_CC | CUnpacker::SKIP_START_WHITESPACES), sizeof(array)) |
| #define | GET_INT(integer) (integer) = str_toint(Up.GetString()) |
| #define | DDNET_CHECKSUM_SALT |
| #define | CHECKSUM_RECORD(Flags) (((Flags)&CFGFLAG_CLIENT) == 0 || ((Flags)&CFGFLAG_INSENSITIVE) != 0) |
| #define | MACRO_CONFIG_INT(Name, ScriptName, Def, Min, Max, Flags, Desc) |
| #define | MACRO_CONFIG_COL(Name, ScriptName, Def, Flags, Desc) |
| #define | MACRO_CONFIG_STR(Name, ScriptName, Len, Def, Flags, Desc) |
Typedefs | |
| typedef std::tuple< int, int, int > | TVersion |
Functions | |
| static bool | RepackMsg (const CMsgPacker *pMsg, CPacker &Packer, bool Sixup) |
| static void | GenerateTimeoutCode (char *pBuffer, unsigned Size, char *pSeed, const NETADDR *pAddrs, int NumAddrs, bool Dummy) |
| static void | FormatMapDownloadFilename (const char *pName, const SHA256_DIGEST *pSha256, int Crc, bool Temp, char *pBuffer, int BufferSize) |
| static int | SavedServerInfoType (int Type) |
| static CServerCapabilities | GetServerCapabilities (int Version, int Flags, bool Sixup) |
| static TVersion | ToVersion (char *pStr) |
| static CClient * | CreateClient () |
| static bool | UnknownArgumentCallback (const char *pCommand, void *pUser) |
| static bool | SaveUnknownCommandCallback (const char *pCommand, void *pUser) |
| int | main (int argc, const char **argv) |
Variables | |
| static constexpr ColorRGBA | gs_ClientNetworkPrintColor {0.7f, 1, 0.7f, 1.0f} |
| static constexpr ColorRGBA | gs_ClientNetworkErrPrintColor {1.0f, 0.25f, 0.25f, 1.0f} |
| static const TVersion | gs_InvalidVersion = std::make_tuple(-1, -1, -1) |
| #define CHECKSUM_RECORD | ( | Flags | ) | (((Flags)&CFGFLAG_CLIENT) == 0 || ((Flags)&CFGFLAG_INSENSITIVE) != 0) |
| #define DDNET_CHECKSUM_SALT |
| #define GET_STRING | ( | array | ) | str_copy(array, Up.GetString(CUnpacker::SANITIZE_CC | CUnpacker::SKIP_START_WHITESPACES), sizeof(array)) |
| #define MACRO_CONFIG_COL | ( | Name, | |
| ScriptName, | |||
| Def, | |||
| Flags, | |||
| Desc | |||
| ) |
| #define MACRO_CONFIG_INT | ( | Name, | |
| ScriptName, | |||
| Def, | |||
| Min, | |||
| Max, | |||
| Flags, | |||
| Desc | |||
| ) |
| #define MACRO_CONFIG_STR | ( | Name, | |
| ScriptName, | |||
| Len, | |||
| Def, | |||
| Flags, | |||
| Desc | |||
| ) |
|
static |
|
static |
|
static |