-
Notifications
You must be signed in to change notification settings - Fork 5
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. |
Name | Description |
---|---|
EntityTypeEditor() | Default constructor |
Access | Return | Name | Description | |
---|---|---|---|---|
Public | void | fromEntityType(EntityType EntityTypeIn) | Converts the DIS Entity Type to an EntityTypeEditor. | |
Public | EntityType | toEntityType() | Converts the EntityTypeEditor to a DIS Entity Type. | |
Public | override | string | ToString() | Converts the EntityTypeEditor to a string. |
byte Category
This field shall specify the main category that describes the entity. The enumerations of category depend upon both the Kind and Domain.
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.
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.
byte EntityKind
This field shall identify the Kind of Entity.
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.
byte Specific
This field shall specify specific information about an entity based upon the subcategory field to which it belongs.
byte Subcategory
This field shall specify a particular subcategory to which the entity belongs based on the category and the country.
EntityTypeEditor()
Default constructor
public void fromEntityType
(
EntityType EntityTypeIn
)
Converts the DIS Entity Type to an EntityTypeEditor.
Parameter | Description |
---|---|
EntityTypeIn | The DIS Entity Type to convert. |
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. |