Skip to content

EntityIDEditor

huggins edited this page May 10, 2023 · 1 revision

Entity ID Editor

Used to allow DIS Entity IDs to be shown in the Unity Inspector panel. Houses variables contained in a DIS Entity ID.

public class EntityIDEditor

Includes

Back to Top


Members

Access Type Name Description
Public byte application The application ID.
Public const string DELIMITER_PERIOD Constant field that contains a the "." character.
Public byte entity The entity ID.
Public byte site The site ID.

Back to Top


Constructors

Name Description
EntityIDEditor() Default constructor

Functions

Access Return Name Description
Public void fromEntityID(EntityID EntityIDIn) Converts the DIS Entity ID to an EntityIDEditor.
Public EntityID toEntityID() Converts the EntityIDEditor to a DIS Entity ID.
Public override string ToString() Converts the EntityIDEditor to a string.

Back to Top


Details

Application

int32 Application

The Application ID.

Back to Top


DELIMITER_PERIOD

public const string DELIMITER_PERIOD = "."

Constant field that contains a the "." character.

Back to Top


Entity

int32 Entity

The Entity ID.

Back to Top


Site

int32 Site

The Site ID.

Back to Top


EntityIDEditor

EntityIDEditor()

Default constructor

Back to Top


FromEntityID

public void fromEntityID
(
    EntityID EntityIDIn
)

Converts the DIS Entity ID to an EntityIDEditor.

Parameter Description
EntityIDIn The DIS Entity ID to convert.

Back to Top


ToEntityID

public EntityID toEntityID()

Converts the EntityIDEditor to a DIS Entity ID.

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

Back to Top


ToString

public override string ToString()

Converts the EntityIDEditor to a string.

Returns
The string representation of the Entity ID Editor.

Back to Top