Milsymbol SIDC: Difference between revisions

From Maria GDK Wiki
Jump to navigation Jump to search
(Created page with "== Milsymbol SIDC Utility == The "SIDCUtils" class provides methods for updating the SIDC with standard identity, tactical status, amplifiers, headquarters/task force dummy. === Utility methods === <source lang="c#"> // Removes standard identity, tactcal status, amplifiers and headquarters/task force dummy from sidc, so that it can be used for lookup in GDK. string CleanSIDC(string sidc) // Check if sidc is APP6D sidc. bool IsSIDC(string sidc) // Update standard ident...")
 
No edit summary
Line 1: Line 1:
== Milsymbol SIDC Utility ==
== Milsymbol SIDC Utility ==
The "SIDCUtils" class provides methods for updating the SIDC with standard identity, tactical status, amplifiers, headquarters/task force dummy.
The "SIDCUtils" class in namespace "TPG.GDK.CommonCore.MilSym", provides methods for updating the SIDC with standard identity, tactical status, amplifiers, headquarters/task force dummy.


=== Utility methods ===
=== Utility methods ===

Revision as of 14:57, 24 April 2025

Milsymbol SIDC Utility

The "SIDCUtils" class in namespace "TPG.GDK.CommonCore.MilSym", provides methods for updating the SIDC with standard identity, tactical status, amplifiers, headquarters/task force dummy.

Utility methods

// Removes standard identity, tactcal status, amplifiers and headquarters/task force dummy from sidc, so that it can be used for lookup in GDK.
string CleanSIDC(string sidc)

// Check if sidc is APP6D sidc.
bool IsSIDC(string sidc)

// Update standard identity in sidc.
string SetStandardIdentity(string sidc, StandardIdentity standardIdentity)

// Update tactcal status in sidc.
string SetStatus(string sidc, TacticalStatus tacticalStatus)

/// Update amplifier in sidc.
string SetAmplifier(string sidc, Echelon echelon)

/// Update headquarters/task force dummy in sidc.
string SetHeadquartersTaskForceDummy(string sidc, HeadquartersTaskForceDummy headquartersTaskForceDummy)

Examples of Usage

These examples show how to use the utility methods.

// Update amplifier
var sidc = ...;
sidc = SIDCUtils.SetAmplifier(sidc, Echelon.Brigade);

// Update standard identity
var sidc = ...;
sidc = SIDCUtils.SetStandardIdentity(sidc, StandardIdentity.Friendly);

// Update tactical status
var sidc = ...;
sidc = SIDCUtils.SetStatus(sidc, TacticalStatus.Planned);

// Update headquarters/task force dummy
var sidc = ...;
sidc = SIDCUtils.SetHeadquartersTaskForceDummy(sidc, HeadquartersTaskForceDummy.Headquarters);

// Clean sidc
var sidc = ...;
sidc = SIDCUtils.CleanSIDC(sidc);

// Check if sidc is APP6D
var sidc = ...;
var isSidc = SIDCUtils.IsSIDC(sidc);