Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SortVersion() [2/2]

System.Globalization.SortVersion.SortVersion ( int nlsVersion,
int effectiveId,
Guid customVersion )
inlinepackage

Definition at line 24 of file SortVersion.cs.

25 {
26 m_NlsVersion = nlsVersion;
27 if (customVersion == Guid.Empty)
28 {
29 byte h = (byte)(effectiveId >> 24);
30 byte i = (byte)((effectiveId & 0xFF0000) >> 16);
31 byte j = (byte)((effectiveId & 0xFF00) >> 8);
32 byte k = (byte)((uint)effectiveId & 0xFFu);
33 customVersion = new Guid(0, 0, 0, 0, 0, 0, 0, h, i, j, k);
34 }
35 m_SortId = customVersion;
36 }

References System.Guid.Empty, System.Globalization.SortVersion.m_NlsVersion, and System.Globalization.SortVersion.m_SortId.