Changeset 3b8adee in network-game for server


Ignore:
Timestamp:
Dec 26, 2012, 3:10:05 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
60776f2
Parents:
4c202e0
Message:

Added serialize and deserialize methods to Player and modified the server to use the serialize method when broadcasting user data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r4c202e0 r3b8adee  
    7474   for (it = vec.begin(); it != vec.end(); it++)
    7575   {
    76       strncpy(serverMsg.buffer, (char*)&*it, sizeof(Player));
     76      it->serialize(serverMsg.buffer);
    7777
    7878      for (it2 = vec.begin(); it2 != vec.end(); it2++)
Note: See TracChangeset for help on using the changeset viewer.