issun 0.10.0

A mini game engine for logic-focused games - Build games in ISSUN (一寸) of time
Documentation
//! SocialPlugin - Political network and influence dynamics
//!
//! Simulates informal power structures, social capital, and faction dynamics
//! based on network analysis and political economy theories.

// Phase 0: Types
mod types;
pub use types::{
    CentralityMetrics, Faction, FactionId, MemberId, PoliticalAction, RelationType, SocialCapital,
    SocialError,
};

// Phase 1: Config
mod config;
pub use config::{CentralityWeights, SocialConfig};

// Phase 2: State
mod state;
pub use state::{SocialMember, SocialNetwork, SocialState};

// Phase 3: Service
mod service;
pub use service::NetworkAnalysisService;

// Phase 4a: Events
mod events;
pub use events::{
    // State Events (Results)
    CentralityCalculatedEvent,
    // Command Events (Requests)
    CentralityRecalculationRequested,
    FactionCohesionChangedEvent,
    FactionFormRequested,
    FactionFormedEvent,
    FactionMergeRequested,
    FactionMergedEvent,
    FactionSplitEvent,
    FactionSplitRequested,
    FavorExchangedEvent,
    FavorExpiredEvent,
    GossipSpreadEvent,
    MemberAddRequested,
    MemberAddedEvent,
    MemberRemoveRequested,
    MemberRemovedEvent,
    PoliticalActionExecutedEvent,
    PoliticalActionRequested,
    RelationAddRequested,
    RelationRemoveRequested,
    RelationshipChangedEvent,
    SecretSharedEvent,
    ShadowLeaderDetectedEvent,
    TrustDecayedEvent,
};

// Phase 4b: Hook
mod hook;
pub use hook::{DefaultSocialHook, SocialHook};

// Phase 4c: System
mod system;
pub use system::SocialSystem;

// Phase 5: Plugin
mod plugin;
pub use plugin::SocialPlugin;