+ for yx in self.annotations:
+ write(f, 'ANNOTATE %s %s' % (yx, quote(self.annotations[yx])))
+ for yx in self.portals:
+ write(f, 'PORTAL %s %s' % (yx, quote(self.portals[yx])))
+
+ def new_world(self, size):
+ self.map_geometry = MapGeometrySquare(YX(size.y, size.x))
+ self.map = Map(self.map_geometry.size)
+ self.annotations = {}