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
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, ))
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, ))
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, ))
def GetStationShipAccess(): moniker = Moniker('ship', (session.stationid2, const.groupStation)) moniker.SetSessionCheck({'stationid2': session.stationid2}) return moniker
def GetStationDogmaLocation(): moniker = Moniker('dogmaIM', (session.stationid2, const.groupStation)) moniker.SetSessionCheck({'stationid2': session.stationid2}) return moniker
def CharGetDogmaLocation(): moniker = Moniker('dogmaIM', GetLocationBindParams()) moniker.SetSessionCheck(GetLocationSessionCheck()) return moniker
def GetBallPark(solarsystemID): moniker = Moniker('beyonce', solarsystemID) moniker.SetSessionCheck({'solarsystemid': solarsystemID}) return moniker
def CharGetCrimewatchLocation(): moniker = Moniker('crimewatch', GetLocationBindParams()) moniker.SetSessionCheck(GetLocationSessionCheck()) return moniker
def CharGetSkillHandler(): moniker = Moniker('skillMgr', GetLocationBindParams()) moniker.SetSessionCheck(GetLocationSessionCheck()) return moniker