Example #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);
        }
Example #2
0
        public BeltComponent()
        {
            _beltPhase = Phase.Offline;

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

            BeltSpeed = Constants.DefaultBeltSpeed;
        }
Example #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;
        }