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