// A generic consumer; another source can publish the same entity contract.
void draw_fixture() {
render::text(24, 24, "Adapter SDK: synthetic fixture, not a game overlay", 0xff994dff);
render::text(24, 50, "Source status: " + adapter::status());
for (uint i = 0; i < adapter::entity_count(); i++) {
float x, y, z;
if (!adapter::entity_position(i, x, y, z)) continue;
render::text(24, 90 + i * 28, adapter::entity_label(i)
+ " | HP " + adapter::entity_health(i)
+ " | distance(m) " + geometry::distance3(0, 0, 0, x, y, z));
}
}
Easy Universal / Примеры и шаблоны