public void Notify_SupplierDespawned(CompRepairStationSupplier supplier) { if (suppliers.Contains(supplier)) { suppliers.Remove(supplier); } }
public void Notify_SupplierSpawned(CompRepairStationSupplier supplier) { if (!suppliers.Contains(supplier)) { suppliers.Add(supplier); } }
private void Notify_RepairStationSpawned() { ListerDroids.RegisterRepairStation(this); foreach (var c in GenAdj.CellsAdjacentCardinal(this)) { Building b = Find.ThingGrid.ThingAt <Building>(c); if (b != null) { CompRepairStationSupplier supplier = b.GetComp <CompRepairStationSupplier>(); if (supplier != null) { supplier.Notify_RepairStationSpawned(this); } } } }
public void Notify_SupplierSpawned(CompRepairStationSupplier supplier) { if (!suppliers.Contains(supplier)) suppliers.Add(supplier); }
public void Notify_SupplierDespawned(CompRepairStationSupplier supplier) { if (suppliers.Contains(supplier)) suppliers.Remove(supplier); }