forked from mirrors/0ad
Added the concept of diplomatic stance in CPlayer.
This was SVN commit r4259.
This commit is contained in:
@@ -16,6 +16,18 @@ void SetFromNetString(uint &val, const CStrW& string)
|
||||
val=string.ToUInt();
|
||||
}
|
||||
|
||||
template <>
|
||||
CStrW ToNetString(const int &val)
|
||||
{
|
||||
return CStrW(val);
|
||||
}
|
||||
|
||||
template <>
|
||||
void SetFromNetString(int &val, const CStrW& string)
|
||||
{
|
||||
val=string.ToInt();
|
||||
}
|
||||
|
||||
template <>
|
||||
CStrW ToNetString(const CStrW& data)
|
||||
{ return data; }
|
||||
|
||||
Reference in New Issue
Block a user