Skip to content

fix(dis7): restore EntityID alias and legacy flat field names - #91

Merged
leif81 merged 1 commit into
open-dis:masterfrom
ngjunsiang:fix/entityid-backcompat
Oct 19, 2026
Merged

leif81 merged 1 commit into
open-dis:masterfrom
ngjunsiang:fix/entityid-backcompat

Conversation

@ngjunsiang

@ngjunsiang ngjunsiang commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #88 (see the issue for background).

EntityStatePdu.entityID was retyped from the flat EntityID class to EntityIdentifier in #2/#80, which broke pre-existing code with no compatibility path. This restores compatibility:

  • EntityID is an alias of EntityIdentifier
  • the legacy flat field names siteID / applicationID / entityID are read/write properties delegating to simulationAddress.site / .application / entityNumber

The packet format is unchanged.

Also adds tests/test_EntityID_compat.py (4 tests); full suite passes (19).

@leif81
leif81 merged commit c720f4c into open-dis:master Oct 19, 2026
2 checks passed
@leif81

leif81 commented Oct 19, 2026

Copy link
Copy Markdown
Member

Thank-you @ngjunsiang !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EntityStatePDU: EntityID vs EntityIdentifier

2 participants