mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
23 lines
415 B
C++
23 lines
415 B
C++
#ifndef _StringConverters_H
|
|
#define _StringConverters_H
|
|
|
|
#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
|