src/Network/Message.hh
changeset 434 a8ba81432ddd
parent 432 82b0f4e55a13
equal deleted inserted replaced
433:4ee797e09383 434:a8ba81432ddd
    17     public:
    17     public:
    18         /**
    18         /**
    19          * Create a message of the given type to be sent on the given object
    19          * Create a message of the given type to be sent on the given object
    20          */
    20          */
    21         NetworkMessage (NetworkObject &obj, NetworkMessageID msg_id);
    21         NetworkMessage (NetworkObject &obj, NetworkMessageID msg_id);
       
    22 
       
    23         /**
       
    24          * Write the given Object's NetworkObjectID (or 0, if the obj is NULL) to this p acket
       
    25          *
       
    26          * @param obj the NetworkObject* whose NetworkObjectID to write to the packet, or NULL to write zero
       
    27          */
       
    28         void write_object (const NetworkObject *obj);
    22 };
    29 };
    23 
    30 
    24 #endif /* NETWORK_MESSAGE_HH */
    31 #endif /* NETWORK_MESSAGE_HH */