1
0
forked from 0ad/0ad
0ad/source/network/StringConverters.h
janwas b755ddefda remove all author/modified by tags.
make include guards consistent.

This was SVN commit r5040.
2007-05-07 16:33:24 +00:00

24 lines
443 B
C++

#ifndef INCLUDED_NETWORK_STRINGCONVERTERS
#define INCLUDED_NETWORK_STRINGCONVERTERS
#include "ps/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