public override void PostSpawnSetup(bool respawningAfterLoad) { base.PostSpawnSetup(respawningAfterLoad); this.powerTrader = this.parent.TryGetComp <CompPowerTrader>(); this.network = QNetworkManager.Get(this.parent.Map); this.network.RegisterInput(this.powerTrader, GenAdj.CellsAdjacent8Way(this.parent)); this.network.RegisterStorage(this.powerTrader, GenAdj.CellsOccupiedBy(this.parent)); }
public override void PostDeSpawn(Map map) { base.PostDeSpawn(map); QNetworkManager.UnregisterLocalNetwork(this.network); }
public override AlertReport GetReport() { return(QNetworkManager.AnyNetworkIsFull()); }