示例#1
0
文件: eos.py 项目: NiGhTTraX/Eos
 def __initializeLogger(self):
     """
     Initialize logging facilities, log few initial messages,
     and return logger.
     """
     logger = Logger(self.name, os.path.join(self.__path, "logs"))
     logger.info("------------------------------------------------------------------------")
     logger.info("session started")
     return logger
示例#2
0
文件: eos.py 项目: bastianh/Eos
 def __initializeLogger(self):
     """
     Initialize logging facilities, log few initial messages,
     and return logger.
     """
     logger = Logger(self.name, os.path.join(self.__path, 'logs'))
     logger.info('------------------------------------------------------------------------')
     logger.info('session started')
     return logger
示例#3
0
文件: eos.py 项目: oneillkza/Eos
class Eos:
    def __init__(self, name="eos"):
        self._cacheHandler = JsonCacheHandler
        self._logger = Logger(name)
        self._logger.info("session started")

    def makeFit(self):
        fit = Fit(self)
        return fit

    def makeCharacter(self):
        characterType = self._cacheHandler.getType(Type.characterStatic)
        character = Character(characterType)
        return character

    def makeShip(self, typeId):
        shipType = self._cacheHandler.getType(typeId)
        ship = Ship(shipType)
        return ship

    def makeModule(self, typeId):
        moduleType = self._cacheHandler.getType(typeId)
        module = Module(moduleType)
        return module

    def makeCharge(self, typeId):
        chargeType = self._cacheHandler.getType(typeId)
        charge = Charge(chargeType)
        return charge

    def makeDrone(self, typeId):
        droneType = self._cacheHandler.getType(typeId)
        drone = Drone(droneType)
        return drone

    def makeImplant(self, typeId):
        implantType = self._cacheHandler.getType(typeId)
        implant = Implant(implantType)
        return implant

    def makeSkill(self, typeId):
        skillType = self._cacheHandler.getType(typeId)
        skill = Skill(skillType)
        return skill

    def makeRig(self, typeId):
        rigType = self._cacheHandler.getType(typeId)
        rig = Rig(rigType)
        return rig

    def makeBooster(self, typeId):
        boosterType = self._cacheHandler.getType(typeId)
        booster = Booster(boosterType)
        return booster
示例#4
0
文件: eos.py 项目: NiGhTTraX/Eos
 def __initializeLogger(self):
     """
     Initialize logging facilities, log few initial messages,
     and return logger.
     """
     logger = Logger(self.name, os.path.join(self.__path, 'logs'))
     logger.info(
         '------------------------------------------------------------------------'
     )
     logger.info('session started')
     return logger
示例#5
0
文件: eos.py 项目: oneillkza/Eos
 def __init__(self, name="eos"):
     self._cacheHandler = JsonCacheHandler
     self._logger = Logger(name)
     self._logger.info("session started")