Skip to content

WarfareFamilyPDU

huggins edited this page May 3, 2023 · 4 revisions

Warfare Family PDU

Struct container for all information that is contained inside of DIS Warefare Family PDUs.

struct FWarfareFamilyPDU
	: public FPDU

Includes

Back to Top


Members

Type Name Description
FEntityID FiringEntityID The ID of the firing entity.
FEntityID TargetEntityID The ID of the intended target if known.

Back to Top


Constructors

Name Description
FWarfareFamilyPDU() Default constructor

Destructors

Name Description
~FWarfareFamilyPDU() Default destructor

Functions

Return Name Description
SetupFromOpenDIS(DIS::WarfareFamilyPdu* WarfareFamilyPDUIn) Converts an OpenDIS WarfareFamilyPdu struct to an FWarfareFamilyPDU struct.
TArray<uint8> ToBytes() Conversion to an array of bytes. Allows for an FWarfareFamilyPDU struct to be sent out with a UDP send socket.
ToOpenDIS(DIS::WarfareFamilyPdu& WarfareFamilyPDUIn) Conversion to OpenDIS WarfareFamilyPdu struct

Back to Top


Details

FiringEntityID

FEntityID FiringEntityID

The ID of the firing entity.

Category: GRILL DIS|Structs|PDUs|WarfareFamily

Back to Top


TargetEntityID

FEntityID TargetEntityID

The ID of the intended target if known.

Category: GRILL DIS|Structs|PDUs|WarfareFamily

Back to Top


FWarfareFamilyPDU

FWarfareFamilyPDU() : FPDU()

Default constructor.

Back to Top


~FWarfareFamilyPDU

virtual ~FWarfareFamilyPDU()

Default destructor.

Back to Top


SetupFromOpenDIS

void SetupFromOpenDIS
(
	DIS::WarfareFamilyPdu* WarfareFamilyPDUIn
)

Converts an OpenDIS WarfareFamilyPdu struct to an FWarfareFamilyPDU struct.

Parameter Description
WarfareFamilyPDUIn The OpenDIS WarfareFamilyPdu struct to convert.

Back to Top


ToBytes

void ToOpenDIS
(
	DIS::WarfareFamilyPdu& WarfareFamilyPDUOut
)

Conversion to an array of bytes. Allows for an FWarfareFamilyPDU struct to be sent out with a UDP send socket.

Parameter Description
WarfareFamilyPDUOut The OpenDIS WarfareFamilyPdu struct representation of this FWarfareFamilyPDU.

Back to Top


ToOpenDIS

virtual TArray<uint8> ToBytes() override

Conversion to OpenDIS WarfareFamilyPdu struct

Returns
An array of bytes containing the information from this FWarfareFamilyPDU.

Back to Top


Clone this wiki locally