Files
coa-server-manager/crates/coa-core/examples/pop.rs
T
ДмитрийandClaude Sonnet 5.5 9504e9133b Phase 7a: real population (players vs companions), hardware-aware companion sizes, RA bot spawn, Bots page card
Verified: fixture received 'botcmd spawnleveled 12' over RA from the UI and the counts moved;
population query also read-only verified against the live server (33 companions online).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 09:35:24 +05:00

11 lines
361 B
Rust

fn main() {
let root = std::env::args().nth(1).expect("server folder");
let root = std::path::Path::new(&root);
println!("{:?}", coa_core::population::query(root));
let h = coa_core::population::hardware();
println!("{h:?}");
for s in coa_core::population::sizes(&h) {
println!("{} {} {:?}", s.title, s.bots, s.warning);
}
}