コード例 #1
0
        protected override Variant _formatConfig(Variant conf)
        {
            MonsterConfig.instance = this;
            bool flag = conf.ContainsKey("monsters");

            if (flag)
            {
                conf["monsters"] = GameTools.array2Map(conf["monsters"], "id", 1u);
            }
            return(conf);
        }
コード例 #2
0
        protected override Variant _formatConfig(Variant conf)
        {
            instance = this;

            if (conf.ContainsKey("monsters"))
            {
                conf["monsters"] = GameTools.array2Map(conf["monsters"], "id");
            }

            //if (conf.ContainsKey("equip_upgrade"))
            //{
            //    conf["equip_upgrade"] = GameTools.array2Map(conf["equip_upgrade"], "item_id");
            //}
            return(conf);
        }