1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! MarketPlugin - Dynamic market economy system
//!
//! Provides a dynamic market economy where all items have real-time prices
//! driven by supply and demand.
//!
//! # Features
//!
//! - **Supply/Demand Price Calculation**: Prices automatically adjust based on market forces
//! - **Market Events**: External shocks (DemandShock, SupplyShock, Rumors, Scarcity, Abundance)
//! - **Trend Detection**: Automatic detection of Rising, Falling, Stable, or Volatile markets
//! - **Hook System**: Extensible with game-specific customization
//! - **Price History**: Track price changes over time for analysis
//!
//! # Example
//!
//! ```ignore
//! use issun::plugin::market::*;
//!
//! // Create plugin
//! let market = MarketPlugin::new()
//! .with_config(
//! MarketConfig::default()
//! .with_demand_elasticity(0.7)
//! .with_supply_elasticity(0.6)
//! )
//! .register_item("water", 10.0)
//! .register_item("ammo", 50.0)
//! .register_item("medicine", 100.0);
//!
//! // In game loop
//! let system = MarketSystem::new(DefaultMarketHook);
//!
//! // Apply event
//! let rumor = MarketEvent::rumor(vec!["medicine".to_string()], 0.9, 0.8);
//! system.apply_event(rumor, &mut state, &config).await;
//!
//! // Update prices
//! let changes = system.update_prices(&mut state, &config).await;
//! ```
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;