def __init__(self, iterable=None, n=None, size=0.0, rotation=0.0): JsonList.__init__(self, iterable, list_type=Transformation) if n: for a in range(n): self.append( Transformation( float(size), float(rotation) + float(a) * (360.0 / float(n))))
def __init__(self, iterable=None, world=None, cell_group_builder: Cell_group_builder = None): if cell_group_builder is None: cell_group_builder = [] JsonList.__init__(self, iterable, list_type=Cell) if world: for cell_id in cell_group_builder: self.append(world.cells[cell_id])
def __init__(self, iterable=None): JsonList.__init__(self, iterable, list_type=int)
def __init__(self, iterable=None): JsonList.__init__(self, iterable, list_type=Location)
def __init__(self, iterable=None): JsonList.__init__(self, iterable, list_type=Coordinates)