mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
17
tests/test_sidc.py
Normal file
17
tests/test_sidc.py
Normal 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"
|
||||
Reference in New Issue
Block a user