Ejemplo n.º 1
0
        public void TransferItem([NotNull] Thing item, [NotNull] BeltItemContainer other)
        {
            _container.Remove(item);
            _thingCounter.Remove(item);

            other.AddItem(item);

            _parentComponent.OnItemTransfer(item, other._parentComponent);
        }
Ejemplo n.º 2
0
        public BeltComponent()
        {
            _beltPhase = Phase.Offline;

            ItemContainer = new BeltItemContainer(this);
            ThingOrigin   = IntVec3.Invalid;

            BeltSpeed = Constants.DefaultBeltSpeed;
        }
Ejemplo n.º 3
0
        public BeltComponent()
        {
            _processLevel = Level.Surface;
            _inputLevel = Level.Surface;
            _outputLevel = Level.Surface;
            _beltPhase = Phase.Offline;

            ItemContainer = new BeltItemContainer(this);
            ThingOrigin = IntVec3.Invalid;

            //BeltSpeed = Constants.DefaultBeltSpeed;
        }