-
Notifications
You must be signed in to change notification settings - Fork 7
EntityTypeEditor
Used to allow DIS Entity Types to be shown in the Unity Inspector panel. Houses variables contained in a DIS Entity Type.
public class EntityTypeEditor| Access | Type | Name | Description | |
|---|---|---|---|---|
| Public | byte | category | This field shall specify the main category that describes the entity. The enumerations of category depend upon both the Kind and Domain. | |
| Public | ushort | country | This field shall specify the country to which the design of the entity is attributed. This field shall be represented by a 16-bit enumeration. | |
| Public | const | string | DELIMITER_PERIOD | Constant field that contains a the "." character. |
| Public | byte | domain | This field shall specify the domain in which the equipment operates except for munition entities. For Munition entities this field shall specify the domain of the target. | |
| Public | byte | entityKind | This field shall identify the Kind of Entity. | |
| Public | byte | extra | This field shall specify extra information required to describe a particular entity. The contents of this field shall depend on the type of entity represented. | |
| Public | byte | specific | This field shall specify specific information about an entity based upon the subcategory field to which it belongs. | |
| Public | byte | subcategory | This field shall specify a particular subcategory to which the entity belongs based on the category and the country. | |
| Public | bool | UseSpecific_Category | If the category should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used. | |
| Public | bool | UseSpecific_Country | If the country should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used. | |
| Public | bool | UseSpecific_Domain | If the domain should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used. | |
| Public | bool | UseSpecific_EntityKind | If the entity kind should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used. | |
| Public | bool | UseSpecific_Extra | If the extra should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used. | |
| Public | bool | UseSpecific_Specific | If the specific should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used. | |
| Public | bool | UseSpecific_Subcategory | If the subcategory should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used. |
| Name | Description |
|---|---|
| EntityTypeEditor() | Default constructor |
| EntityTypeEditor(EntityType EntityTypeIn) | Constructor that takes in the OpenDIS EntityType struct |
| Access | Return | Name | Description | |
|---|---|---|---|---|
| Public | EntityTypeEditor | DeepCopyEntityType() | Creates a copy of this EntityTypeEditor. | |
| Public | void | fromEntityType(EntityType EntityTypeIn) | Converts the DIS Entity Type to an EntityTypeEditor. | |
| Public | bool | EntityTypeFieldEqualTo(ushort lhs, ushort rhs, bool lhsUseSpecific, bool rhsUseSpecific) | Utilized for determining if an entity type field is equivalent to another. Takes wildcards into account. | |
| Public | bool | EntityTypeFieldGreaterThan(ushort lhs, ushort rhs, bool lhsUseSpecific, bool rhsUseSpecific) | Utilized for determining if an entity type field is greater than another. Takes wildcards into account. | |
| Public | bool | EntityTypeFieldLessThan(ushort lhs, ushort rhs, bool lhsUseSpecific, bool rhsUseSpecific) | Utilized for determining if an entity type field is less than another. Takes wildcards into account. | |
| Public | EntityTypeEditor | FillWildcards(EntityTypeEditor WildcardFiller) | Utilized for wildcard Entity Types. Replaces wildcard placeholders with actual values. | |
| Public | override | int | GetHashCode() | Converts an EntityTypeEditor to be usable as a hash. |
| Public | bool | HasWildcards() | Utilized for determining if an entity type has any wildcard values in it. | |
| Public | bool | Equals(EntityTypeEditor Other) | Checks if the given EntityTypeEditor is equal to this. | |
| Public | bool | LessThan(EntityTypeEditor Other) | Checks if the given EntityTypeEditor is less than this. | |
| Public | EntityType | toEntityType() | Converts the EntityTypeEditor to a DIS Entity Type. | |
| Public | override | string | ToString() | Converts the EntityTypeEditor to a string. |
| Return | Name | Description |
|---|---|---|
| bool | operator==(const EntityTypeEditor Other) | Overloads the == operator. Compares two Entity Types to see if they are equal. |
| bool | operator!=(const EntityTypeEditor Other) | Overloads the != operator. Compares two Entity Types to see if they are not equal. |
| bool | operator<(const EntityTypeEditor Other) | Overloads the < operator. Compares two Entity Types to see if this Entity Type is less than the passed Entity Type. |
| bool | operator>(const EntityTypeEditor Other) | Overloads the > operator. Compares two Entity Types to see if this Entity Type is greater than the passed Entity Type. |
| bool | operator<=(const EntityTypeEditor Other) | Overloads the <= operator. Compares two Entity Types to see if this Entity Type is less than or equal to the passed Entity Type. |
| bool | operator>=(const EntityTypeEditor Other) | Overloads the >= operator. Compares two Entity Types to see if this Entity Type is greater than or equal to the passed Entity Type. |
byte CategoryThis field shall specify the main category that describes the entity. The enumerations of category depend upon both the Kind and Domain.
ushort CountryThis field shall specify the country to which the design of the entity is attributed. This field shall be represented by a 16-bit enumeration.
public const string DELIMITER_PERIOD = "."Constant field that contains a the "." character.
byte DomainThis field shall specify the domain in which the equipment operates except for munition entities. For Munition entities this field shall specify the domain of the target.
byte EntityKindThis field shall identify the Kind of Entity.
byte ExtraThis field shall specify extra information required to describe a particular entity. The contents of this field shall depend on the type of entity represented.
byte SpecificThis field shall specify specific information about an entity based upon the subcategory field to which it belongs.
byte SubcategoryThis field shall specify a particular subcategory to which the entity belongs based on the category and the country.
bool UseSpecific_CategoryIf the category should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used.
bool UseSpecific_CountryIf the country should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used.
bool UseSpecific_DomainIf the domain should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used.
bool UseSpecific_EntityKindIf the entity kind should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used.
bool UseSpecific_ExtraIf the extra should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used.
bool UseSpecific_SpecificIf the specific should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used.
bool UseSpecific_SubcategoryIf the subcategory should be represented by a specific value or a wildcard. If field is true, a specific value is used. If field is false, a wildcard will be used.
EntityTypeEditor()Default constructor
EntityTypeEditor(
EntityType EntityTypeIn
)Constructor that takes in the OpenDIS EntityType struct.
| Parameter | Description |
|---|---|
| EntityType | The OpenDIS EntityType struct to convert to an EntityType struct. |
public EntityTypeEditor DeepCopyEntityType()Creates a copy of this EntityTypeEditor.
| Returns |
|---|
| The copy of this EntityTypeEditor. |
public void fromEntityType
(
EntityType EntityTypeIn
)Converts the DIS Entity Type to an EntityTypeEditor.
| Parameter | Description |
|---|---|
| EntityTypeIn | The DIS Entity Type to convert. |
bool EntityTypeFieldEqualTo(
ushort lhs,
ushort rhs,
bool lhsUseSpecific,
bool rhsUseSpecific
)Utilized for determining if an entity type field is equivalent to another. Takes wildcards into account.
| Parameter | Description |
|---|---|
| lhs | The entity type field to act as the left hand side in the comparison. |
| rhs | The entity type field to act as the right hand side in the comparison. |
| lhsUseSpecific | Whether the left hand side field is acting as a specific value or a wildcard. |
| rhsUseSpecific | Whether the right hand side field is acting as a specific value or a wildcard. |
| Returns |
|---|
| A boolean specifying whether or not the lhs is equal to the rhs. |
bool EntityTypeFieldGreaterThan(
ushort lhs,
ushort rhs,
bool lhsUseSpecific,
bool rhsUseSpecific
)Utilized for determining if an entity type field is greater than another. Takes wildcards into account.
| Parameter | Description |
|---|---|
| lhs | The entity type field to act as the left hand side in the comparison. |
| rhs | The entity type field to act as the right hand side in the comparison. |
| lhsUseSpecific | Whether the left hand side field is acting as a specific value or a wildcard. |
| rhsUseSpecific | Whether the right hand side field is acting as a specific value or a wildcard. |
| Returns |
|---|
| A boolean specifying whether or not the lhs is greater than the rhs. |
bool EntityTypeFieldLessThan(
ushort lhs,
ushort rhs,
bool lhsUseSpecific,
bool rhsUseSpecific
)Utilized for determining if an entity type field is less than another. Takes wildcards into account.
| Parameter | Description |
|---|---|
| lhs | The entity type field to act as the left hand side in the comparison. |
| rhs | The entity type field to act as the right hand side in the comparison. |
| lhsUseSpecific | Whether the left hand side field is acting as a specific value or a wildcard. |
| rhsUseSpecific | Whether the right hand side field is acting as a specific value or a wildcard. |
| Returns |
|---|
| A boolean specifying whether or not the lhs is less than the rhs. |
public EntityTypeEditor FillWildcards(
EntityTypeEditor WildcardFiller
)Utilized for wildcard Entity Types. Replaces wildcard placeholders with actual values.
| Parameter | Description |
|---|---|
| WildcardFiller | The EntityTypeEditor to use to replace the wildcard placeholders. |
| Returns |
|---|
| An EntityTypeEditor without and wildcard placeholders. |
public override int GetHashCode()Converts an Entity Type to be usable as a hash
| Returns |
|---|
| The int hash of this EntityTypeEditor. |
public bool HasWildcards()Utilized for determining if an entity type has any wildcard values in it.
| Returns |
|---|
| A boolean specifying whether or not the entity type has any wildcards values in it. |
public bool Equals(
EntityTypeEditor Other
)Checks if the given EntityTypeEditor is equal to this.
| Parameter | Description |
|---|---|
| Other | The EntityTypeEditor to check for equivalence. |
| Returns |
|---|
| Whether or not the given EntityTypeEditor is equal to this. |
public bool LessThan(
EntityTypeEditor Other
)Checks if this is less than the given EntityTypeEditor.
| Parameter | Description |
|---|---|
| Other | The EntityTypeEditor to check. |
| Returns |
|---|
| Whether or not this is less than the given EntityTypeEditor. |
public EntityType toEntityType()Converts the EntityTypeEditor to a DIS Entity Type.
| Returns |
|---|
| The DIS Entity Type representation of the Entity Type Editor. |
public override string ToString()Converts the EntityTypeEditor to a string.
| Returns |
|---|
| The string representation of the Entity Type Editor. |
public static bool operator ==
(
EntityTypeEditor lhs,
EntityTypeEditor rhs
)Overloads the == operator. Compares two Entity Types to see if they are equal.
| Parameter | Description |
|---|---|
| lhs | The EntityTypeEditor to have on the left hand side of the comparison. |
| rhs | The EntityTypeEditor to have on the right hand side of the comparison. |
| Returns |
|---|
| Whether or not the two passed EntityTypeEditors are equivalent. |
public static bool operator !=
(
EntityTypeEditor lhs,
EntityTypeEditor rhs
)Overloads the != operator. Compares two Entity Types to see if they are not equal.
| Parameter | Description |
|---|---|
| lhs | The EntityTypeEditor to have on the left hand side of the comparison. |
| rhs | The EntityTypeEditor to have on the right hand side of the comparison. |
| Returns |
|---|
| Whether or not the two passed EntityTypeEditors are not equivalent. |
public static bool operator <
(
EntityTypeEditor lhs,
EntityTypeEditor rhs
)Overloads the < operator. Compares two Entity Types to see if this Entity Type is less than the passed Entity Type.
| Parameter | Description |
|---|---|
| lhs | The EntityTypeEditor to have on the left hand side of the comparison. |
| rhs | The EntityTypeEditor to have on the right hand side of the comparison. |
| Returns |
|---|
| Whether or not the lhs EntityTypeEditor is less than the rhs EntityTypeEditor. |
public static bool operator >
(
EntityTypeEditor lhs,
EntityTypeEditor rhs
)Overloads the > operator. Compares two Entity Types to see if this Entity Type is greater than the passed Entity Type.
| Parameter | Description |
|---|---|
| lhs | The EntityTypeEditor to have on the left hand side of the comparison. |
| rhs | The EntityTypeEditor to have on the right hand side of the comparison. |
| Returns |
|---|
| Whether or not the lhs EntityTypeEditor is greater than the rhs EntityTypeEditor. |
public static bool operator <=
(
EntityTypeEditor lhs,
EntityTypeEditor rhs
)Overloads the <= operator. Compares two Entity Types to see if this Entity Type is less than or equal to the passed Entity Type.
| Parameter | Description |
|---|---|
| lhs | The EntityTypeEditor to have on the left hand side of the comparison. |
| rhs | The EntityTypeEditor to have on the right hand side of the comparison. |
| Returns |
|---|
| Whether or not the lhs EntityTypeEditor is less than or equal to the rhs EntityTypeEditor. |
public static bool operator >=
(
EntityTypeEditor lhs,
EntityTypeEditor rhs
)Overloads the >= operator. Compares two Entity Types to see if this Entity Type is greater than or equal to the passed Entity Type.
| Parameter | Description |
|---|---|
| lhs | The EntityTypeEditor to have on the left hand side of the comparison. |
| rhs | The EntityTypeEditor to have on the right hand side of the comparison. |
| Returns |
|---|
| Whether or not the lhs EntityTypeEditor is greater than or equal to the rhs EntityTypeEditor. |