public override void MakeFoliage(ref IMapHandler map)
{
Console.WriteLine("Adding tree at {0}", Pos);
int topy = (int)Pos.Y + Height - 1;
int start = topy - 2;
int end = topy + 2;
for(int y = start;y<end;y++)
{
int rad=0;
if(y > start + 1)
rad = 1;
else
rad = 2;
for(int xoff = -rad;xoff<rad+1;xoff++)
{
for(int zoff = -rad;zoff<rad+1;zoff++)
{
if (Math.Abs(xoff) == Math.Abs(zoff) && Math.Abs(xoff) == rad)
continue;
int x = (int)Pos.X + xoff;
int z = (int)Pos.Z + zoff;
map.SetBlockAt(x,y,z,18);
}
}
}
}