XPMP2
X-Plane multiplayer library 2 - using instancing
Public Member Functions | Public Attributes | List of all members
XPMP2::RmtDataAcAnimTy Class Reference

Animation dataRef requires a special queue data type as each msg element is already of variable length. More...

#include <Remote.h>

+ Inheritance diagram for XPMP2::RmtDataAcAnimTy:

Public Member Functions

 RmtDataAcAnimTy (XPMPPlaneID _id)
 Default constructor only sets message type and id, makes sure data is initialized. More...
 
void add (DR_VALS idx, float f)
 Add a pair of animation type and value to the structure. More...
 
- Public Member Functions inherited from XPMP2::RmtDataBaseTy
 RmtDataBaseTy (RemoteMsgTy _ty)
 Constructor just set the message type. More...
 
virtual ~RmtDataBaseTy ()
 Virtual destructor makes sure correct deletion of derived class' objects even through (smart) pointers to this base class. More...
 

Public Attributes

union {
RemoteAcAnimTy data
 The animation dataRef values element. More...
 
char bufSize [RemoteAcAnimTy::msgSize(V_COUNT)]
 a declaration that only makes sure that enough memory is reserved so that XPMP2::RmtDataAcAnimTy::data::v can fill up to max More...
 
}; 
 
- Public Attributes inherited from XPMP2::RmtDataBaseTy
RemoteMsgTy msgTy
 which message to send? More...
 

Detailed Description

Animation dataRef requires a special queue data type as each msg element is already of variable length.

This queue structure provides for the maximum possible length. As it is copied directly into the network message it requires to be packed like a network message is with 1-byte alignment

Constructor & Destructor Documentation

◆ RmtDataAcAnimTy()

XPMP2::RmtDataAcAnimTy::RmtDataAcAnimTy ( XPMPPlaneID  _id)
inline

Default constructor only sets message type and id, makes sure data is initialized.

Member Function Documentation

◆ add()

void XPMP2::RmtDataAcAnimTy::add ( DR_VALS  idx,
float  f 
)

Add a pair of animation type and value to the structure.

Member Data Documentation

◆ 

union { ... }

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