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
//! Calculates the dogma attributes of an EVE Online ship fit: the ship, its
//! items and the character.
//!
//! Describe the fit with [`Fit`] and pass it to [`calculate()`], together
//! with the static data from `esf-data`.
//!
//! ```no_run
//! use esf_data::{InfoSde, Sde};
//! use esf_dogma_engine::{Fit, Options, calculate};
//!
//! let bytes = std::fs::read("sde.dat").unwrap();
//! let sde = Sde::new(&bytes).unwrap();
//!
//! let fit: Fit = serde_json::from_str(
//! r#"{
//! "ship": {"type_id": 587},
//! "items": [{"type_id": 2873, "slot": {"type": "high", "index": 0}, "state": "active"}]
//! }"#,
//! )
//! .unwrap();
//!
//! let calculation = calculate(&InfoSde::new(&sde), &fit, &Options::default());
//! ```
pub use ;
pub use ;
pub use ;