void NetStreamSender::_encode(NetStreamStorage & event, int value){ event.writeInt(value); }
void NetStreamSender::_encode(NetStreamStorage & event, const vector<double> & value){ event.writeInt(value.size()); for(vector<double>::const_iterator i = value.begin(); i != value.end(); i++){ event.writeDouble((*i)); } }
void NetStreamSender::_encode(NetStreamStorage & event, const vector<GS_BOOL> & value){ event.writeInt(value.size()); for(vector<bool>::const_iterator i = value.begin(); i != value.end(); i++){ event.writeByte((*i)); } }