Пример #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
Пример #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, ))
Пример #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, ))
Пример #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, ))
Пример #5
0
def GetStationShipAccess():
    moniker = Moniker('ship', (session.stationid2, const.groupStation))
    moniker.SetSessionCheck({'stationid2': session.stationid2})
    return moniker
Пример #6
0
def GetStationDogmaLocation():
    moniker = Moniker('dogmaIM', (session.stationid2, const.groupStation))
    moniker.SetSessionCheck({'stationid2': session.stationid2})
    return moniker
Пример #7
0
def CharGetDogmaLocation():
    moniker = Moniker('dogmaIM', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker
Пример #8
0
def GetBallPark(solarsystemID):
    moniker = Moniker('beyonce', solarsystemID)
    moniker.SetSessionCheck({'solarsystemid': solarsystemID})
    return moniker
Пример #9
0
def CharGetCrimewatchLocation():
    moniker = Moniker('crimewatch', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker
Пример #10
0
def CharGetSkillHandler():
    moniker = Moniker('skillMgr', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker