Defined in:The base class for objects that need to send snapshot data.
class SnapshotSender : public ListElement<SnapshotSender>
||Called when the Message Manager sends a snapshot.|
||Returns the snapshot period.|
||Sets the snapshot period.|
||Causes a snapshot to be sent as soon as possible.|
SnapshotSenderclass is the base class that objects should inherit from if they need to send snapshot data to client machines in a multiplayer game. Snapshots are sent at regular intervals by the Message Manager. When a snapshot is sent, the
SnapshotSender::SendSnapshotfunction is called for each snapshot sender that is currently registered. (A subclass of
SnapshotSendermust override this function.) A snapshot sender is registered by calling the
The Message Manager regularly schedules opportunities to send a snapshot at the interval set by the
MessageMgr::SetSnapshotIntervalfunction. A snapshot sender may send a snapshot at each opportunity, or it may send a snapshot only at each n-th opportunity, where n is a period set by the
SnapshotSender::SetSnapshotPeriodfunction. By default, the snapshot period is 1, meaning that a snapshot is sent at every opportunity scheduled by the Message Manager.
||Used internally by the Message Manager.|