def main(): ''' LeeClientAgent 的主入口函数 ''' # 显示欢迎信息 LeeCommon().welcome() # 验证程序所在位置是否正确 LeeCommon().verifyAgentLocation() # 进入主菜单 LeeMenu().entrance() # Windows 上用户按一下再终止 LeeCommon().pauseScreen()
def __init__(self): self.leeCommon = LeeCommon() self.leeFileIO = None self.translateDefaultDBPath = None self.translateMap = {} self.reSrcPathPattern = None self.reDstPathPattern = None
def __init__(self): self.leeCommon = LeeCommon() self.leeParser = LeeStructParser() self.textureDirs = ['data/texture'] self.modelDirs = ['data/model'] self.spriteDirs = ['data/sprite'] self.reportInfo = [] self.reportStartTime = 0 # 用于记录当前检测项目的启动时间 self.reportFileCount = 0 # 记录本次检测项目中, 丢失了资源的文件数量 self.reportMissCount = 0 # 记录本次检测项目中, 累计丢失的资源文件数量
def __init__(self): self.leeCommon = LeeCommon() self.stagingFiles = [] self.patchesFiles = [] self.backupFiles = [] self.forceRemoveDirs = [ 'AI', 'AI_sakray', '_tmpEmblem', 'memo', 'Replay', 'SaveData', 'Navigationdata', 'System' ] return
def __init__(self): self.leeCommon = LeeCommon() self.itemInfoDict = {} self.singleItemFormat = \ ''' [%s] = { unidentifiedDisplayName = "%s", unidentifiedResourceName = "%s", unidentifiedDescriptionName = { %s }, identifiedDisplayName = "%s", identifiedResourceName = "%s", identifiedDescriptionName = { %s }, slotCount = %s, ClassNum = %s }%s'''.replace('\n', '\r\n').replace('\r\r', '\r') self.itemInfoFormat = \ '''tbl = { %s } main = function() for ItemID,DESC in pairs(tbl) do result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum) if not result then return false, msg end for k,v in pairs(DESC.unidentifiedDescriptionName) do result, msg = AddItemUnidentifiedDesc(ItemID, v) if not result then return false, msg end end for k,v in pairs(DESC.identifiedDescriptionName) do result, msg = AddItemIdentifiedDesc(ItemID, v) if not result then return false, msg end end end return true, "good" end '''.replace('\n', '\r\n').replace('\r\r', '\r')
def __init__(self): self.leeCommon = LeeCommon() self.skillinfolistDict = {} self.SKID = [] self.JOBID = [] self.singleSkillinfoFormat = \ ''' [SKID.%s] = { "%s", SkillName = "%s", MaxLv = %s, SpAmount = { %s }, bSeperateLv = %s, AttackRange = { %s }%s }%s'''.replace('\n', '\r\n').replace('\r\r', '\r') self._neeskillListFormat = ',\r\n\t\t_NeedSkillList = {\r\n%s\r\n\t\t}' self.neeskillListFormat = ',\r\n\t\tNeedSkillList = {\r\n%s\r\n\t\t}' self.jobDepentFormat = '\t\t\t[JOBID.%s] = {\r\n%s\r\n\t\t\t}%s' self.skillScaleListFormat = ',\r\n\t\tSkillScale = {\r\n%s\r\n\t\t}' self.skillScaleItemFormat = '\t\t\t[%s] = { x = %s, y = %s }%s' self.skillinfoListFormat = 'SKILL_INFO_LIST = {\r\n%s\r\n}\r\n'
def __init__(self): self.leeCommon = LeeCommon() self.towninfoDict = {} self.singleMapFormat = '\t%s = {\r\n%s\r\n\t}%s' self.singleInfoFormat = '\t\t{ name = "%s", X = %d, Y = %d, TYPE = %d }%s' self.townInfoFormat = \ '''mapNPCInfoTable = { %s } main = function() for mapName, info in pairs(mapNPCInfoTable) do for k, v in pairs(info) do result, msg = AddTownInfo(mapName, v.name, v.X, v.Y, v.TYPE) if not result == true then return false, msg end end end return true, "good" end '''.replace('\n', '\r\n').replace('\r\r', '\r')
def __init__(self): self.leeCommon = LeeCommon()
def __init__(self): self.leeCommon = LeeCommon() self.revertDefaultDBPath = None self.revertFiles = []
def __init__(self): self.leeCommon = LeeCommon() self.sourceDirectory = None self.outputDirectory = None self.grfCLFilepath = None self.baseDirectory = None
def __init__(self): self.leeCommon = LeeCommon() self.configureFilepath = './LeeClientAgent.yml' self.configureData = None self.load()
def __init__(self): self.leeCommon = LeeCommon() self.btnConfigure = {} self.fontPathMap = {} pygame.font.init()
def __init__(self): self.leeCommon = LeeCommon() self.skilldescriptDict = {} self.SKID = [] self.singleSkilldescriptFormat = '\t[SKID.%s] = {\r\n%s\r\n\t}%s' self.skillDescriptFormat = 'SKILL_DESCRIPT = {\r\n%s\r\n}\r\n'
def __init__(self): self.patchManager = LeePatchManager() self.buttonTranslator = LeeButtonTranslator() self.leeVerifier = LeeVerifier() self.leeCommon = LeeCommon()
def __init__(self): self.leeCommon = LeeCommon() self.patchManager = LeePatchManager()