Exemplo n.º 1
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.º 2
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.º 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 GetAgent(agentID, stationID=None):
    if stationID is not None:
        nodeID = sm.services['machoNet'].CheckAddressCache(
            'station', stationID)
        if nodeID is not None:
            sm.services['machoNet'].SetNodeOfAddress('agentMgr', agentID,
                                                     nodeID)
    return Moniker('agentMgr', agentID)
Exemplo n.º 5
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.º 6
0
def GetWarStatistic(warID):
    return Moniker('warStatisticMgr', warID)
Exemplo n.º 7
0
def GetWarEx(allianceOrCorpID, isMaster = 0):
    if macho.mode == 'server':
        isMaster = isMaster or sm.StartServiceAndWaitForRunningState('warRegistry').IsAllianceOrCorpLocal(allianceOrCorpID)
    return Moniker('warRegistry', (allianceOrCorpID, isMaster))
Exemplo n.º 8
0
def GetCorpRegistryEx(corpID, isMaster = 0):
    if macho.mode == 'server':
        isMaster = isMaster or sm.StartServiceAndWaitForRunningState('corpRegistry').IsCorpLocal(corpID)
    return Moniker('corpRegistry', (corpID, isMaster))
Exemplo n.º 9
0
def CharGetDogmaLocation():
    moniker = Moniker('dogmaIM', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker
Exemplo n.º 10
0
def GetPlanetBaseManager(planetID):
    return Moniker('planetBaseBroker', planetID)
Exemplo n.º 11
0
def GetStationInventoryMgr(stationID):
    return Moniker('invbroker', (stationID, const.groupStation))
Exemplo n.º 12
0
def GetSolarSystemInventoryMgr(solarsystemID):
    return Moniker('invbroker', (solarsystemID, const.groupSolarSystem))
Exemplo n.º 13
0
def GetCorpStationManagerEx(stationID):
    return Moniker('corpStationMgr', stationID)
Exemplo n.º 14
0
def GetReprocessingManagerEx(stationID):
    return Moniker('reprocessingSvc', stationID)
Exemplo n.º 15
0
def CharGetSkillHandler():
    moniker = Moniker('skillMgr', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker
Exemplo n.º 16
0
def GetFleet(fleetID = None):
    fleetID = fleetID or session.fleetid
    moniker = Moniker('fleetObjectHandler', fleetID)
    return moniker
Exemplo n.º 17
0
def GetPlanet(planetID):
    return Moniker('planetMgr', planetID)
Exemplo n.º 18
0
def GetWorldSpaceInventoryMgr(worldSpaceID):
    return Moniker('invbroker', (worldSpaceID, const.groupWorldSpace))
Exemplo n.º 19
0
def GetPlanetOrbitalRegistry(solarSystemID):
    return Moniker('planetOrbitalRegistryBroker', solarSystemID)
Exemplo n.º 20
0
def CharGetCrimewatchLocation():
    moniker = Moniker('crimewatch', GetLocationBindParams())
    moniker.SetSessionCheck(GetLocationSessionCheck())
    return moniker
Exemplo n.º 21
0
def GetStationDogmaLocation():
    moniker = Moniker('dogmaIM', (session.stationid2, const.groupStation))
    moniker.SetSessionCheck({'stationid2': session.stationid2})
    return moniker
Exemplo n.º 22
0
def GetBallPark(solarsystemID):
    moniker = Moniker('beyonce', solarsystemID)
    moniker.SetSessionCheck({'solarsystemid': solarsystemID})
    return moniker
Exemplo n.º 23
0
def GetStationShipAccess():
    moniker = Moniker('ship', (session.stationid2, const.groupStation))
    moniker.SetSessionCheck({'stationid2': session.stationid2})
    return moniker
Exemplo n.º 24
0
def GetCourierMissionCreator(stationID):
    return Moniker('missionMgr', ('courier', stationID))