示例#1
0
def new(gen):
    """Create a new PKM file.

    Keyword arguments:
    gen (int) -- the file's game generation
    """
    return get_pkmobj(gen, '\x00' * 136)
示例#2
0
文件: __init__.py 项目: ceol/pypkm
def new(gen):
    """Create a new PKM file.

    Keyword arguments:
    gen (int) -- the file's game generation
    """
    return get_pkmobj(gen, '\x00' * 136)
示例#3
0
def load(gen, data):
    """Load PKM data.

    Keyword arguments:
    gen (int) -- the file's game generation
    data (str) -- the file's binary data
    """
    return get_pkmobj(gen, data)
示例#4
0
文件: __init__.py 项目: ceol/pypkm
def load(gen, data):
    """Load PKM data.

    Keyword arguments:
    gen (int) -- the file's game generation
    data (str) -- the file's binary data
    """
    return get_pkmobj(gen, data)