XPMP2
X-Plane multiplayer library 2 - using instancing
XPMP2::RmtAcCacheTy Struct Reference

Holds a copy of some aircraft data as was sent out last. More...

#include <Remote.h>

Public Member Functions

 RmtAcCacheTy (const Aircraft &ac, double _lat, double _lon, double _alt_ft)
 Constructor copies relevant values from the passed-in aircraft.
 
void UpdateFrom (const Aircraft &ac, double _lat, double _lon, double _alt_ft)
 Updates current values from given aircraft.
 

Public Attributes

const unsigned fullUpdGrp
 full update group, with which planes are distributed to load balance sending XPMP2::RMT_MSG_AC_DETAILED messages
 
float ts
 timestamp this position was valid (XP network time)
 
double lat
 degree latitude
 
double lon
 degree longitude
 
double alt_ft
 feet altitude
 
XPLMDrawInfo_t drawInfo
 position and orientation last sent
 
std::vector< float > v
 dataRef values
 
bool bValid: 1
 is this object valid? (Will be reset in case of exceptions)
 
bool bVisible: 1
 Shall this plane be drawn at the moment?
 
bool bRender: 1
 Shall the CSL model be drawn in 3D world?
 
const CSLModelpCSLMdl
 the CSL model in use
 

Detailed Description

Holds a copy of some aircraft data as was sent out last.

Constructor & Destructor Documentation

◆ RmtAcCacheTy()

XPMP2::RmtAcCacheTy::RmtAcCacheTy ( const Aircraft & ac,
double _lat,
double _lon,
double _alt_ft )

Constructor copies relevant values from the passed-in aircraft.

Member Function Documentation

◆ UpdateFrom()

void XPMP2::RmtAcCacheTy::UpdateFrom ( const Aircraft & ac,
double _lat,
double _lon,
double _alt_ft )

Updates current values from given aircraft.

Member Data Documentation

◆ alt_ft

double XPMP2::RmtAcCacheTy::alt_ft

feet altitude

◆ bRender

bool XPMP2::RmtAcCacheTy::bRender

Shall the CSL model be drawn in 3D world?

◆ bValid

bool XPMP2::RmtAcCacheTy::bValid

is this object valid? (Will be reset in case of exceptions)

◆ bVisible

bool XPMP2::RmtAcCacheTy::bVisible

Shall this plane be drawn at the moment?

◆ drawInfo

XPLMDrawInfo_t XPMP2::RmtAcCacheTy::drawInfo

position and orientation last sent

◆ fullUpdGrp

const unsigned XPMP2::RmtAcCacheTy::fullUpdGrp

full update group, with which planes are distributed to load balance sending XPMP2::RMT_MSG_AC_DETAILED messages

◆ lat

double XPMP2::RmtAcCacheTy::lat

degree latitude

◆ lon

double XPMP2::RmtAcCacheTy::lon

degree longitude

◆ pCSLMdl

const CSLModel* XPMP2::RmtAcCacheTy::pCSLMdl

the CSL model in use

◆ ts

float XPMP2::RmtAcCacheTy::ts

timestamp this position was valid (XP network time)

◆ v

std::vector<float> XPMP2::RmtAcCacheTy::v

dataRef values


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