nd-specs/patterns/db_files/chunks/L$_.hexpat

25 lines
477 B
Plaintext
Raw Permalink Normal View History

2024-08-23 14:20:26 +00:00
#pragma once
#include "Common.hexpat"
bitfield LinkId {
id: 16;
concrete: 4;
relation: 12;
};
struct Link {
LinkId id;
s32 source;
s32 destination;
u16 relation;
// if (source > 0 || destination > 0) {
// std::print("Link: {}, Id: {}, Src: {}, Dest: {}, Flavor: {}", parent.parent.parent.name, id, source, destination, relation);
// }
};
struct LinkMap {
u32 max = parent.parent.data_end;
Link links[while($ < max)];
};