예제 #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
 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
 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