-
Notifications
You must be signed in to change notification settings - Fork 20
EntityID
Container for Entity ID information. Each Entity in a DIS exercise shall be assigned an Entity ID unique to the exercise.
struct FEntityID| Type | Name | Description |
|---|---|---|
| int32 | Application | The Application ID. |
| int32 | Entity | The Entity ID. |
| int32 | Site | The Site ID. |
| Name | Description |
|---|---|
| FEntityID() | Default constructor |
| FEntityID(DIS::EntityID EntityID) | Constructor that takes in the OpenDIS EntityID struct |
| FEntityID(int32 SiteID, int32 ApplicationID, int32 EntityID) | Constructor that takes in site, application, and entity IDs |
| Return | Name | Description |
|---|---|---|
| uint64 | GetTypeHash(const FEntityID& other) | Converts an Entity ID to be usable as a hash. |
| DIS::EntityID | ToOpenDIS() | Conversion to OpenDIS EntityID struct |
| FString | ToString() | Conversion of an Entity ID to an FString. |
| uint64 | ToUInt64() | Conversion of an Entity ID to a uint64. |
| Return | Name | Description |
|---|---|---|
| bool | operator==(const FEntityID Other) | Overloads the == operator. Compares two Entity IDs to see if they are equal. |
| bool | operator!=(const FEntityID Other) | Overloads the != operator. Compares two Entity IDs to see if they are not equal. |
| bool | operator<(const FEntityID Other) | Overloads the < operator. Compares two Entity IDs to see if this Entity ID is less than the passed Entity ID. |
| bool | operator>(const FEntityID Other) | Overloads the > operator. Compares two Entity IDs to see if this Entity ID is greater than the passed Entity ID. |
| bool | operator<=(const FEntityID Other) | Overloads the <= operator. Compares two Entity IDs to see if this Entity ID is less than or equal to the passed Entity ID. |
| bool | operator>=(const FEntityID Other) | Overloads the >= operator. Compares two Entity IDs to see if this Entity ID is greater than or equal to the passed Entity ID. |
int32 ApplicationThe Application ID.
Category: GRILL DIS|Structs
Range: [0, 65535]
int32 EntityThe Entity ID.
Category: GRILL DIS|Structs
Range: [0, 65535]
int32 SiteThe Site ID.
Category: GRILL DIS|Structs
Range: [0, 65535]
FEntityID()Default constructor
FEntityID
(
DIS::EntityID EntityID
)Constructor that takes in the OpenDIS EntityID struct
| Parameter | Description |
|---|---|
| EntityID | The OpenDIS EntityID struct to convert to an FEntityID struct. |
FEntityID
(
int32 SiteID,
int32 ApplicationID,
int32 EntityID
)Constructor that takes in site, application, and entity IDs
| Parameter | Description |
|---|---|
| SiteID | The Site ID. |
| ApplicationID | The Application ID. |
| EntityID | The Entity ID. |
friend uint32 GetTypeHash
(
const FEntityID& other
)Converts an Entity ID to be usable as a hash
| Parameter | Description |
|---|---|
| other | The Entity ID to get the hash of. |
| Returns |
|---|
| The uint32 hash of the given FEntityID. |
DIS::EntityID ToOpenDIS() constConversion to OpenDIS EntityID struct.
| Returns |
|---|
| The OpenDIS EntityID struct representation of this FEntityID. |
FString ToString()Conversion of an Entity ID to an FString.
| Returns |
|---|
| The string representation of this FEntityID. |
uint64 ToUInt64() constConversion of an Entity ID to a uint64.
| Returns |
|---|
| The uint64 representation of this FEntityID. |
bool operator==
(
const FEntityID other
) constOverloads the == operator. Compares two Entity IDs to see if they are equal.
| Parameter | Description |
|---|---|
| other | The FEntityID struct to compare this FEntityID struct to. |
| Returns |
|---|
| Whether or not the two FEntityID structs are equivalent. |
bool operator!=
(
const FEntityID other
) constOverloads the != operator. Compares two Entity IDs to see if they are not equal.
| Parameter | Description |
|---|---|
| other | The FEntityID struct to compare this FEntityID struct to. |
| Returns |
|---|
| Whether or not the two FEntityID structs are not equivalent. |
bool operator<
(
const FEntityID other
) constOverloads the < operator. Compares two Entity IDs to see if this Entity ID is less than the passed Entity ID.
| Parameter | Description |
|---|---|
| other | The FEntityID struct to compare this FEntityID struct to. |
| Returns |
|---|
| Whether or not this FEntityID struct is less than the passed FEntityID. |
bool operator>
(
const FEntityID other
) constOverloads the > operator. Compares two Entity IDs to see if this Entity ID is greater than the passed Entity ID.
| Parameter | Description |
|---|---|
| other | The FEntityID struct to compare this FEntityID struct to. |
| Returns |
|---|
| Whether or not this FEntityID struct is greater than the passed FEntityID. |
bool operator<=
(
const FEntityID other
) constOverloads the <= operator. Compares two Entity IDs to see if this Entity ID is less than or equal to the passed Entity ID.
| Parameter | Description |
|---|---|
| other | The FEntityID struct to compare this FEntityID struct to. |
| Returns |
|---|
| Whether or not this FEntityID struct is less than or equal to the passed FEntityID. |
bool operator>=
(
const FEntityID other
) constOverloads the >= operator. Compares two Entity IDs to see if this Entity ID is greater than or equal to the passed Entity ID.
| Parameter | Description |
|---|---|
| other | The FEntityID struct to compare this FEntityID struct to. |
| Returns |
|---|
| Whether or not this FEntityID struct is greater than or equal to the passed FEntityID. |