VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DtFireDetonationSender Class Reference

DtFireDetonationSender - Filters and delivers WeaponFire and MunitionDetonation interactions for one WebSocket connection.

Owns a DtFireDetonationEventSource that handles signal subscription and serialization. Applies the following filtering rules:

Fire: include if the attacker UUID is in session.knownObjects. When a fire event passes, its EventId is remembered so the matching detonation can follow.

Detonation: include if (a) the EventId matches a previously passed fire event OR (b) the target UUID is non-null and in session.knownObjects. When a detonation is included via rule (a), the EventId is removed from the tracking set.

mySentFireEventIds is private to this class and is not stored on DtWebLvcClientSession.

Inheritance diagram for DtFireDetonationSender:
Inheritance graph
[legend]

Public Member Functions

 DtFireDetonationSender ()
 
 ~DtFireDetonationSender () override=default
 
std::shared_ptr
< DtIInteractionEventSource > 
eventSource () const override
 
std::vector< Json::Value > drainFiltered (DtWebLvcClientSession &session) override
 
- Public Member Functions inherited from DtIInteractionTypeSender
virtual ~DtIInteractionTypeSender ()=default
 

Private Attributes

std::shared_ptr
< DtFireDetonationEventSource > 
myEventSource
 
std::set< std::string > mySentFireEventIds
 

Constructor & Destructor Documentation

DtFireDetonationSender::DtFireDetonationSender ( )
DtFireDetonationSender::~DtFireDetonationSender ( )
overridedefault

Member Function Documentation

std::shared_ptr<DtIInteractionEventSource> DtFireDetonationSender::eventSource ( ) const
inlineoverridevirtual

Returns the event source for registration with DtInteractionProcessor.

Reimplemented from DtIInteractionTypeSender.

References myEventSource.

std::vector<Json::Value> DtFireDetonationSender::drainFiltered ( DtWebLvcClientSession &  session)
overridevirtual

Drain events from the owned source, apply filtering against session, and return the JSON records that should be sent to this client.

Parameters
sessionPer-connection session. Implementors must acquire session.mutex before reading session.knownObjects.
Returns
Zero or more JSON interaction records.

Implements DtIInteractionTypeSender.

Member Data Documentation

std::shared_ptr<DtFireDetonationEventSource> DtFireDetonationSender::myEventSource
private

Referenced by eventSource().

std::set<std::string> DtFireDetonationSender::mySentFireEventIds
private

EventIds of fire events forwarded to this client whose matching detonation has not yet been seen.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)