OpenClonk
C4Network2Res.cpp File Reference
#include "C4Include.h"
#include "network/C4Network2Res.h"
#include "c4group/C4Components.h"
#include "c4group/C4Group.h"
#include "control/C4GameControl.h"
#include "lib/C4Random.h"
#include "game/C4Application.h"
#include <sys/types.h>
#include <sys/stat.h>
Include dependency graph for C4Network2Res.cpp:

Go to the source code of this file.

Classes

class  DirSizeHelper
 

Macros

#define C4NET2RES_DEBUG_LOG
 

Functions

template<class T >
const T & GetPkt (const C4PacketBase *pPacket)
 

Macro Definition Documentation

◆ C4NET2RES_DEBUG_LOG

#define C4NET2RES_DEBUG_LOG

Definition at line 38 of file C4Network2Res.cpp.

Function Documentation

◆ GetPkt()

template<class T >
const T& GetPkt ( const C4PacketBase pPacket)

Definition at line 1504 of file C4Network2Res.cpp.

1504  {
1505  // Wish we had templated lambdas yet
1506  assert(pPacket);
1507  return static_cast<const T&>(*pPacket);
1508 }