Beispiel #1
0
        public void AddInterface(LogisticInterface lInterface)
        {
            if (this.interfaces.Contains(lInterface))
            {
                Log.Error("[LogisticRim] Tried to add duplicate interface to manager on map: " + this.map.GetUniqueLoadID());
                return;
            }
            if (lInterface.manager != null)
            {
                Log.Error("[LogisticRim] Tried to interface belonging to another manager to manager on map: " + this.map.GetUniqueLoadID());
                return;
            }

            this.interfaces.Add(lInterface);
            lInterface.manager = this;

            lInterface.loadid = this.GetUniqueLoadID() + "_" + (this.nextInterfaceID++);
        }
Beispiel #2
0
 public void RemoveInterface(LogisticInterface lInterface)
 {
     this.interfaces.Remove(lInterface);
     lInterface.manager = null;
 }