Clean up network.cpp and update some old docu about protocol format.

This commit is contained in:
joris 2013-04-06 19:20:54 +02:00
parent 64b51308a0
commit 346339d536
2 changed files with 356 additions and 384 deletions
src

View file

@ -336,6 +336,13 @@ public:
void Deserialize(const unsigned char *p);
static size_t Size() { return 2 + 2 + 2 + 2; }
bool operator == (const CNetworkCommand &rhs) const
{
return Unit == rhs.Unit && X == rhs.X && Y == rhs.Y && Dest == rhs.Dest;
}
bool operator != (const CNetworkCommand &rhs) const { return !(*this == rhs); }
public:
uint16_t Unit; /// Command for unit
uint16_t X; /// Map position X
uint16_t Y; /// Map position Y

File diff suppressed because it is too large Load diff