def create_door(world, player, entName, region_name):
    entrance = world.get_entrance(entName, player)
    connect = entrance.connected_region
    for ext in connect.exits:
        if ((ext.connected_region is not None) and (ext.connected_region.name == region_name)):
            d = (Door(player, ext.name, DoorType.Logical, ext),)
            world.doors += d
            connect_door_only(world, ext.name, ext.connected_region, player)
    d = (Door(player, entName, DoorType.Logical, entrance),)
    world.doors += d
    connect_door_only(world, entName, connect, player)
def create_door(world, player, entName, region_name):
    entrance = world.get_entrance(entName, player)
    connect = entrance.connected_region
    for ext in connect.exits:
        if ((ext.connected_region is not None) and (ext.connected_region.name == region_name)):
            d = (Door(player, ext.name, DoorType.Logical, ext),)
            world.doors += d
            connect_door_only(world, ext.name, ext.connected_region, player)
    d = (Door(player, entName, DoorType.Logical, entrance),)
    world.doors += d
    connect_door_only(world, entName, connect, player)