feat: Add spawn/delete commands, fix session state and entity broadcast

- marathonctl now supports spawn/delete entity commands
- Fixed session state bug (was transitioning to Left every 5s)
- Fixed entity broadcast to detect Added<NetworkedEntity>
- Added AppCommandQueue pattern for app-level control commands

References: #131, #132
This commit is contained in:
2025-12-24 12:53:50 +00:00
parent b7cf022687
commit a8822f8d92
12 changed files with 1736 additions and 22 deletions

View File

@@ -168,7 +168,8 @@ pub fn save_session_on_shutdown_system(world: &mut World) {
// Update session metadata
session.touch();
session.transition_to(SessionState::Left);
// Note: We don't transition to Left here - that only happens on actual shutdown
// This periodic save just persists the current state
// Count entities in the world
let entity_count = world