Exemple #1
0
    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);
    }
Exemple #2
0
 public static bool IsMapExisted(byte index, MapTheme theme)
 {
     return(stringMapMapping.ContainsValue(byte.Parse(theme.GetHashCode().ToString() + index.ToString())));
 }