@@ -11,18 +11,14 @@ class ghost_connection : public event_connection
public:
/// ghost_ref tracks an update sent in one packet for the ghost of one net_object.
///
/// When we are notified that a pack is sent/lost, this is used to determine what
/// updates need to be resent and so forth.
/// When we are notified that a pack is sent/lost, this is used to determine what updates need to be resent and so forth.
structghost_ref
{
uint32mask;///< The mask of bits that were updated in this packet
uint32ghost_info_flags;///< ghost_info::Flags bitset, determes if the ghost is in a
/// special processing mode (created/deleted)
ghost_info*ghost;///< The ghost information for the object on the connection that sent
/// the packet this ghost_ref is attached to
uint32ghost_info_flags;///< ghost_info::Flags bitset, determes if the ghost is in a special processing mode (created/deleted)
ghost_info*ghost;///< The ghost information for the object on the connection that sent the packet this ghost_ref is attached to
ghost_ref*next_ref;///< The next ghost updated in this packet
ghost_ref*update_chain;///< A pointer to the ghost_ref on the least previous packet that
/// updated this ghost, or NULL, if no prior packet updated this ghost
ghost_ref*update_chain;///< A pointer to the ghost_ref on the least previous packet that updated this ghost, or NULL, if no prior packet updated this ghost
};
/// Notify structure attached to each packet with information about the ghost updates in the packet
/// on_ghost_update is called on the ghost when a portion of its states have been updated from the host. For the initial update this will be called after on_ghost_add
virtualvoidon_ghost_update(uint32mask_bits)
{
}
/// get_net_index returns the index tag used to identify the server copy