Exemple #1
0
    public void CalcNewLevelName()
    {
        List <string> names = CartoonJsonUtil.GetLevelJsonFileNamesWithoutEx();

        m_level_json_max_name_dict = new Dictionary <long, long>();

        foreach (string name in names)
        {
            long name_id = long.Parse(name);
            long key_id  = name_id / 1000;

            if (!m_level_json_max_name_dict.ContainsKey(key_id) || name_id > m_level_json_max_name_dict[key_id])
            {
                m_level_json_max_name_dict[key_id] = name_id;
            }
        }
    }
Exemple #2
0
 void Init()
 {
     m_names = CartoonJsonUtil.GetLevelJsonFileNamesWithoutEx();
 }