public override void UpdateMemoryBlocks() { /*Output.Count = GetInputSize(0); * Output.ColumnHint = Input != null ? Input.ColumnHint : 1;*/ if (Input != null && Input.Dims != null) { Output.Dims = Input.Dims; } else { Output.Count = 1; } if (!SignalName.Equals("<none>")) { ProxySignal.Source = MySignal.CreateSignalByDefaultName(SignalName); if (ProxySignal.Source != null) { ProxySignal.Source.Owner = this; ProxySignal.Source.Name = MyProject.RemovePostfix(ProxySignal.Source.DefaultName, "Signal"); } } else { ProxySignal.Source = null; } }
public override void UpdateMemoryBlocks() { Output.Dims = new TensorDimensions(1); if (!SignalName.Equals("<none>")) { ProxySignal.Source = MySignal.CreateSignalByDefaultName(SignalName); if (ProxySignal.Source != null) { ProxySignal.Source.Owner = this; ProxySignal.Source.Name = MyProject.RemovePostfix(ProxySignal.Source.DefaultName, "Signal"); } } else { ProxySignal.Source = null; } }
public bool IsSame(FSSSignal other) // is this signal the same as the other one { return(SignalName.Equals(other.SignalName) && SpawningFaction.Equals(other.SpawningFaction) && SpawningState.Equals(other.SpawningState) && USSType.Equals(other.USSType) && ThreatLevel == other.ThreatLevel && ClassOfSignal == other.ClassOfSignal && (ClassOfSignal == Classification.Carrier || ExpiryUTC == other.ExpiryUTC)); // note carriers have our own expiry on it, so we don't }