diff options
Diffstat (limited to 'crates/fparkan-runtime/src/production.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/production.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/fparkan-runtime/src/production.rs b/crates/fparkan-runtime/src/production.rs index 6bc3e306..c144eb43 100644 --- a/crates/fparkan-runtime/src/production.rs +++ b/crates/fparkan-runtime/src/production.rs @@ -86,8 +86,8 @@ struct Order { } #[derive(Default)] -struct Cost { - ore: f32, +pub(super) struct Cost { + pub(super) ore: f32, power: f32, } @@ -614,7 +614,7 @@ fn production_error(error: impl std::fmt::Display) -> EngineError { EngineError::Production(error.to_string()) } -fn scheme_cost( +pub(super) fn scheme_cost( records: &[UnitComponentRecord], research: &ResearchTrfDocument, learned: impl Fn(usize) -> bool, |
