public void Init(STUMapHeader mapHeader, ulong key = default) { GUID = (teResourceGUID)key; Name = GetString(mapHeader.m_displayName); VariantName = GetString(mapHeader.m_1C706502); Description = GetString(mapHeader.m_389CB894); Description2 = GetString(mapHeader.m_ACB95597); MapGUID = mapHeader.m_map; State = mapHeader.m_A125818B; MapType = mapHeader.m_mapType; GameModes = Helper.JSON.FixArray(mapHeader.m_D608E9F3); }
public void Init(STUMapHeader mapHeader, ulong key = default) { GUID = (teResourceGUID)key; Name = GetString(mapHeader.m_displayName); VariantName = GetString(mapHeader.m_1C706502); Description = GetString(mapHeader.m_389CB894); Description2 = GetString(mapHeader.m_ACB95597); Subline = GetString(mapHeader.m_EBCFAD22); StateA = GetString(mapHeader.m_8EBADA44); StateB = GetString(mapHeader.m_5AFE2F61); MapGUID = mapHeader.m_map; State = mapHeader.m_A125818B; MapType = mapHeader.m_mapType; GameModes = mapHeader.m_D608E9F3?.Select(x => new GameMode(x).ToLite()).Where(x => x.GUID != 0); }