270 lines
6.1 KiB
C++
270 lines
6.1 KiB
C++
struct StaticRect { float x, y, w, h; };
|
|
|
|
extern const StaticRect autotileVXRectsA[] =
|
|
{
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 64.5, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 48.5, 80.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 48.5, 80.5, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 16, 64.5, 15, 15 },
|
|
{ 0, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 0, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 0, 80.5, 15, 15 },
|
|
{ 16, 80.5, 15, 15 },
|
|
{ 0, 64.5, 15, 15 },
|
|
{ 48.5, 64.5, 15, 15 },
|
|
{ 0, 80.5, 15, 15 },
|
|
{ 48.5, 80.5, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 32.5, 80.5, 15, 15 },
|
|
{ 48.5, 80.5, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 0, 80.5, 15, 15 },
|
|
{ 48.5, 80.5, 15, 15 },
|
|
{ 0, 0, 15, 15 },
|
|
{ 16, 0, 15, 15 },
|
|
{ 0, 16, 15, 15 },
|
|
{ 16, 16, 15, 15 }
|
|
};
|
|
|
|
extern const int autotileVXRectsAN = sizeof(autotileVXRectsA) / sizeof(autotileVXRectsA[0]);
|
|
|
|
extern const StaticRect autotileVXRectsB[] =
|
|
{
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 16, 16, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 0, 16, 15, 15 },
|
|
{ 16, 16, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 16, 0, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 16, 16, 15, 15 },
|
|
{ 0, 0, 15, 15 },
|
|
{ 16, 0, 15, 15 },
|
|
{ 0, 16, 15, 15 },
|
|
{ 16, 16, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 0, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 0, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 0, 16, 15, 15 },
|
|
{ 48.5, 16, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 16, 32.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 16, 0, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 0, 0, 15, 15 },
|
|
{ 16, 0, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 16, 48.5, 15, 15 },
|
|
{ 32.5, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 0, 32.5, 15, 15 },
|
|
{ 48.5, 32.5, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 32.5, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 32.5, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 },
|
|
{ 0, 0, 15, 15 },
|
|
{ 48.5, 0, 15, 15 },
|
|
{ 0, 48.5, 15, 15 },
|
|
{ 48.5, 48.5, 15, 15 }
|
|
};
|
|
|
|
extern const int autotileVXRectsBN = sizeof(autotileVXRectsB) / sizeof(autotileVXRectsB[0]);
|