code: def get_terrain_height(self, pos: Union[Point2, Point3, Unit]) -> int:
          
          assert isinstance(pos, (Point2, Point3, Unit))
          pos = pos.position.to2.rounded
          return self._game_info.terrain_height[pos]
docs: Returns terrain height at a position. Caution: terrain height is not anywhere near a unit's z-coordinate.