Ejemplo n.º 1
0
        public void AddNeighbourhood(Neighbourhood neighbourhood)
        {
            if (neighbourhoods == null)
            {
                neighbourhoods = new Neighbourhood[1]
                {
                    neighbourhood,
                };
                return;
            }
            else
            {
                DataUtils.ResizeArray <Neighbourhood>(ref neighbourhoods, neighbourhoods.Length + 1);

                neighbourhoods[neighbourhoods.Length - 1] = neighbourhood;
            }
        }
Ejemplo n.º 2
0
 public void SetNeighbourhood(Neighbourhood neighbourhood, int index)
 {
     neighbourhoods[index] = neighbourhood;
 }