summaryrefslogtreecommitdiffstats
path: root/libksirtet/common/types.cpp
blob: e7876c766d5130bb0bdeede54137ba3b795f5945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "types.h"

LIBKSIRTET_EXPORT TQDataStream &operator <<(TQDataStream &s, const ClientPlayData &d)
  { s << d.height << d.gift << d.end; return s; }
LIBKSIRTET_EXPORT TQDataStream &operator >>(TQDataStream &s, ClientPlayData &d)
  { s >> d.height >> d.gift >> d.end; return s; }

LIBKSIRTET_EXPORT TQDataStream &operator <<(TQDataStream &s, const ServerPlayData &d)
  { s << d.prevHeight << d.nextHeight << d.gift; return s; }
LIBKSIRTET_EXPORT TQDataStream &operator >>(TQDataStream &s, ServerPlayData &d)
  { s >> d.prevHeight >> d.nextHeight >> d.gift; return s; }

LIBKSIRTET_EXPORT TQDataStream &operator <<(TQDataStream &s, const ServerInitData &d)
{ s << d.initLevel << d.seed << d.nextName << d.prevName << d.name; return s; }
LIBKSIRTET_EXPORT TQDataStream &operator >>(TQDataStream &s, ServerInitData &d)
{ s >> d.initLevel >> d.seed >> d.nextName >> d.prevName >> d.name; return s; }