Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public override void PostDeSpawn(Map map)
        {
            base.PostDeSpawn(map);

            QNetworkManager.UnregisterLocalNetwork(this.network);
        }
Exemplo n.º 3
0
 public override AlertReport GetReport()
 {
     return(QNetworkManager.AnyNetworkIsFull());
 }