Add basic implementation for APP-6 SIDCs.

These will be used in conjunction with
https://github.com/spatialillusions/milsymbol to simplify the
specification of unit type to the front-end.
This commit is contained in:
Dan Albert
2022-02-27 18:38:59 -08:00
parent 05f3f3636b
commit 41158543cf
2 changed files with 293 additions and 0 deletions

17
tests/test_sidc.py Normal file
View File

@@ -0,0 +1,17 @@
from game.sidc import (
LandInstallationEntity,
StandardIdentity,
Status,
SymbolIdentificationCode,
SymbolSet,
)
def test_sidc() -> None:
sidc = SymbolIdentificationCode(
standard_identity=StandardIdentity.FRIEND,
symbol_set=SymbolSet.LAND_INSTALLATIONS,
status=Status.PRESENT_DAMAGED,
entity=LandInstallationEntity.AIPORT_AIR_BASE,
)
assert str(sidc) == "10032030001213010000"