public static void init(TypesConfig typesConfig)
            {
                listCount = typesConfig.techTypeLists.Count;

                typeLists = typesConfig.techTypeLists;
                typeLists.Insert(0, new TypesConfig.TechTypeList("ids_All"));

                for (int i = 1; i <= listCount; i++)
                {
                    if (!typesConfig.noJoin.Contains(typeLists[i].name))
                    {
                        typeLists[0].add(typeLists[i]);
                    }

                    L10n.add(typeLists[i].name, typeLists[i].name);
                }
            }
Пример #2
0
            public static void init(TypesConfig typesConfig)
            {
                listCount = typesConfig.techTypeLists.Count;

                typeLists = typesConfig.techTypeLists.Select(list => new TypesConfig.TechTypeList(list)).ToList();
                typeLists.Insert(0, new TypesConfig.TechTypeList("ids_All"));

                for (int i = 1; i <= listCount; i++)
                {
                    if (!typesConfig.noJoin.Contains(typeLists[i].name))
                    {
                        typeLists[0].add(typeLists[i]);
                    }

                    L10n.add(typeLists[i].name, typeLists[i].name);
                }

                // can't use events for that
                UnityHelper.FindObjectsOfTypeAll <GravTrapObjectsType>().forEach(cmp => cmp.refreshIndex());
            }
Пример #3
0
 public static void init(TypesConfig typesConfig) => Types.init(typesConfig);