XPMP2
X-Plane multiplayer library 2 - using instancing
|
Animation dataRef requires a special queue data type as each msg element is already of variable length. More...
#include <Remote.h>
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... | |
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
|
inline |
Default constructor only sets message type and id, makes sure data
is initialized.
void XPMP2::RmtDataAcAnimTy::add | ( | DR_VALS | idx, |
float | f | ||
) |
Add a pair of animation type and value to the structure.
union { ... } |