示例#1
0
 public void CombineCurrent(WrapCurrent addSendingCurrent)
 {
     if (Current == addSendingCurrent.Current)
     {
         Strength = Strength + addSendingCurrent.Strength;
     }
     else
     {
         Logger.Log("Tried to combine two currents, but they were not equal", Category.Electrical);
     }
 }
示例#2
0
 public void addCurrent(WrapCurrent NewWrapCurrent)
 {
     foreach (var wrapCurrent in CurrentSources)
     {
         if (wrapCurrent.Current == NewWrapCurrent.Current)
         {
             wrapCurrent.CombineCurrent(NewWrapCurrent);
             return;
         }
     }
     CurrentSources.Add(NewWrapCurrent);
 }
示例#3
0
 public void SetUp(WrapCurrent _Current)
 {
     Current  = _Current.Current;
     Strength = _Current.Strength;
 }