public void addBuilding(long buildingID, int xPos, int yPos, int textureID, int spriteNo, PointF center)
 {
     if (buildingID >= 0L)
     {
         BuildingClickMask item = new BuildingClickMask {
             buildingID = buildingID,
             x = xPos,
             y = yPos,
             center = new Point((int) center.X, (int) center.Y),
             textureID = textureID,
             spriteNo = spriteNo,
             vcmID = this.buildings.Count
         };
         this.buildings.Add(item);
         this.mapDirty = true;
     }
 }
 public void addBuilding(long buildingID, int xPos, int yPos, int textureID, int spriteNo, PointF center)
 {
     if (buildingID >= 0L)
     {
         BuildingClickMask item = new BuildingClickMask {
             buildingID = buildingID,
             x          = xPos,
             y          = yPos,
             center     = new Point((int)center.X, (int)center.Y),
             textureID  = textureID,
             spriteNo   = spriteNo,
             vcmID      = this.buildings.Count
         };
         this.buildings.Add(item);
         this.mapDirty = true;
     }
 }
 private static int CompareBuildingByYpos(BuildingClickMask x, BuildingClickMask y)
 {
     if (x == null)
     {
         if (y == null)
         {
             return(0);
         }
         return(-1);
     }
     if (y == null)
     {
         return(1);
     }
     if (x.y > y.y)
     {
         return(1);
     }
     if (x.y == y.y)
     {
         return(0);
     }
     return(-1);
 }
 private static int CompareBuildingByYpos(BuildingClickMask x, BuildingClickMask y)
 {
     if (x == null)
     {
         if (y == null)
         {
             return 0;
         }
         return -1;
     }
     if (y == null)
     {
         return 1;
     }
     if (x.y > y.y)
     {
         return 1;
     }
     if (x.y == y.y)
     {
         return 0;
     }
     return -1;
 }