Skip to content

EntityTypeEditor

huggins edited this page May 10, 2023 · 1 revision

Entity Type Editor

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

Includes

Back to Top


Members

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.

Back to Top


Constructors

Name Description
EntityTypeEditor() Default constructor

Functions

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.

Back to Top


Details

Category

byte Category

This field shall specify the main category that describes the entity. The enumerations of category depend upon both the Kind and Domain.

Back to Top


Country

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.

Back to Top


DELIMITER_PERIOD

public const string DELIMITER_PERIOD = "."

Constant field that contains a the "." character.

Back to Top


Domain

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.

Back to Top


EntityKind

byte EntityKind

This field shall identify the Kind of Entity.

Back to Top


Extra

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.

Back to Top


Specific

byte Specific

This field shall specify specific information about an entity based upon the subcategory field to which it belongs.

Back to Top


Subcategory

byte Subcategory

This field shall specify a particular subcategory to which the entity belongs based on the category and the country.

Back to Top


EntityTypeEditor

EntityTypeEditor()

Default constructor

Back to Top


FromEntityType

public void fromEntityType
(
    EntityType EntityTypeIn
)

Converts the DIS Entity Type to an EntityTypeEditor.

Parameter Description
EntityTypeIn The DIS Entity Type to convert.

Back to Top


ToEntityType

public EntityType toEntityType()

Converts the EntityTypeEditor to a DIS Entity Type.

Returns
The DIS Entity Type representation of the Entity Type Editor.

Back to Top


ToString

public override string ToString()

Converts the EntityTypeEditor to a string.

Returns
The string representation of the Entity Type Editor.

Back to Top