-
Notifications
You must be signed in to change notification settings - Fork 16
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 |
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 Application
The Application ID.
Category: GRILL DIS|Structs
Range: [0, 65535]
int32 Entity
The Entity ID.
Category: GRILL DIS|Structs
Range: [0, 65535]
int32 Site
The 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. |
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() const
Conversion 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() const
Conversion of an Entity ID to a uint64.
Returns |
---|
The uint64 representation of this FEntityID. |
bool operator==
(
const FEntityID other
) const
Overloads 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
) const
Overloads 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
) const
Overloads 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
) const
Overloads 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
) const
Overloads 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
) const
Overloads 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. |