Тема: [Point Blank] Help me Mission and Quest
Показать сообщение отдельно
Непрочитано 11.07.2016, 10:31   #5
Аватар для Awiion

По умолчанию Re: Help me Mission and Quest

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);
Awiion вне форума Отправить сообщение для Awiion с помощью Skype™ Ответить с цитированием