Skip to main content

wowlab_engine_application/
simulate_intent.rs

1//! Simulation-intent setup, handler construction, and execution entry points.
2
3mod entry;
4mod handler;
5mod setup;
6
7pub use entry::{
8    assisted_rotation_id, resolve_assisted_rotation_script, simulate_intent,
9    simulate_intent_request, simulate_intent_with_trace,
10};
11pub(crate) use handler::run_on_sim_start;
12pub use handler::{build_handler, build_handler_from_setup};
13pub use setup::{ResolvedSetup, resolve_setup};
14
15#[cfg(test)]
16fn dyn_resolver(
17    resolver: &wowlab_engine_adapter_data::InMemoryResolver,
18) -> &wowlab_engine_ports::DynDataResolver<'_> {
19    wowlab_engine_ports::DynDataResolver::from_ref(resolver)
20}
21
22#[cfg(test)]
23fn test_catalog() -> &'static wowlab_engine_ports::ContentCatalog {
24    wowlab_engine_ports::content_catalog().expect("test content catalog must initialize")
25}
26
27#[cfg(test)]
28#[path = "simulate_intent/entry/tests.rs"]
29mod assisted_rotation_tests;
30#[cfg(test)]
31mod boundary_tests;
32#[cfg(test)]
33#[path = "simulate_intent/setup/consumable_tests.rs"]
34mod consumable_tests;
35#[cfg(test)]
36#[path = "simulate_intent/setup/item_spells/tests.rs"]
37mod item_spell_tests;
38#[cfg(test)]
39#[path = "simulate_intent/setup/tests.rs"]
40mod tests;