VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
packets
diguyActionRecordP.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2013 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
#pragma once
6
10
11
#include <
vlpi/netStructs.h
>
12
#include <
vl/packets/standardVariableRecordP.h
>
13
14
// DIGuy Action Attribute Record
15
typedef
struct
DtNetDiGuyActionRecord
:
public
DtNetStandardVariableRecord
16
{
17
bool
operator==
(
const
DtNetDiGuyActionRecord
& rhs)
const
18
{
19
return
(
myRecordType
== rhs.
myRecordType
)
20
&& (
myRecordLength
== rhs.
myRecordLength
)
21
&& (
mySpeed
== rhs.
mySpeed
)
22
&& (
myIsPaused
== rhs.
myIsPaused
)
23
&& strcmp((
char
*)
myAction
, (
char
*)rhs.
myAction
);
24
}
25
bool
operator!=
(
const
DtNetDiGuyActionRecord
& rhs)
const
26
{
27
return
!
operator==
(rhs);
28
}
29
30
DtNetU16
myIsPaused
;
31
DtNetU16
myUsePositioningFlag
;
32
DtNetFloat32
mySpeed
;
33
DtNetFloat32
myOffsetX
;
34
DtNetFloat32
myOffsetY
;
35
DtNetFloat32
myOffsetZ
;
36
// Action is a string value that will require padding to 8-byte boundary
37
// Action is variable size. Needs to be at the end of net struct.
38
DtNetU8
myAction
[1];
39
40
}
DtNetDiGuyActionRecord
;
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)