Exemple #1
0
 /// <summary>
 /// Set up this switch to directly trigger another game item (coil or lamp), or
 /// a coil within a coil device.
 /// </summary>
 /// <param name="wireConfig">Configuration which game item to link to</param>
 public void AddWireDest(WireDestConfig wireConfig)
 {
     if (_wires == null)
     {
         _wires = new List <WireDestConfig>();
     }
     _wires.Add(wireConfig);
 }
 void IApiSwitch.AddWireDest(WireDestConfig wireConfig) => AddWireDest(wireConfig.WithPulse(true));
Exemple #3
0
 internal void AddWireDest(WireDestConfig wireConfig) => _switchHandler.AddWireDest(wireConfig);
 void IApiSwitch.AddWireDest(WireDestConfig wireConfig) => AddWireDest(wireConfig);
 void IApiSwitch.AddWireDest(WireDestConfig wireConfig) => AddWireDest(wireConfig.WithPulse(Item.IsPulseSwitch));
 public void AddWireDest(WireDestConfig wireConfig) => _switchHandler.AddWireDest(wireConfig);