BallDev,
Код:
1 byte active mission(mission of a beginner, for example)
4 byte - map is active(number of active cards from 0 to 9)
Then 20 bytes, 2 bytes on the card(boxes of tasks in the map, 1 byte for the first two tasks, the second byte for the 3rd and 4th tasks, Oh, those Koreans):
Код:
// Result passing
ushort result = 0;
// Job card
for (int t = 0; t < 4; t++)
{
var task = card.Tasks[t];
if (task.IsComplete)
{
result |= (ushort)(0x0f << 4 * t);
}
}
WriteH(result);