예제 #1
0
def	roledb():
	excel_file = 'roledb.xls'
	client_template	= 'roledb.lua'
	client_output =	'roledb.lua'
	
	client_configs = {
		'role':{
			'data_type':['int','unicode','str','int', 'int', 'int', 'int', 'float', 'int','int', 'int', 'unicode','unicode', 'str','float','float','int','str'],
			'data_template':'[%(s0)d]={"%(s1)s","%(s2)s",%(s3)d,%(s4)d,%(s5)d,%(s6)d,%(s7).2f, %(s8)d,%(s9)d,%(s10)d,"%(s11)s","%(s12)s","%(s13)s",%(s14).2f,%(s15).2f,%(s16)d,{%(s17)s}}',
			'placeholder':'$ROLEDB$'
		}
	}
	client_output_dict = converter_0(excel_file, client_configs)
	gen_file(client_template, client_output, client_output_dict)
예제 #2
0
def equipdb():
    excel_file = 'equipdb.xls'
    client_template = 'equipdb.lua'
    client_output = 'equipdb.lua'

    client_configs = {
        'equip': {
            'data_type': ['int', 'unicode', 'str'],
            'data_template': '[%(s0)d]={"%(s1)s","%(s2)s"}',
            'placeholder': '$EQUIPDB$'
        }
    }
    client_output_dict = converter_0(excel_file, client_configs)
    gen_file(client_template, client_output, client_output_dict)
예제 #3
0
def	sampledb():
	excel_file = 'MapDB.xls'
	client_template	= 'MapDB.lua'
	client_output =	'MapDB.lua'
	
	client_configs = {
		'MapDB':{
			'data_type':['int','str','str','str', 'str', 'str',	'str','int','int','int','int','int'],
			'data_template':'[%(s0)d]={"%(s1)s","%(s2)s","%(s3)s",{"%(s4)s"},{"%(s5)s"},%(s6)s,%(s7)d,%(s8)d,%(s9)d,%(s10)d,%(s11)d}',
			'placeholder':'$MapDB$'
		}
	}
	client_output_dict = converter_0(excel_file, client_configs)
	gen_file(client_template, client_output, client_output_dict)
예제 #4
0
def	equipdb():
	excel_file = 'equipdb.xls'
	client_template	= 'equipdb.lua'
	client_output =	'equipdb.lua'
	
	client_configs = {
		'equip':{
			'data_type':['int','unicode','str'],
			'data_template':'[%(s0)d]={"%(s1)s","%(s2)s"}',
			'placeholder':'$EQUIPDB$'
		}
	}
	client_output_dict = converter_0(excel_file, client_configs)
	gen_file(client_template, client_output, client_output_dict)
예제 #5
0
def	skilldb():
	excel_file = 'skilldb.xls'
	client_template	= 'skilldb.lua'
	client_output =	'skilldb.lua'
	
	client_configs = {
		'skill':{
			'data_type':['int','unicode','unicode','unicode','int', 'str', 'int', 'int', 'int', 'str', 'int', 'int', 'str', 'str', 'str', 'int', 'int', 'str','str'],
			'data_template':'[%(s0)d]={"%(s1)s","%(s2)s", %(s4)d, {%(s5)s},%(s6)d, %(s7)d, %(s8)d, "%(s9)s", %(s10)d, %(s11)d, "%(s12)s", "%(s13)s", "%(s14)s", %(s15)d, %(s16)d,"%(s3)s","%(s17)s","%(s18)s"}',
			'placeholder':'$SKILLDB$'
		}
	}
	client_output_dict = converter_0(excel_file, client_configs)
	gen_file(client_template, client_output, client_output_dict)
예제 #6
0
파일: start.py 프로젝트: zsifz/JumpBye
def	stringdb():
	excel_file = 'stringdb.xls'
	client_template	= 'stringdb.lua'
	client_output =	'stringdb.lua'
	
	client_configs = {
		'stringdb':{
			'data_type':['str','unicode'],
			'data_template':'["%(s0)s"]="%(s1)s"',
			'placeholder':'$STRINGDB$'
		}
	}
	client_output_dict = converter_0(excel_file, client_configs)
	gen_file(client_template, client_output, client_output_dict)
예제 #7
0
파일: start.py 프로젝트: zsifz/JumpBye
def	sampledb():
	excel_file = 'sampledb.xls'
	client_template	= 'sampledb.lua'
	client_output =	'sampledb.lua'
	
	client_configs = {
		'sample':{
			'data_type':['int','unicode','unicode','int', 'int', 'int',	'int', 'int'],
			'data_template':'[%(s0)d]={"%(s1)s","%(s2)s",%(s3)d,%(s4)d,%(s5)d,%(s6)d,%(s7)d}',
			'placeholder':'$SAMPLEDB$'
		}
	}
	client_output_dict = converter_0(excel_file, client_configs)
	gen_file(client_template, client_output, client_output_dict)
예제 #8
0
def itemdb():
    excel_file = 'itemdb.xls'
    client_template = 'itemdb.lua'
    client_output = 'itemdb.lua'

    client_configs = {
        'item': {
            'data_type': ['int', 'unicode', 'str', 'int', 'int'],
            'data_template': '[%(s0)d]={"%(s1)s","%(s2)s",%(s3)d,%(s4)d}',
            'placeholder': '$ITEMDB$'
        }
    }
    client_output_dict = converter_0(excel_file, client_configs)
    gen_file(client_template, client_output, client_output_dict)
예제 #9
0
파일: start.py 프로젝트: ZhHong/phpmysql
def stringres(argv_platform):
    """
    """
    excel_file = 'stringres.xlsx'
    server_template = 'stringres.php'  # 后端配置文件模版
    server_output = 'stringres.php'  #  后端配置输出文件

    server_configs = {
        'stringres': {
            'data_type': ['unicode', 'unicode', 'unicode'],
            'data_template': '"%(s0)s"=>"%(s1)s"',
            'placeholder': '$STRINGRES$'
        }
    }
    server_output_dict = converter_0(excel_file, server_configs, argv_platform)
    gen_file(server_template, server_output, server_output_dict, True)
예제 #10
0
def sampledb():
    excel_file = 'sampledb.xls'
    client_template = 'sampledb.lua'
    client_output = 'sampledb.lua'

    client_configs = {
        'sample': {
            'data_type':
            ['int', 'unicode', 'unicode', 'int', 'int', 'int', 'int', 'int'],
            'data_template':
            '[%(s0)d]={"%(s1)s","%(s2)s",%(s3)d,%(s4)d,%(s5)d,%(s6)d,%(s7)d}',
            'placeholder':
            '$SAMPLEDB$'
        }
    }
    client_output_dict = converter_0(excel_file, client_configs)
    gen_file(client_template, client_output, client_output_dict)
예제 #11
0
def roledb():
    excel_file = 'roledb.xls'
    client_template = 'roledb.lua'
    client_output = 'roledb.lua'

    client_configs = {
        'role': {
            'data_type': [
                'int', 'unicode', 'str', 'int', 'int', 'int', 'int', 'float',
                'int', 'int', 'int', 'unicode', 'unicode', 'str', 'float',
                'float', 'int', 'str'
            ],
            'data_template':
            '[%(s0)d]={"%(s1)s","%(s2)s",%(s3)d,%(s4)d,%(s5)d,%(s6)d,%(s7).2f, %(s8)d,%(s9)d,%(s10)d,"%(s11)s","%(s12)s","%(s13)s",%(s14).2f,%(s15).2f,%(s16)d,{%(s17)s}}',
            'placeholder':
            '$ROLEDB$'
        }
    }
    client_output_dict = converter_0(excel_file, client_configs)
    gen_file(client_template, client_output, client_output_dict)
예제 #12
0
def stringdb():
    excel_file = 'stringdb.xls'
    client_template = 'stringdb.lua'
    client_output = 'stringdb.lua'

    client_configs = {
        'stringdb': {
            'data_type': ['str', 'unicode'],
            'data_template': '["%(s0)s"]="%(s1)s"',
            'placeholder': '$STRINGDB$'
        },
        'name': {
            'data_type': ['int', 'unicode'],
            'data_template': '[%(s0)d]="%(s1)s"',
            'placeholder': '$NAMEDB$'
        },
        'prefix': {
            'data_type': ['int', 'unicode'],
            'data_template': '[%(s0)d]="%(s1)s"',
            'placeholder': '$PREFIX$'
        }
    }
    client_output_dict = converter_0(excel_file, client_configs)
    gen_file(client_template, client_output, client_output_dict)