Perception system emits DirectObservation/LeftLOS knowledge events based on snapshot visibility. Entities entering LOS get Direct confidence; leaving LOS downgrades to KnowsDetails. System params are optional for backward compatibility when KnowledgePlugin is not registered. 28 knowledge graph unit tests included. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
610 B
Rust
22 lines
610 B
Rust
// Perception module - Information boundary system
|
|
// Implements D-010 principle 2: every piece of state is tagged with who knows it
|
|
// Generates ObserverSnapshot for client rendering
|
|
|
|
use bevy_app::prelude::*;
|
|
|
|
pub mod observation;
|
|
pub mod observer;
|
|
pub mod shadowcast;
|
|
pub mod vision_cone;
|
|
|
|
/// Perception system plugin
|
|
/// Manages information boundaries and observer snapshots
|
|
pub struct PerceptionPlugin;
|
|
|
|
impl Plugin for PerceptionPlugin {
|
|
fn build(&self, _app: &mut App) {
|
|
// Stub implementation - will be populated in phase 2
|
|
tracing::debug!("PerceptionPlugin initialized");
|
|
}
|
|
}
|