S43

SColorPalettePacket


Byte(type);
switch(type)
{
  case 0:
    Byte();
    break;
  case 1:
    Byte(palIndex);
    if(palIndex == 0x19) {
      Byte(count);
      for(i = 0; i < count; i++)
        Short(paletteData[i]);
    }
    else {
      Short(paletteData[palIndex]);
    }
    break;
}
最終更新:2015年07月13日 22:44