コード例 #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)
コード例 #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
コード例 #6
0
def GetWarStatistic(warID):
    return Moniker('warStatisticMgr', warID)
コード例 #7
0
def GetWarEx(allianceOrCorpID, isMaster = 0):
    if macho.mode == 'server':
        isMaster = isMaster or sm.StartServiceAndWaitForRunningState('warRegistry').IsAllianceOrCorpLocal(allianceOrCorpID)
    return Moniker('warRegistry', (allianceOrCorpID, isMaster))
コード例 #8
0
def GetCorpRegistryEx(corpID, isMaster = 0):
    if macho.mode == 'server':
        isMaster = isMaster or sm.StartServiceAndWaitForRunningState('corpRegistry').IsCorpLocal(corpID)
    return Moniker('corpRegistry', (corpID, isMaster))
コード例 #9
0
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))