pub fn next_entity_id() -> i32
Allocates a new unique entity ID.
This is the primary way to get entity IDs for spawning entities. Thread-safe through the shared counter lock.