public override void PostSpawnSetup(bool respawningAfterLoad) { base.PostSpawnSetup(respawningAfterLoad); if (!respawningAfterLoad) { GasNetManager.For(parent.Map).Notify_ConnectorAdded(this); } }
public override void ReceiveCompSignal(string signal) { base.ReceiveCompSignal(signal); // respond to switch doing switchy things if (signal == CompFlickable.FlickedOffSignal) { GasNetManager.For(parent.Map).Notify_ConnectorRemoved(this); } if (signal == CompFlickable.FlickedOnSignal) { GasNetManager.For(parent.Map).Notify_ConnectorAdded(this); } // notify overlay drawer parent.Map.mapDrawer.MapMeshDirty(parent.Position, SectionLayer_GasNetwork.MapMeshFlag, true, false); }
public override void PostDeSpawn(Map map) { base.PostDeSpawn(map); GasNetManager.For(map).Notify_ConnectorRemoved(this); }