コード例 #1
0
ファイル: format.py プロジェクト: eevee/porigon-z
 def generator(chunks):
     for chunk in chunks:
         if len(chunk) < 4:
             yield None
         elif chunk[0:4] == 'RLCN':
             yield Palette(chunk)
         elif chunk[0:4] == 'RGCN':
             yield Sprite.from_pokemon(chunk)
         else:
             yield None
コード例 #2
0
ファイル: format.py プロジェクト: resonancellc/porigon-z
 def generator(chunks):
     for chunk in chunks:
         if len(chunk) < 4:
             yield None
         elif chunk[0:4] == 'RLCN':
             yield Palette(chunk)
         elif chunk[0:4] == 'RGCN':
             yield Sprite.from_pokemon(chunk)
         else:
             yield None
コード例 #3
0
ファイル: format.py プロジェクト: eevee/porigon-z
 def generator(chunks):
     for chunk in chunks:
         if len(chunk) < 4:
             yield None
         elif chunk[0:4] == 'RLCN':
             yield Palette(chunk)
         elif chunk[0:4] == 'RGCN':
             try:
                 yield Sprite.from_standard(chunk)
             except:
                 yield None
         else:
             yield None
コード例 #4
0
ファイル: format.py プロジェクト: resonancellc/porigon-z
 def generator(chunks):
     for chunk in chunks:
         if len(chunk) < 4:
             yield None
         elif chunk[0:4] == 'RLCN':
             yield Palette(chunk)
         elif chunk[0:4] == 'RGCN':
             try:
                 yield Sprite.from_standard(chunk)
             except:
                 yield None
         else:
             yield None