XPMP2
X-Plane multiplayer library 2 - using instancing
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
XPMP2::RemoteAcAnimTy Struct Reference

A/C animation dataRef changes. More...

#include <XPMPRemote.h>

Classes

struct  DataRefValTy
 dataRef animation types and value More...
 

Public Member Functions

 RemoteAcAnimTy (XPMPPlaneID _id)
 Constructor. More...
 
size_t msgSize () const
 current message size More...
 

Static Public Member Functions

static constexpr size_t msgSize (std::uint8_t num)
 message size assuming num array elements More...
 

Public Attributes

std::uint32_t modeS_id = 0
 plane's unique id at the sender side (might differ remotely in case of duplicates) More...
 
std::uint8_t numVals = 0
 number of dataRef values in the following array More...
 
std::uint8_t filler = 0
 not yet used More...
 
struct XPMP2::RemoteAcAnimTy::DataRefValTy v [1]
 array of dataRef animation types and value More...
 

Detailed Description

A/C animation dataRef changes.

This structure has variable length depending on the number of actual dataRef values to carry. And several of these variable length structures are added into one variable length network message.

Note
Structure must stay aligned with XPMP2::RmtDataAcAnimTy

Class Documentation

◆ XPMP2::RemoteAcAnimTy::DataRefValTy

struct XPMP2::RemoteAcAnimTy::DataRefValTy

dataRef animation types and value

Class Members
DR_VALS idx index into XPMP2::Aircraft::v
uint8_t v dataRef animation value

Constructor & Destructor Documentation

◆ RemoteAcAnimTy()

XPMP2::RemoteAcAnimTy::RemoteAcAnimTy ( XPMPPlaneID  _id)
inline

Constructor.

Member Function Documentation

◆ msgSize() [1/2]

size_t XPMP2::RemoteAcAnimTy::msgSize ( ) const
inline

current message size

◆ msgSize() [2/2]

static constexpr size_t XPMP2::RemoteAcAnimTy::msgSize ( std::uint8_t  num)
inlinestaticconstexpr

message size assuming num array elements

Member Data Documentation

◆ filler

std::uint8_t XPMP2::RemoteAcAnimTy::filler = 0

not yet used

◆ modeS_id

std::uint32_t XPMP2::RemoteAcAnimTy::modeS_id = 0

plane's unique id at the sender side (might differ remotely in case of duplicates)

◆ numVals

std::uint8_t XPMP2::RemoteAcAnimTy::numVals = 0

number of dataRef values in the following array

◆ v

struct XPMP2::RemoteAcAnimTy::DataRefValTy XPMP2::RemoteAcAnimTy::v[1]

array of dataRef animation types and value


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