Exemplo n.º 1
0
def GetShipAccess():
    if session.solarsystemid:
        moniker = Moniker('ship', (session.solarsystemid, const.groupSolarSystem))
        moniker.SetSessionCheck({'solarsystemid': session.solarsystemid})
    elif session.stationid2:
        moniker = Moniker('ship', (session.stationid2, const.groupStation))
        moniker.SetSessionCheck({'stationid2': session.stationid2})
    return moniker
Exemplo n.º 2
0
def GetPOSMgr():
    if session.solarsystemid is not None:
        moniker = Moniker('posMgr', session.solarsystemid)
        moniker.SetSessionCheck({'solarsystemid': session.solarsystemid})
        return moniker
    raise RuntimeError('POSMgr only available in-flight but session is %s' %
                       (session, ))
Exemplo n.º 3
0
def GetEntityLocation():
    if session.solarsystemid2 is not None:
        moniker = Moniker('entity', session.solarsystemid2)
        moniker.SetSessionCheck({'solarsystemid2': session.solarsystemid2})
        return moniker
    raise RuntimeError(
        'EntityLocation only available with in a valid solarsystem %s' %
        (session, ))
Exemplo n.º 4
0
def GetEntityAccess():
    if session.solarsystemid is not None:
        moniker = Moniker('entity', session.solarsystemid2)
        moniker.SetSessionCheck({'solarsystemid': session.solarsystemid})
        return moniker
    raise RuntimeError(
        'EntityAccess only available in-flight but session is %s' %
        (session, ))
Exemplo n.º 5
0
def GetStationShipAccess():
    moniker = Moniker('ship', (session.stationid2, const.groupStation))
    moniker.SetSessionCheck({'stationid2': session.stationid2})
    return moniker
Exemplo n.º 6
0
def GetStationDogmaLocation():
    moniker = Moniker('dogmaIM', (session.stationid2, const.groupStation))
    moniker.SetSessionCheck({'stationid2': session.stationid2})
    return moniker
Exemplo n.º 7
0
def CharGetDogmaLocation():
    moniker = Moniker('dogmaIM', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker
Exemplo n.º 8
0
def GetBallPark(solarsystemID):
    moniker = Moniker('beyonce', solarsystemID)
    moniker.SetSessionCheck({'solarsystemid': solarsystemID})
    return moniker
Exemplo n.º 9
0
def CharGetCrimewatchLocation():
    moniker = Moniker('crimewatch', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker
Exemplo n.º 10
0
def CharGetSkillHandler():
    moniker = Moniker('skillMgr', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker