mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-24 20:46:54 +00:00
c32e6d5215
This was SVN commit r1285.
24 lines
412 B
C++
Executable File
24 lines
412 B
C++
Executable File
#ifndef _StringConverters_H
|
|
#define _StringConverters_H
|
|
|
|
#include "CStr.h"
|
|
#include "simulation/EntityHandles.h"
|
|
|
|
template <typename _T>
|
|
CStr NetMessageStringConvert(const _T &arg);
|
|
|
|
// String Converters
|
|
template <typename _T>
|
|
inline CStr NetMessageStringConvert(const _T &arg)
|
|
{
|
|
return CStr(arg);
|
|
}
|
|
|
|
template <>
|
|
inline CStr NetMessageStringConvert(const HEntity &arg)
|
|
{
|
|
return arg.operator CStr8();
|
|
}
|
|
|
|
#endif
|