// Get the "basic collision" of a subtile (whether or not that part is // solid). This ignores the upper half of the collision data bytes and // assumes it is zero. public bool GetSubTileBasicCollision(int index, int x, int y) { byte b = tilesetHeaderGroup.GetCollisionsData(index); byte i = (byte)(1 << (3 - (x + y * 2))); return((b & i) != 0); }