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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//! Convenient re-exports for the Evolution mechanic.
//!
//! This module provides a convenient way to import commonly used types and traits.
//!
//! # Examples
//!
//! ```
//! use issun_core::mechanics::evolution::prelude::*;
//! use issun_core::mechanics::{Mechanic, EventEmitter};
//!
//! // All common types and strategies are available
//! type FoodSpoilage = EvolutionMechanic<Decay, HumidityBased, ExponentialRate>;
//!
//! let config = EvolutionConfig::default();
//! let mut state = EvolutionState::new(100.0, 0.0, 100.0, SubjectType::Food);
//! let input = EvolutionInput {
//! time_delta: 1.0,
//! environment: Environment::new(25.0, 0.8),
//! };
//!
//! struct EventCollector { events: Vec<EvolutionEvent> }
//! impl EventEmitter<EvolutionEvent> for EventCollector {
//! fn emit(&mut self, e: EvolutionEvent) { self.events.push(e); }
//! }
//! let mut emitter = EventCollector { events: vec![] };
//!
//! FoodSpoilage::step(&config, &mut state, input, &mut emitter);
//! ```
// Core mechanic
pub use EvolutionMechanic;
// Policy traits
pub use ;
// All strategies
pub use ;
// Types
pub use ;
// ===== Preset Type Aliases =====
/// Organic growth with temperature dependency.
///
/// Use for: Plants, bacteria, biological growth
pub type OrganicGrowth = ;
/// Food spoilage affected by humidity.
///
/// Use for: Perishable items, organic decay
pub type FoodDecay = ;
/// Natural resource regeneration with diminishing returns.
///
/// Use for: Mana, stamina, renewable resources
pub type ResourceRegeneration = ;
/// Equipment wear and tear (linear decay, no environment).
///
/// Use for: Weapons, armor, tools
pub type EquipmentDegradation = ;
/// Complex population growth/decay with environmental factors.
///
/// Use for: Animal populations, NPC demographics
pub type PopulationDynamics = ;
/// Oscillating seasonal changes.
///
/// Use for: Day/night cycles, seasonal effects
pub type SeasonalCycle = ;
/// Simple decay (default configuration).
///
/// Use for: Basic degradation without environmental influence
pub type SimpleDecay = ;
/// Simple growth (no environmental influence).
///
/// Use for: Basic accumulation without environmental influence
pub type SimpleGrowth = ;