Exemple #1
0
    public static void Load()
    {
        List <Type> list = new List <Type>();

        Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
        foreach (Assembly assembly in assemblies)
        {
            Type[] types = assembly.GetTypes();
            if (types != null)
            {
                list.AddRange(types);
            }
        }
        EntityTemplates.CreateTemplates();
        EntityTemplates.CreateBaseOreTemplates();
        LoadOre(list);
        LoadBuildings(list);
        ConfigElements();
        LoadEntities(list);
        LoadEquipment();
        EntityTemplates.DestroyBaseOreTemplates();
    }