public static Dictionary <int, string> GetCategoryMap(STRING_CATEGORY category)
    {
        Dictionary <int, string> categoryMap = new Dictionary <int, string>();

        if (!Singleton <StringTable> .IsValid())
        {
            return(categoryMap);
        }
        StringTable           i2           = Singleton <StringTable> .I;
        UIntKeyTable <string> uIntKeyTable = i2.stringKeyTable.Get(category.ToString());

        if (uIntKeyTable == null)
        {
            return(categoryMap);
        }
        string[] values = GetAllInCategory(category);
        int      i      = 0;

        uIntKeyTable.ForEachKey(delegate(uint key)
        {
            categoryMap.Add((int)key, values[i]);
            i++;
        });
        return(categoryMap);
    }
    public static int[] GetAllKeyInCategory(STRING_CATEGORY category)
    {
        List <int> keys = new List <int>();

        if (!Singleton <StringTable> .IsValid())
        {
            return(keys.ToArray());
        }
        StringTable           i            = Singleton <StringTable> .I;
        UIntKeyTable <string> uIntKeyTable = i.stringKeyTable.Get(category.ToString());

        if (uIntKeyTable == null)
        {
            return(keys.ToArray());
        }
        uIntKeyTable.ForEachKey(delegate(uint key)
        {
            keys.Add((int)key);
        });
        return(keys.ToArray());
    }