Пример #1
0
 private void DefinitionChanged(Module module)
 {
     if (module != null)
     {
         StorageGuru.RefreshStorage(module, GetDefinition(module));
         SaveManifest(StorageGuru.STORAGE_MANIFEST_PATH);
     }
 }
Пример #2
0
        public void Init()
        {
            _instance = this;

            STORAGE_MANIFEST_PATH = Path.Combine(Util.getFilesFolder(), STORAGE_MANIFEST_PATH);

            Controller       = new StorageController();
            allResources     = StorageMapping.GetAllResources();
            allResourceTypes = allResources.Select(x => x.Key.GetType()).ToArray();
            allIcons         = ContentManager.LoadContent(allResources.Keys.ToArray());

            Redirector.PerformRedirections();
            UnityEngine.Debug.Log("[MOD] StorageManager activated");
        }
Пример #3
0
 public static void CBAlcoholicDrink(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new AlcoholicDrink().GetType());
 }
Пример #4
0
 public static void CBMedicinalPlants(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new MedicinalPlants().GetType());
 }
Пример #5
0
 public static void CBSemiconductors(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new Semiconductors().GetType());
 }
Пример #6
0
 public static void CBVitromeat(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new Vitromeat().GetType());
 }
Пример #7
0
 public static void CBVegetables(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new Vegetables().GetType());
 }
Пример #8
0
 public static void CBStarch(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new Starch().GetType());
 }
Пример #9
0
 public static void CBMetal(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new Metal().GetType());
 }
Пример #10
0
 public static void CBBioplastic(object parameter)
 {
     StorageGuru.GetInstance().StorageCallback(new Bioplastic().GetType());
 }