public Scene this[int rx, int ry]
{
get
{
if (rx < 0 || ry < 0 || rx > cityRegions.GetUpperBound(0) || ry > cityRegions.GetUpperBound(1))
{
return (null);
}
return (cityRegions[rx, ry]);
}
set
{
if (rx < 0 || ry < 0 || rx > cityRegions.GetUpperBound(0) || ry > cityRegions.GetUpperBound(1))
{
return;
}
if (value == null)
return;
cityRegions[rx,ry] = value;
}
}