--- a/src/Network/Message.hh Mon Jan 26 23:39:08 2009 +0200
+++ b/src/Network/Message.hh Tue Jan 27 00:02:34 2009 +0200
@@ -19,6 +19,13 @@
* Create a message of the given type to be sent on the given object
*/
NetworkMessage (NetworkObject &obj, NetworkMessageID msg_id);
+
+ /**
+ * Write the given Object's NetworkObjectID (or 0, if the obj is NULL) to this p acket
+ *
+ * @param obj the NetworkObject* whose NetworkObjectID to write to the packet, or NULL to write zero
+ */
+ void write_object (const NetworkObject *obj);
};
#endif /* NETWORK_MESSAGE_HH */