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); } }
public void addCurrent(WrapCurrent NewWrapCurrent) { foreach (var wrapCurrent in CurrentSources) { if (wrapCurrent.Current == NewWrapCurrent.Current) { wrapCurrent.CombineCurrent(NewWrapCurrent); return; } } CurrentSources.Add(NewWrapCurrent); }
public void SetUp(WrapCurrent _Current) { Current = _Current.Current; Strength = _Current.Strength; }