Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 1; i <= getTaskInfo().pack_count; i++)
- {
- taskbr = new BinaryReader(pathfile + i);
- TASK_PACK_HEADER task_header = new TASK_PACK_HEADER();
- //
- task.task_header.add(task_header);
- //
- task_header.magic = taskbr.ReadInt32();
- task_header.item_count = taskbr.ReadInt32();
- task_header.offsets = new int[task_header.item_count];
- for (int j = 0; j < task_header.item_count; j++)
- {
- task_header.offsets[j] = taskbr.ReadInt32();
- }
- for (Integer offset : task_header.offsets)
- {
- TASK_TEMPLATE task_template = new TASK_TEMPLATE();
- task.task_template.add(task_template);
- taskbr.Seek(offset);
- //
- task_template.m_ID = taskbr.ReadInt32();
- task_template.m_szName = taskbr.ReadUnicode(TASK_TEMPLATE.TASK_NAME_SIZE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement