GetBlockCount() public method

public GetBlockCount ( ) : int
return int
示例#1
0
        void CheckGfxHeaderTilesToUpdate(GfxHeaderData header)
        {
            if (tileModifiedEvent == null)
            {
                return;
            }
            if (header.DestAddr < 0x8000 || header.DestAddr > 0x9fff)
            {
                return;
            }

            for (int t = 0; t < header.GetBlockCount(); t++)
            {
                int tile = t + (header.DestAddr - 0x8000) / 16;
                tileModifiedEvent(header.DestBank, tile);
            }
        }
示例#2
0
        void CheckGfxHeaderTilesToUpdate(GfxHeaderData header)
        {
            if (tileModifiedEvent == null)
                return;
            if (header.DestAddr < 0x8000 || header.DestAddr > 0x9fff)
                return;

            for (int t=0; t<header.GetBlockCount(); t++) {
                int tile = t+(header.DestAddr-0x8000)/16;
                tileModifiedEvent(header.DestBank, tile);
            }
        }