コード例 #1
0
 public StorageControllerService(QuantumStorageControllerMachine quantumStorageController,
                                 MachineStorage machineStorage, MachineSides machineSides)
 {
     _quantumStorageController = quantumStorageController;
     _machineStorage           = machineStorage;
     _machineSides             = machineSides;
 }
コード例 #2
0
        public static string StorageDisplay(MachineStorage machineStorage)
        {
            string txt = "";

            if (machineStorage.StorageBlockCount == 0)
            {
                txt = "NO STORAGE CONNECTED - PLACE STORAGE BEHIND CONTROLLER\n";
            }
            else
            {
                txt += "Item count: " + machineStorage.ItemCount + "/" + machineStorage.MaxCapacity + "\n";
                txt += "Storage blocks count: " + machineStorage.StorageBlockCount + "\n";
            }

            return(txt);
        }