Пример #1
0
void NetStreamSender::_encode(NetStreamStorage & event, const vector<float> & value){
  event.writeInt(value.size());
  for(vector<float>::const_iterator i = value.begin(); i != value.end(); i++){
    event.writeFloat((*i));
  }
}
Пример #2
0
void NetStreamSender::_encode(NetStreamStorage & event, float value){
  event.writeFloat(value);
}