Exemplo n.º 1
0
 public ControlUnit(int numberOfBins, int targetWeight)
 {
     _numberOfBins = numberOfBins;
     _targetWeight = targetWeight;
     _conveyorBelt = new ConveyorBelt(_numberOfBins, _targetWeight);
     _log          = new Log();
     _index        = 0;
     _conveyorBelt.Register(_log);
 }
Exemplo n.º 2
0
        private static ConsoleText GetItemConsoleText(IRoomObject roomObject)
        {
            return(roomObject switch
            {
                ISankaraStone _ => new ConsoleText("S", ConsoleColor.DarkYellow),
                IDisappearingTrap _ => new ConsoleText("@"),
                IBoobyTrap _ => new ConsoleText("Ο"),
                IKey key => new ConsoleText("K", key.Color),
                IPressurePlate _ => new ConsoleText("T"),
                IPortal _ => new ConsoleText("Π", ConsoleColor.Magenta),
                IConveyorBelt conveyorBelt => new ConsoleText(
                    Util.ConvertDirectionConveyorBeltIcon(conveyorBelt.Direction)),

                _ => new ConsoleText("?")
            });
Exemplo n.º 3
0
 private void Awake()
 {
     lampsPanel   = lampsPanelObject.GetComponentWithInterface <IConveyorLampsPanel>();
     conveyorBelt = conveyorBeltObject.GetComponentWithInterface <IConveyorBelt>();
     conveyorDoor = conveyorDoorObject.GetComponentWithInterface <IDoor>();
 }