public static void RegisterMap(string mapName, byte index, MapTheme mapTheme = MapTheme.Arena) { string code = "00" + mapTheme.GetHashCode().ToString() + index.ToString(); byte bCode = byte.Parse(code); stringMapMapping.Add(mapName, bCode); }
public static bool IsMapExisted(byte index, MapTheme theme) { return(stringMapMapping.ContainsValue(byte.Parse(theme.GetHashCode().ToString() + index.ToString()))); }