def entity_image_move_down(cls, e: entity.Entity, index: int): if index < e.get_images_count() - 1: e.swap_images(index, index + 1)
def entity_image_move_up(cls, e: entity.Entity, index: int): if index > 0: e.swap_images(index, index - 1)