DDraceNetwork Docs
console.cpp File Reference
#include <base/lock.h>
#include <base/logger.h>
#include <base/math.h>
#include <base/system.h>
#include <game/generated/client_data.h>
#include <engine/console.h>
#include <engine/engine.h>
#include <engine/graphics.h>
#include <engine/keys.h>
#include <engine/shared/config.h>
#include <engine/shared/ringbuffer.h>
#include <engine/storage.h>
#include <engine/textrender.h>
#include <game/localization.h>
#include <game/version.h>
#include <game/client/gameclient.h>
#include <game/client/render.h>
#include <game/client/ui.h>
#include <iterator>
#include "console.h"
Include dependency graph for console.cpp:

Classes

class  CConsoleLogger
 
class  CArgumentCompletionEntry
 
struct  CCompletionOptionRenderInfo
 

Enumerations

enum class  EArgumentCompletionType { NONE , TUNE , SETTING , KEY }
 

Functions

static std::pair< EArgumentCompletionType, int > ArgumentCompletion (const char *pStr)
 
static int PossibleTunings (const char *pStr, IConsole::FPossibleCallback pfnCallback=IConsole::EmptyPossibleCommandCallback, void *pUser=nullptr)
 
static int PossibleKeys (const char *pStr, IInput *pInput, IConsole::FPossibleCallback pfnCallback=IConsole::EmptyPossibleCommandCallback, void *pUser=nullptr)
 
static void StrCopyUntilSpace (char *pDest, size_t DestSize, const char *pSrc)
 
static float ConsoleScaleFunc (float t)
 

Variables

static constexpr float FONT_SIZE = 10.0f
 
static constexpr float LINE_SPACING = 1.0f
 
static const CArgumentCompletionEntry gs_aArgumentCompletionEntries []
 

Enumeration Type Documentation

◆ EArgumentCompletionType

enum class EArgumentCompletionType
strong
Enumerator
NONE 
TUNE 
SETTING 
KEY 

Function Documentation

◆ ArgumentCompletion()

static std::pair< EArgumentCompletionType, int > ArgumentCompletion ( const char *  pStr)
static

◆ ConsoleScaleFunc()

static float ConsoleScaleFunc ( float  t)
static

◆ PossibleKeys()

static int PossibleKeys ( const char *  pStr,
IInput pInput,
IConsole::FPossibleCallback  pfnCallback = IConsole::EmptyPossibleCommandCallback,
void *  pUser = nullptr 
)
static

◆ PossibleTunings()

static int PossibleTunings ( const char *  pStr,
IConsole::FPossibleCallback  pfnCallback = IConsole::EmptyPossibleCommandCallback,
void *  pUser = nullptr 
)
static

◆ StrCopyUntilSpace()

static void StrCopyUntilSpace ( char *  pDest,
size_t  DestSize,
const char *  pSrc 
)
static

Variable Documentation

◆ FONT_SIZE

constexpr float FONT_SIZE = 10.0f
staticconstexpr

◆ gs_aArgumentCompletionEntries

◆ LINE_SPACING

constexpr float LINE_SPACING = 1.0f
staticconstexpr