Example #1
0
        private bool Contains(WaterVolumeSubtract[] array, WaterVolumeSubtract element)
        {
            if (array == null)
            {
                return(false);
            }

            for (int i = 0; i < array.Length; ++i)
            {
                if (array[i] == element)
                {
                    return(true);
                }
            }

            return(false);
        }
Example #2
0
 internal void RemoveSubtractor(WaterVolumeSubtract volume)
 {
     subtractors.Remove(volume);
 }
Example #3
0
 internal void AddSubtractor(WaterVolumeSubtract volume)
 {
     subtractors.Add(volume);
     volume.AssignTo(water);
 }