DDraceNetwork Docs
demo.cpp File Reference
#include <base/math.h>
#include <base/system.h>
#include <engine/console.h>
#include <engine/storage.h>
#include <engine/shared/config.h>
#include <engine/shared/video.h>
#include "compression.h"
#include "demo.h"
#include "network.h"
#include "snapshot.h"
Include dependency graph for demo.cpp:

Classes

class  CDemoRecordingListener
 

Enumerations

enum  {
  CHUNKTYPEFLAG_TICKMARKER = 0x80 , CHUNKTICKFLAG_KEYFRAME = 0x40 , CHUNKTICKFLAG_TICK_COMPRESSED = 0x20 , CHUNKMASK_TICK = 0x1f ,
  CHUNKMASK_TICK_LEGACY = 0x3f , CHUNKMASK_TYPE = 0x60 , CHUNKMASK_SIZE = 0x1f , CHUNKTYPE_SNAPSHOT = 1 ,
  CHUNKTYPE_MESSAGE = 2 , CHUNKTYPE_DELTA = 3
}
 

Variables

const double g_aSpeeds [g_DemoSpeeds] = {0.1, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 2.0, 3.0, 4.0, 6.0, 8.0, 12.0, 16.0, 20.0, 24.0, 28.0, 32.0, 40.0, 48.0, 56.0, 64.0}
 
const CUuid SHA256_EXTENSION
 
static const unsigned char gs_CurVersion = 6
 
static const unsigned char gs_OldVersion = 3
 
static const unsigned char gs_Sha256Version = 6
 
static const unsigned char gs_VersionTickCompression = 5
 
static const ColorRGBA gs_DemoPrintColor {0.75f, 0.7f, 0.7f, 1.0f}
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CHUNKTYPEFLAG_TICKMARKER 
CHUNKTICKFLAG_KEYFRAME 
CHUNKTICKFLAG_TICK_COMPRESSED 
CHUNKMASK_TICK 
CHUNKMASK_TICK_LEGACY 
CHUNKMASK_TYPE 
CHUNKMASK_SIZE 
CHUNKTYPE_SNAPSHOT 
CHUNKTYPE_MESSAGE 
CHUNKTYPE_DELTA 

Variable Documentation

◆ g_aSpeeds

const double g_aSpeeds[g_DemoSpeeds] = {0.1, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 2.0, 3.0, 4.0, 6.0, 8.0, 12.0, 16.0, 20.0, 24.0, 28.0, 32.0, 40.0, 48.0, 56.0, 64.0}

◆ gs_CurVersion

const unsigned char gs_CurVersion = 6
static

◆ gs_DemoPrintColor

const ColorRGBA gs_DemoPrintColor {0.75f, 0.7f, 0.7f, 1.0f}
static

◆ gs_OldVersion

const unsigned char gs_OldVersion = 3
static

◆ gs_Sha256Version

const unsigned char gs_Sha256Version = 6
static

◆ gs_VersionTickCompression

const unsigned char gs_VersionTickCompression = 5
static

◆ SHA256_EXTENSION

const CUuid SHA256_EXTENSION
Initial value:
=
{{0x6b, 0xe6, 0xda, 0x4a, 0xce, 0xbd, 0x38, 0x0c,
0x9b, 0x5b, 0x12, 0x89, 0xc8, 0x42, 0xd7, 0x80}}