mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-10 19:35:01 +00:00
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